Skip to content

Instantly share code, notes, and snippets.

@akshaymohite
Last active April 17, 2020 10:53
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save akshaymohite/6fb74ebf62890c84055e to your computer and use it in GitHub Desktop.
Save akshaymohite/6fb74ebf62890c84055e to your computer and use it in GitHub Desktop.
Setting up Vagrant / Virtual Box

Steps

1. Install vagrant

Install vagrant from https://www.vagrantup.com/downloads.html

2. Download virtual box

Download desired virtual box from Windows Dev. I used IE11.Win7.For.Vagrant.box

3. Create vagrant directory

Let's say we create directory vagrant-windows-ie11

$ mkdir -p vagrant-windows-ie11

Change directory to newly created directory.

$ cd vagrant-windows-ie11

4. Configure

Use below given commands to configure virtual box with vagrant -

Initialize vagrant by command,

$ vagrant init windows
$ vagrant box add ~/Downloads/IE11.Win7.For.Vagrant.box --name=windows

Replace path with your downloaded virtual box path.

Start the vagrant by command,

$ vagrant up

This will start VM with the box configured with vagrant.

@puneet-sutar
Copy link

Updated commands

  • vagrant init windows
  • vagrant box add ~/Downloads/IE11.Win7.For.Vagrant.box --name=windows (Replace path with your downloaded virtual box path)
  • vagrant up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment