Skip to content

Instantly share code, notes, and snippets.

@danclien
Last active December 21, 2015 21:29
Show Gist options
  • Save danclien/6368738 to your computer and use it in GitHub Desktop.
Save danclien/6368738 to your computer and use it in GitHub Desktop.
Random notes for automating VirtualBox, Vagrant, Ubuntu, and nginx on Windows.
  • Download
    • VirtualBox
    • Vagrant
    • Git
  • Extract VirtualBox .exe setup to get .msi files
    • VirtualBoxInstaller.exe -extract -path C:\Setup
  • Install VirtualBox
    • virtualboxInstallerInExe.msi /passive ADDLOCAL=VBoxApplication,VBoxNetwork
    • This installs VirtualBox without prompting to install unsigned drivers that are not needed
  • Install Vagrant
    • vagrant.msi /passive /norestart
  • Build Vagrant box
    • Start with latest Ubuntu Server LTS
    • Install nginx
      • sudo apt-get install nginx
    • Configure nginx
location /iis/ {
   proxy_pass http://10.0.2.2;
   proxy_redirect off;
}
  • Package and upload box
  • Configure Vagrant
    • vagrant init core http://update.schoolobjects.com/path/to/vms/core.box
    • vagrant up
  • Figure out how to run VirtualBox headless as a service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment