Problem setting up Host-Only LAN

Discussions related to using VirtualBox on Windows hosts.
Post Reply
chronicinquiry
Posts: 2
Joined: 4. Apr 2022, 23:22

Problem setting up Host-Only LAN

Post 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?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Problem setting up Host-Only LAN

Post 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.
Bill
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Problem setting up Host-Only LAN

Post 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.
chronicinquiry
Posts: 2
Joined: 4. Apr 2022, 23:22

Re: Problem setting up Host-Only LAN

Post by chronicinquiry »

Thank you everyone. It was that DHCP was enabled, was the problem.
Post Reply