5
3
VB version: 4.2.16
Guest OS version: ubuntu 12.4 LTS
Host OS version: OSX 10.8.4
I have created two VMs. Each vm are given two network adaptors: NAT and Host-only.
It is how the host only adaptor is defined:
These are the screenshots from two instance of VirtualBox.
It seems like both machines got an IP of 192.168.122.1 for interface virbr0.
As @kenster suggested, VB does not created a virbr0 interface. I do not know where does it come from.
And apparently eth0 comes from the NAT adaptor. Both VMs has the same IP for eth0. Here is screen shot from one of the VM:
Should I expect an eth1 from the second Host-only adaptor? If so, why it is not created?
Host-only dhcp setting in VB preference:
So, why VB assign same IP twice to both boxes?
Why don't you configure a static IP address on this interface for each machine ? This would force the DHCP configuration on virbr0. – John WH Smith – 2013-08-12T16:42:42.780
Are you sure that is the host-only interface? According to http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-remove-network-interface-virbr0/ "virbr0" is a XEN interface. I have an Ubuntu VM running in virtualbox, and its host-only interface is named "eth1". In other words, the VM thinks it is an ethernet interface.
– Kenster – 2013-08-12T17:23:17.533did you clone the vms? in that case, you likely have dhcp cache or lease that causes the duplication. check /var/lib/dhcp3, delete everything, and restart networking. – johnshen64 – 2013-08-12T17:23:24.757
@johnshen64 I did not clone the vms. There is only /var/lib/dhcp. Clearing it does not resolve the issue. Thanks. – Anthony Kong – 2013-08-12T17:40:23.847
@Kenster Interesting. I did not know why I got this interface then. I actually setup two adaptors for each VMS: first one NAT and second one Host-only. Apparently only the first one is ever created. Will update my question with more details. – Anthony Kong – 2013-08-12T17:42:17.823