How to force host-only adapter to retrieve IP from VirtualBox DHCP server


Ivan

I have a Linux RHEL guest running on a VirtualBox VM, the host OS is Windows 7.

I'm trying to link the two over a host-only network, but I can't access one machine from the other, I guess it's because the host-specific host adapter isn't properly linked with the VBox network manager. All this fails to retrieve a valid IP from the VBoxDHCP server.

Every time I restart the host-only adapter, I somehow get the same IP that Windows 7 provides

inet addr:169.254.17.104 Mask: 255.255.0.0

However, my VBoxDHCP server is not configured in that scope.

➤ ./VBoxManage.exe list dhcpservers
NetworkName:    HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP:             192.168.56.100
NetworkMask:    255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled:        Yes

I tried to fix this delete and then create adapter again using

VBoxManage.exe hostonlyif remove
VBoxManage.exe hostonlyif create

However, the Linux guest machine works fine.

[root@ivs-dev] # dhclient -v eth1
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth1/08:00:27:b6:7c:63
Sending on   LPF/eth1/08:00:27:b6:7c:63
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 (xid=0x3c540d01)
DHCPOFFER from 192.168.56.100
DHCPREQUEST on eth1 to 255.255.255.255 port 67 (xid=0x3c540d01)
DHCPACK from 192.168.56.100 (xid=0x3c540d01)
bound to 192.168.56.102 -- renewal in 502 seconds.

Hope you guys can help me because it was working before and suddenly it doesn't work anymore. Any ideas will be welcome.

greeting

Ivan

It looks like the VBoxHostOnly adapter properties cannot be configured from the classic Windows dialog.

I had to do this from VBox/File/Preferences/Network/Host-Only Network, then select your adapter and set properties from there.

Sometimes VBox doesn't reload configuration changes correctly, so maybe after configuring adapters/networks/DHCP/NAT servers, you might need to restart your computer.

Related


How to retrieve host IP from Nat VirtualBox Guest?

Dfaure I have a Windows 7 host that handles VirtualBox debian guests with nat. This guest is running some web services accessible from outside via port redirection. I need to provide external access to these services via url, but I can't rely on proper dns res

How to retrieve host IP from Nat VirtualBox Guest?

Dfaure I have a Windows 7 host that handles VirtualBox debian guests with nat. This guest is running some web services accessible from outside via port redirection. I need to provide external access to these services via url, but I can't rely on proper dns res

How to remove a VirtualBox host-only network adapter

Eric Smalling On OS X 10.10, if I start a Vagrant-based VirtualBox VM configured with a host-only network adapter, then destroy the VM, and try to recreate it via VMware Provider, the vboxnet# adapter I used before remains in my Vagrantfile The static IP decla

How to remove a VirtualBox host-only network adapter

Eric Smalling On OS X 10.10, if I start a Vagrant-based VirtualBox VM configured with a host-only network adapter, then destroy the VM, and try to recreate it via VMware Provider, the vboxnet# adapter I used before remains in my Vagrantfile The static IP decla

How to access Virtualbox internal IP from host?

TimD1 I've been trying to learn more about security by following http://www.pentesterlab.com/bootcamp/week2/ , but I'm struggling to access the VM's internal IP localhost from the host . I can access the host's internal IP from the VM (using 10.0.2.2) and the

How to access Virtualbox internal IP from host?

TimD1 I've been trying to learn more about security by following http://www.pentesterlab.com/bootcamp/week2/ , but I'm struggling to access the VM's internal IP localhost from the host . I can access the host's internal IP from the VM (using 10.0.2.2) and the

How to access VirtualBox host-only network from outside the host?

Brian I'm using Vagrant to deploy a large virtual network environment to test some applications and network activity. I'm using host-only networking, so all IP addresses can be defined in the Vagrantfile, but one of the applications I need for testing is an ex

How to access VirtualBox host-only network from outside the host?

Brian I'm using Vagrant to deploy a large virtual network environment to test some applications and network activity. I'm using host-only networking, so all IP addresses can be defined in the Vagrantfile, but one of the applications I need for testing is an ex

How do I setup host-only VMWare to use the host's DHCP server?

Victor Pudeyev If I have a VMware box with host-only networking, what is the host's IP, or how do I connect to the host? I'm testing some DHCP stuff and I want a new VMware machine to communicate only with the DHCP server (misconfigured) of the host I'm workin

How do I setup host-only VMWare to use the host's DHCP server?

Victor Pudeyev If I have a VMware box with host-only networking, what is the host's IP, or how do I connect to the host? I'm testing some DHCP stuff and I want a new VMware machine to communicate only with the DHCP server (misconfigured) of the host I'm workin

How do I setup host-only VMWare to use the host's DHCP server?

Victor Pudeyev If I have a VMware box with host-only networking, what is the host's IP, or how do I connect to the host? I'm testing some DHCP stuff and I want a new VMware machine to communicate only with the DHCP server (misconfigured) of the host I'm workin