Start Host-Only Network Adapter DHCP Server Syntax

Discussions related to using VirtualBox on Windows hosts.
Post Reply
raymondjpg
Posts: 6
Joined: 24. May 2015, 06:39

Start Host-Only Network Adapter DHCP Server Syntax

Post by raymondjpg »

Host is Win 7 64 bit fully patched.

Command VBoxManage dhcpserver modify --ifname HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter --enable returns "Syntax error: unhandled parameter: Host-Only"

Can someone please advise the correct syntax for starting that DHCP server.

TIA
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by noteirak »

You need to put the interface name between quotes since it contains spaces, like this:

Code: Select all

VBoxManage dhcpserver modify --ifname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
raymondjpg
Posts: 6
Joined: 24. May 2015, 06:39

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by raymondjpg »

noteirak wrote:You need to put the interface name between quotes since it contains spaces, like this:

Code: Select all

VBoxManage dhcpserver modify --ifname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Thanks. If I do that I get an error "The host network interface with the given name could not be found..."
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by noteirak »

After checking the syntax, ifname already expects a Host-Only name, so please try this:

Code: Select all

VBoxManage dhcpserver modify --ifname "Virtualbox Host-Only Ethernet Adapter" --enable
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
raymondjpg
Posts: 6
Joined: 24. May 2015, 06:39

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by raymondjpg »

noteirak wrote:After checking the syntax, ifname already expects a Host-Only name, so please try this:

Code: Select all

VBoxManage dhcpserver modify --ifname "Virtualbox Host-Only Ethernet Adapter" --enable
Thanks to you as well, but using that syntax I still get that error "The host network interface with the given name could not be found..."
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by noteirak »

What is the output of:

Code: Select all

vboxmanage list hostonlyifs
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
raymondjpg
Posts: 6
Joined: 24. May 2015, 06:39

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by raymondjpg »

noteirak wrote:What is the output of:

Code: Select all

vboxmanage list hostonlyifs
Name: VirtualBox Host-Only Ethernet Adapter
GUID: 20c858ab-161a-45f7-8b15-e70b2f66ed35
DHCP: Disabled
IPAddress: 192.168.35.1
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:9128:8332:c3ef:b61e
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 08:00:27:00:c4:b8
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by noteirak »

Try this. If it still doesn't work then I am out of ideas...

Code: Select all

VBoxManage dhcpserver modify --netname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
raymondjpg
Posts: 6
Joined: 24. May 2015, 06:39

Re: Start Host-Only Network Adapter DHCP Server Syntax

Post by raymondjpg »

noteirak wrote:Try this. If it still doesn't work then I am out of ideas...

Code: Select all

VBoxManage dhcpserver modify --netname "HostInterfaceNetworking-Virtualbox Host-Only Ethernet Adapter" --enable
Thanks for trying. That syntax returns "DHCP server does not exist".

I have now restored the PC to an earlier state, with DHCP server enabled on the host adapter.
Post Reply