DHCP

Discussions about using Windows guests in VirtualBox.
Post Reply
confused2gether
Posts: 1
Joined: 20. Nov 2009, 23:17
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Server08

DHCP

Post 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?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: DHCP

Post by vbox4me2 »

Bridge and/or internal networking?
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: DHCP

Post 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.
Post Reply