Page 1 of 1

host-only network set DHCP error.

Posted: 16. Jun 2020, 18:30
by Hon

Code: Select all

root@hon-debian:~# VBoxManage hostonlyif create
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interface 'vboxnet0' was successfully created
root@hon-debian:~# vboxmanage dhcpserver add --interface=vboxnet0 --server-ip=192.168.88.10 --netmask=255.255.255.0 --lower-ip=192.168.88.11 --upper-ip=192.168.88.254 --enable 
root@hon-debian:~# 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

root@hon-debian:~# VBoxManage list dhcpservers
NetworkName:    HostInterfaceNetworking-vboxnet0
Dhcpd IP:       192.168.88.10
LowerIPAddress: 192.168.88.11
UpperIPAddress: 192.168.88.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


root@hon-debian:~# vboxmanage hostonlyif ipconfig vboxnet0 --dhcp
VBoxManage: error: Code NS_ERROR_NOT_IMPLEMENTED (0x80004001) - Not implemented (extended info not available)
VBoxManage: error: Context: "EnableDynamicIPConfig()" at line 237 of file VBoxManageHostonly.cpp

root@hon-debian:~# 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

host-only network set DHCP error.
I found a few posts with similar problems, but I didn’t find a solution.

VirtualBox 6.1.10
VboxManage 6.1.10r138449
OS Debian 10 (buster)

Re: host-only network set DHCP error.

Posted: 16. Jun 2020, 19:13
by scottgus1
based on the output of "vboxmanage hostonlyif", with some color added to differentiate []'s:
VBoxManage hostonlyif       ipconfig <name>
                            [--dhcp |
                            --ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] |
                            --ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]]
                            create |
                            remove <name>
realigned to be on one line (copy & paste to a text document to see the whole layout):
VBoxManage hostonlyif ipconfig <name> [--dhcp | --ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] | --ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]] create | remove <name>
It appears that after "ipconfig <name>", with optional --dhcp, --ip<ipv4>, or --ipv6<ipv6>, there has to be a 'create' or 'remove'.