![]() ![]() Start PuTTYgen and click the "Load" button and go to the folder where you just ran "vagrant up" and go to. To import the generated private key into the SSH client that you will use (PuTTY) you will have to use PuTTYgen. Usually, Vagrant will generate a private key and a public key when creating a new VM (as a result of the 'vagrant up' command). The best way to interact with this boxes is to use a RSA key pair. Some Vagrant images will set a default uesrname/password combination, others will generate a random key and place it in a newly created file. you can use cmd or powershell (assuming that you are on windows) to create, start, stop, delete, revert (and more) your VMsĪfter the virtual machine is started you can't interact with it since you don't have the VirtualBox GUI so you will have to treat it as a remote machine and login by using SSH (not the most accurate way to say it, but I think this will do).Vagrant will take care of the whole setup ![]() you don't have to actually install the operating system.This is also what Vagrant does, but it will also give you the following advantages: To have the advantages mentioned above, you could run an instance of Ubuntu server (or another distro or flavor that does not come with a GUI) in headless mode. Some people prefer doing it this way instead of using the VirtualBox window that shows you the video output of the VM. Another advantage could be that you can use PuTTY (or your favorite ssh client) to run commands. This makes it run better especially on older machines (like mine). The advantage over running a regular VM with VirtualBox (I will use VirtualBox as an example in this tutorial because it is free and easy to use) is that the Vagrant box will run without the GUI. This might be useful if you need a Linux environment for development and you don't want install a Linux distribution with dual-boot.
0 Comments
Leave a Reply. |