Saturday, June 8, 2013

When VirtualBox keeps re-setting your Windows 7 host-only networking IP address to the autoconfiguration address

I've had this problem intermittently over the life of my VirtualBox installation, and others have reported it too.

Basically, on every host reboot Windows 7 would re-set the IP address of my host-only network interface to the autoconfiguration address, which caused virtual hosts to be unable to see it (and unable to get their own host-only IP address, which, at least on FreeBSD guests, basically caused a very long pause during the boot process, perhaps because I was also mounting host directories on the guest machines).

Solutions people have proposed for this are all over the map, so my solution may not work for everyone.

For me, I came up with an easy fix that worked.

VBoxManage list hostonlyifs
to get the name of the host-only network interface.

VBoxManage hostonlyif delete <name>
to delete that interface

Then:
VBoxManage hostonlyif create
to create a new one

Then:
VBoxManage list hostonlyifs
to get the name of the new network interface

Then:
VBoxManage hostonlyif ipconfig <name> --ip <ip>
to set the IP address to the address I wanted.

Now it works. I hope it's this easy for you!

2 comments:

  1. It is essential to know the difference between a cloth being soft versus being versatile. A material’s stiffness is its capacity to resist bending underneath stress. A good instance may be seen by evaluating an ABS ruler to a Nylon rule. Although ABS is a harder materials than Nylon, a Nylon ruler could be much more troublesome to bend than an ABS ruler. Shorten the cycle time to make sure trapped air doesn’t have time to compress and ignite. Increase the cooling time to make sure the half solidifies Hookless Shower Curtains within the correct spot.

    ReplyDelete