Skip to content

Instantly share code, notes, and snippets.

@mhammonds
Created May 20, 2014 12:17
Show Gist options
  • Save mhammonds/574b2e5ca6e0e53fdefb to your computer and use it in GitHub Desktop.
Save mhammonds/574b2e5ca6e0e53fdefb to your computer and use it in GitHub Desktop.
Manual Vagrant/VirtualBox Network Config
# Example Vagrantfile customizations from older
# config before "private_network" was supported.
# Typically no need to do this manually anymore.
v.customize ["hostonlyif", "ipconfig", "vboxnet0", "--ip", "192.168.33.1", "--netmask", "255.255.255.0"]
v.customize ["modifyvm", :id, "--nic1", "nat"]
v.customize ["modifyvm", :id, "--nic2", "hostonly"]
v.customize ["modifyvm", :id, "--hostonlyadapter2", "vboxnet0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment