Skip to content

Instantly share code, notes, and snippets.

@rogeriopradoj
Last active October 6, 2018 21:07
Show Gist options
  • Save rogeriopradoj/8c13d263792f23bd803a512e83a2ba5f to your computer and use it in GitHub Desktop.
Save rogeriopradoj/8c13d263792f23bd803a512e83a2ba5f to your computer and use it in GitHub Desktop.
How to install vagrant with windows server 2012, iis, classic asp, sql server 2014
  1. Install vagrant box gusztavvargadr/windows2012r2se-sql2014de-iis ([packer info 1](https://github.com/ianblenke/gusztavvargadr-packer and 2)
vagrant box add gusztavvargadr/windows2012r2se-sql2014de-iis
  1. Download Vagrantfile from this gist.

  2. Vagrant up

  3. Install Resilio Sync both in your host as in your guest.

a) The reason for this is that IIS complains about Document Root of website in Network folder (the normal way of using a shared folder vagrant style). The idea came from here.

  1. Share via Resilio, in your host, the Document Root of your site (get the Read & Write Key)

  2. In you guest, create a folder C:\code, go to Resilio, and make a Manual connection using the key from previous step

  3. Follow these instructions to enable classic asp in IIS

  4. Don't forget to enable erros as well with previous instructions.

  5. In IIS Manager(inetmng.exe), change Physical Path to C:\code for Default Web Site and click the button connect as to use Specific user (user: vagrant, password: vagrant).

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "gusztavvargadr/windows2012r2se-sql2014de-iis"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "4096"
vb.cpus = "2"
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
vb.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment