![]() ![]() "public_network" maps to a "Bridged Adapter". If you provide an IP address (example: config.vm.network "private_network", ip: "192.168.2.2") which does not exist on a VirtualBox "Host-only Network" (such as vboxnet0) Vagrant will instruct VirtualBox to create a network for your virtual appliance. "private_network" maps to a "Host-only Adapter". This is not well documented on the Internet, but can be found in Mitchell Hashimoto's Vagrant: Up and Running. Note that Vagrant always installs a NAT type adapter as the first network interface (typically en0 or eth0) when using VirtualBox. "forwarded_port" maps to a "NAT" type adapter. ![]() Users of Vagrant may have noticed that the the configuration options for networks (config.vm.network) in Vagrant don't match up cleanly to the network Adapter types in VirtualBox - as an example, when defining a "private_network" in a Vagrantfile Vagrant will actually provision your virtual appliance with a "Host-only Adapter." The remainder of this blog post will describe the mapping of network configuration in a Vagrantfile to the adapters in VirtualBox in more detail.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |