Page 1 of 1

Problem setting up Host-Only LAN

Posted: 4. Apr 2022, 23:29
by chronicinquiry
I'm having a problem getting all of my machines up and running on the same LAN.

In the Host Network Manager, I have manually setup my host IP to 192.168.90.111. (This is from a lab I am following for school.)

I have successfully changed the settings of 4 devices to use Host-Only, VirtualBox Host-Only Ethernet Adapter, and they all successfully create IPs in the 192.168.90.XX LAN and can ping each other.
However, there is one that doesn't. Even though it's using the same settings, it uses 192.168.56.XX.

There is only one Host-only Ethernet Adapter in my settings, so I haven't accidentally chosen another adapter. What else could be going on? How can I get it to 192.168.90.XX?

Re: Problem setting up Host-Only LAN

Posted: 5. Apr 2022, 01:39
by BillG
I would guess that the different device is set to get its network config from DHCP. (By default the host only network DHCP uses 192.168.56.x). Manually configure it to have an IP in the 192.168.90.x subnet, as you did for the host adapter.

Re: Problem setting up Host-Only LAN

Posted: 5. Apr 2022, 01:47
by scottgus1
In addition to Bill's suggestion, try these:

Try looking for a static IP set in the VM's OS.

Shut down the VM, then change the adapter to NAT, boot the VM, see if the IP address inside changes to 10.0.2.15. If it does, shut down again, change back to Host Only, see if the IP address goes to the correct range.

In C:\Users\{accountname}\.Virtualbox, there may be a .leases file matching the Host Only adapter network name. Try rebooting the host so no Virtualbox processes are running, then rename the .leases file to .leases-old. Then try the VM.

Re: Problem setting up Host-Only LAN

Posted: 6. Apr 2022, 01:34
by chronicinquiry
Thank you everyone. It was that DHCP was enabled, was the problem.