vbox vbox hostonly interfaces are not working

Hello

I can't get VirtualBox hostonly interface working after I upgraded to VirtualBox 7.2
Seems DHCP is not giving the IP address.
I'm used to install minikube and test kubernetes containers and even that stopped working, I believe the cause is the not working vbox hostonly.
Is there a bug or something?

Thank you
 
I can't get VirtualBox hostonly interface working after I upgraded to VirtualBox 7.2
Working myself with host-only networks, I noticed the problem quite a while ago on the 7.2 version as well.

Except for NAT attached adapters, all other DHCP servers are broken on version 7.2. (latest available port/package version 7.2.14)

Despite the checkbox of the vboxnetX DHCP server is check, and dhcpservers list shows the server enabled, the hostonlyifs list shows it disabled.
Rich (BB code):
% vboxmanage list dhcpservers
NetworkName:    HostInterfaceNetworking-vboxnet0
Dhcpd IP:       192.168.56.2
LowerIPAddress: 192.168.56.3
UpperIPAddress: 192.168.56.254
NetworkMask:    255.255.255.0
Enabled:        Yes
Global Configuration:
    minLeaseTime:     default
    defaultLeaseTime: default
    maxLeaseTime:     default
    Forced options:   None
    Suppressed opts.: None
        1/legacy: 255.255.255.0
Groups:               None
Individual Configs:   None

% vboxmanage list hostonlyifs
Name:            vboxnet0
GUID:            786f6276-656e-4074-8000-0a0027000000
DHCP:            Disabled
IPAddress:       192.168.56.1
NetworkMask:     255.255.255.0
IPV6Address:   
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 0a:00:27:00:00:00
MediumType:      Ethernet
Wireless:        No
Status:          Down
VBoxNetworkName: HostInterfaceNetworking-vboxnet0
vboxmanage dhcpserver start --interface=vboxnet0 doesn't have an effect. In the hostonlyifs list DHCP stays "Disabled".

For the time being, you need to configure IP addresses manually, or setup a DHCP server on the host, listening on the vboxnetX interface, leasing on the 192.168.56.0 subnet.

It looks like there is no issue opened on https://github.com/VirtualBox/virtualbox/issues or a PR on https://bugs.freebsd.org .
 
But even when starting with a static IP address like
minikube start --cni cilium --static-ip 192.168.49.100
it doesn't seem to work
 
I was able to make it work.
Open virtualbox gui and open minikube console
Login with user 'root', no password
then create the following file
sudo vi /var/lib/boot2docker/bootlocal.sh
Code:
#!/bin/sh
# Add an alias static IP to the main network interface (e.g., eth0 or eth1)
ip addr add 192.168.59.100/24 dev eth1 label eth1:static

and then
sudo chmod +x /var/lib/boot2docker/bootlocal.sh

restart minikube and it should work
 
Back
Top