Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.17 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.17 KB

Vagrant-Window-Server

Creating Windows Server on Localhost using VirtualBox, Vagrant and Powershell Script

Tool set

  • VirtualBox
  • Vagrant
  • Powershell

Installing tools

  • Download and install VirtualBox following the instructions from https://www.virtualbox.org/ if you don't have it already.
  • Download and install Vagrant following the instructions from https://www.vagrantup.com/ if you don't have it already.

Setup instruction

Once the tools are ready;

  • Create a folder e.g ~$ mkdir Desktop/vagrant
  • cd Desktop/vagrant
  • Clone this repo git clone https://github.com/anyric/Vagrant-Window-Server.git
  • cd Vagrant-Window-Server
  • Run vagrant up --provision This will download the windows vagrant image from vagrant cloud image catalog publicly available from https://app.vagrantup.com/boxes/search. Once download is completed it creates the VM, provision it with the powershell script and open the running instance on VirtualBox.
  • Navigate to http://127.0.0.1:8080 on your localhost browser to access the provisioned IIS web server

Destroying the VM

You can delete or destroy the created VM after testing by running the command vagrant destroy