Adding a second network interface to VMs, host has only one
Posted: 16. Feb 2014, 05:22
Hi.
I am installing software that requires multiple network interfaces. I am running VirtualBox on a laptop that has only one network interface (eth0). Is there a way to configure my VMs so that they will have two network interfaces (eth0 and eth1)?
I am using a bridged network adapter for the VMs. They need access to the internet and must be reachable from the host. The second interface handles connections between the VMs only so I could use a more restricted type of virtual network.
I have tried enabling adapter two for the VMs and restarting. I tried a few different configuration for adapter two but the ifconfig command never shows an eth1 interface, only the existing eth0.
Am I misunderstanding the way VirtualBox networking interacts with the Linux network configuration? If I enable a host-only adapter two for each VM, do I need to tell Ubuntu to configure it as eth1? I thought/hoped making the adapter available would prompt Ubuntu to add it to the list of network interfaces automatically.
The guest OS I am using is Ubuntu Server 12.04. I am using VirtualBox 4.2.16_UBUNTU and the host OS is Ubuntu 13.10.
Thanks for your help!
Peter Desjardins
I am installing software that requires multiple network interfaces. I am running VirtualBox on a laptop that has only one network interface (eth0). Is there a way to configure my VMs so that they will have two network interfaces (eth0 and eth1)?
I am using a bridged network adapter for the VMs. They need access to the internet and must be reachable from the host. The second interface handles connections between the VMs only so I could use a more restricted type of virtual network.
I have tried enabling adapter two for the VMs and restarting. I tried a few different configuration for adapter two but the ifconfig command never shows an eth1 interface, only the existing eth0.
Am I misunderstanding the way VirtualBox networking interacts with the Linux network configuration? If I enable a host-only adapter two for each VM, do I need to tell Ubuntu to configure it as eth1? I thought/hoped making the adapter available would prompt Ubuntu to add it to the list of network interfaces automatically.
The guest OS I am using is Ubuntu Server 12.04. I am using VirtualBox 4.2.16_UBUNTU and the host OS is Ubuntu 13.10.
Thanks for your help!
Peter Desjardins