Page 1 of 1

DHCP

Posted: 20. Nov 2009, 23:23
by confused2gether
I am not sure if this is the right place for this but I think this is more so of a request, but is also possibly a question if this is already in place.

I have setup a few test machines (all server 08 boxes) in Virtual Box and one of them is a DC that also does DHCP services as well. The way I have them all talking to each other is setting up a Host-Only adapter for each machine and staticly (for now) assigning IP addresses.

My question/request is this. I am able to assign the IP of the adapter and I can also enable and disable DHCP from that adapter, but I do not have the option of telling the adapter to use a specific DHCP server instead, in my case I want to use the virtual machine that has DHCP services already setup and installed on it to manage DHCP and not the Host-Only adapter.

Is this possible already? Or, is this something that could be considered in a future revision?

Re: DHCP

Posted: 20. Nov 2009, 23:42
by vbox4me2
Bridge and/or internal networking?

Re: DHCP

Posted: 21. Nov 2009, 01:25
by MarkCranness
If you disable the VirtualBox supplied DHCP server, your VM DHCP server should then just take over.
Just like for a real network, IP hosts on that network are not configured to use a particular DHCP server: they 'discover' it.

See sections 8.25 of the user manual.
List the names of all host only interfaces:
[code]VBoxManage list hostonlyifs[/code]Disable VirtualBox DHCP server on that interface:
[code]VBoxManage.exe dhcpserver modify --ifname "VirtualBox Host-Only Ethernet Adapter" --disable[/code]
Oops, you must already know that.