Running first Atlas Linux Box under Windows
Posted in automation on April 25, 2017 by Adrian Wyssmann ‐ 3 min read
Vagrant is a cool tool to easily provide virtual machines and it works perfectly fine under Linux. But as me at work, you might be in a situation where you have or want to run vagrant on a Windows machine. This is per-se not more complicated as under Linux even thought I struggled over some pitfalls.
As already mentioned in a previous post the easiest way to get a working Linux vm is to use the templates for the Atlas Catalog.
Per default the boxes are started headless so you might want to modify the created Vagrantfile and enable gui mode:
Once done, when you launch the box you will see your vm starting up until it provides you the login dialog.
Now comes the question what is the username and password to be used. Looking at the log messages from vagrant you can see some hints:
So username is clear, but password? “ubuntu”? “vagrant”? I’ve tried several but none of them worked:
Searching around lead me to the conclusion that there the password was never revealed to public but user rather shall use ssh-key authentication. Well, the easiest way is obviously the vagrant up command but unfortunately this does not work under Windows as there is no ssh client shipped with it:
So in order to use Vagrant ssh command you need to have an SSH client installed and the “PATH” environment variable set accordingly. I recommend to use the OpenSSH client which you can install by manually by downloading the installer at http://www.mls-software.com/opensshd.html or you can use a package manager like Chocolatey to achieve the task.
Install ssh client
Upadate environment variable PATH to point to ssh-client binary
Set the
PATH
permanently as described at Stakcoverflow
Finally now I actually can login into the Ubuntu box.