Ticket #8796 (new defect)

Opened 4 years ago

Last modified 2 months ago

Host-only adapter interface lost it's manual configured ipv4 address

Reported by: kidault Owned by:
Priority: major Component: network/hostif
Version: VirtualBox 4.0.6 Keywords: address
Cc: Guest type: Windows
Host type: Windows


I have a host-only interface created by 2.x long time ago. After installation of 4.0.6, I find I have to re-configure the ip address of host-only interface after every reboot. The ip address is manually configured by vbox manager gui, and then I add gateway and dns server in the ipv4 properties。 After reboot,the configuration in the ipv4 properties seems not changed, but in the vbox manager gui, the ip address will be something like "", and the ipconfig.exe command will show the same address.

Change History

comment:1 Changed 4 years ago by kidault

not fixed in 4.0.8

comment:2 follow-up: ↓ 3 Changed 4 years ago by diagiman

I have the same on host Win7x64.
And as I figured out problem is in net mask
VBox wants to use mask and when I give it my IP with mask, it refuses it and uses self-generated IP 169.254.*.* with /16 net mask.
But when I type my preferred IP with it goes OK

It is quite reproducible (at every VBox update)

comment:3 in reply to: ↑ 2 Changed 4 years ago by kidault

Replying to diagiman:

I have the same on host Win7x64.
And as I figured out problem is in net mask
VBox wants to use mask and when I give it my IP with mask, it refuses it and uses self-generated IP 169.254.*.* with /16 net mask.
But when I type my preferred IP with it goes OK

It is quite reproducible (at every VBox update)

Thank you for the solution. At least, I won't have to set the ip address after every host reboot. But I have never encounted with this problem until 4.0.6. I used to set ip of host-only interface as, and this setting had worked well all the time until 4.0.6

comment:4 Changed 4 years ago by kidault

The problem seems to have been solved in 4.1.4, thank you.

comment:5 Changed 4 years ago by Cyber1000

I have the setting Everytime I update virtualbox (Win7x64) it goes back to Also at update from 4.1.4 to 4.1.6. I have this problem at least since Version 4.0, but I don't have the problem after reboot, when I change the address back after install it stays the same until the next update.

comment:6 Changed 3 years ago by Zarko

I recently upgraded to 4.1.10 r76795 (from the previous latest version ... not sure which) on Windows XP and I can verify that my setting of was reverted as stated above.

comment:7 Changed 3 years ago by mk8

On my Windows7-64bit installation I have the same problem.

I try to change the address from to and the changed seems to be accepted. Coming back in the ipv4 setup now I have two address, and If I remove the the interface address came back to 169.254.219.

Now if I reboot the machine, the address remain

For now this is the only workaround that I found.

comment:8 Changed 3 years ago by mk8

Update to 4.1.12r77245 and the problem continues to be present.

Fortunally the workaround is the same, change the local address from to

comment:9 Changed 3 years ago by jinzapper

I can confirm that this issue exists for 4.1.14r77440. Work around is the same, for me, editing the subnet mask or address did the trick. Interestingly, this problem only came up to me when I upgraded to 4.1.14 from 4.1.12. I did not have this previously.

comment:10 Changed 2 years ago by rousseauhk

I'm still seeing this on 4.2.16 with a number of hosts (but not all).

comment:11 Changed 2 years ago by apchoo

I have 2 host-only ethernet adapters and I've have no problems with their manual configs until I upgraded to 4.2.18 (from 4.2.16). Now that I'm on 4.2.18, my manual IP and netmask settings for "Virtual Host-Only Ethernet Adapter" always reverted back to 169.254.x.x and after I pressed OK on the Preferences and Windows UAC windows. The settings for the 2nd "Virtual Host-Only Ethernet Adapter 2" do stick.

My workaround is to create a 3rd "Virtual Host-Only Ethernet Adapter 3" whose settings fortunately did stick as well. I have to re-configure all my VMs to use adapters 2 & 3 instead.

My VirtualBox host env is a Windows 7 Enterprise 64bit running on a Dell Precision M4700 laptop with 32GB memory.

comment:12 Changed 21 months ago by JohnnyCanuck

I can confirm the report from 'apchoo' with my Windows 7 Home Premium workstation and VirtualBox 4.2.18. As a result, I can't use 'Host Only' unless I perform the workaround (s)he describes.

On the other hand, maybe I'll try using the 169.254.X.X range and see what happens.

comment:13 Changed 15 months ago by Rafael Ruppel

I have the same problem with 4.3.12 and Windows 8.

For me, the workaround doesnt work. I created more than 3 host-only network adapters and the problem persists.

One thing I realized is that when I try to change the ip manually for the network adapter inside "Network Connections" (Network and Sharing Center -> Change Adapter Settings) it says: In order to configure TCP/IP, you must install and enable a network adapter card.

I opened Device Manager but everything seems normal.

I dont know what to do, its is really frustrating. Its problematic to use with vagrant.

Any help is appreciated.

comment:14 Changed 14 months ago by orgler

I can confirm that latest behavior seen by Rafael. According to it should help to remove the network adapter. however this did solve the issue for other network devices I'm using but not for virtualbox. Any ideas?


comment:15 Changed 4 months ago by pazoozoo

This is still an issue with the latest version 4.3.26. Could someone from Oracle comment on this? This is highly annoying, especially when using Vagrant. Workarounds don't work for me either. I can add new host-only adapters and (apparently) set the IP address. But when entering the edit mode again, they will be set to some random IP...

comment:16 Changed 4 months ago by pazoozoo

Last edited 4 months ago by pazoozoo (previous) (diff)

comment:17 Changed 3 months ago by vboxcomapijunkie


I have performed a lot of testing with host-only networks (up to and including version 4.3.28) and it seems that there are several bugs with this thing at least on MS Windows hosts:
When 1st (default) adapter is there and you add a second one, then:

a) Set IP address to with mask; new network adapter in Windows network control panel is OK. In VirtualBox UI, a generated IP address with mask is shown instead. Interface is malfunctioning (of course).
b) Workaround posted by 'Bright' does not work either. You can remove all network adapters and create a new one. New one will not work as expected (at least sometimes).
c) It randomly happens that if I remove all adapters and create two new ones, then no error are reported. After closing and re-opening the VirtualBox UI, none of the network adapters are still there (also not in the MS Windows network control panel).

Moreover, once the host-only interface gets configured in the right way, then starting a virtual machine and pinging the (static) IP configured on eth1 in the VM (in my case: from the physical host takes up to fifteen (15!!!) seconds until the interface comes up and pongs. Please note that the services in the VM bound to this IP are up and running after approx. four seconds. Once it is up and running, then everyhting works smoothly, though.

I can confirm that version 4.3.26 still suffers from this UGLY bug: If you define a host-only network adapter (I use the MS COM API to accomplish this task), then addr= and mask= (/24) SOMETIMES works, sometimes not, i.e. DHCP is disabled but an arbitrary IPv4 address appears instead of the configured one. The VirtualBox.xml file indicates the ExtraDataItem-Elements with the correct values (, but VBOX does not seem to care about it.

If you set the mask to (/16), then everything works fine. Took me days to figure out because I thought that my C++ code was just wrong...

Could someone from Oracle please cross-check? Thx.

Last edited 2 months ago by vboxcomapijunkie (previous) (diff)

comment:18 Changed 2 months ago by Bright

I encountered same issue in v4.3.20.

The best workaround from my experience is to remove the default host-only ethernet adapter and create a new one instead. In the new adapter, you can configure whatever you want.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use