Tuesday, January 26, 2021

Vagrant - Start a VirtualBox Machine as easy as using a docker image

In this example we will download a Windows VM image from Peru repository and run it in the Virtual Box on Linux host machine

Download vagrant
$ wget https://releases.hashicorp.com/vagrant/2.2.14/vagrant_2.2.14_linux_amd64.zip

Unzip it
$ unzip vagrant_2.2.14_linux_amd64.zip

Install Virtual Box if you don't have it yet
$ sudo apt install virtualbox



Create a directory where you Valgrant file will be created
$ mkdir windows-server-2019-standard-x64-eval 
$ cd windows-server-2019-standard-x64-eval 

Download the image
$ vagrant init peru/windows-server-2019-standard-x64-eval

Start it up
$ VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up


Source: https://medium.com/notonlycss/how-to-run-a-windows-machine-on-mac-913c28ded1a3

No comments:

Blog Archive