Get guest (client ) ip address from guest dhcp server

Discussions about using Windows guests in VirtualBox.
Post Reply
bitla
Posts: 4
Joined: 21. Apr 2012, 21:02

Get guest (client ) ip address from guest dhcp server

Post by bitla »

Hello to all.

I am new to using Virtual box. I found this is one of the best options to chose when compared to other virtual softwares available as it does not effect the CPU load (%).

I am trying to setup a virtual network with one client (windows xp), one DHCP and DNS (window 2008 r2 ) server and one Active directory - domain controller (windows 2008 r2). All the three operating systems are guest and my host is another windows xp sp2. (ie. i installed virtual box in xp sp2 and installed Guest OS (XP, DHCP, DNS and Active directory)

I am interested in setup up such a way that the client (guest) xp machine will get the ip address from guest DHCP windows 2008 server and will communicate to DNS server for domain login.

Is this setup possible in virtual box?

If so how?

Thanks for your time and suggestions.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Get guest (client ) ip address from guest dhcp server

Post by Perryg »

The easiest and for most the best way to use and test Windows domains in VirtualBox
Setup Windows Domain in VirtualBox
bitla
Posts: 4
Joined: 21. Apr 2012, 21:02

Re: Get guest (client ) ip address from guest dhcp server

Post by bitla »

Thanks perryg but, this is not setup i am trying to create. I know I can install DNS, AD, DHCP roles one server itself and join a client to the domain. I am trying to setup where one server has only one or two roles running. I will be setting up the same on Solaris guest os when have a success in window as I am not an expert in Unix flavours.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Get guest (client ) ip address from guest dhcp server

Post by Perryg »

Same thing. As I said in the tutorial it can be on to as many as your PC can handle. The trick is they all have to be in the same Intnet.
bitla
Posts: 4
Joined: 21. Apr 2012, 21:02

Re: Get guest (client ) ip address from guest dhcp server

Post by bitla »

Will the guest windows xp client get the ip address from the guest DHCP Server instead from Virtualbox?

And one more thing i noticed is that when i use NAT all the guest OS get the same ip 10.0.2.15 and Virtualbox preferences there is an option to edit /add host only network adapter
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Get guest (client ) ip address from guest dhcp server

Post by Perryg »

Really it is not that hard. All of the guests whether they are servers of clients go in the same Internal network (intnet).
This separates your test Domain from the local network so it does not cause a conflict.
You add another guest to act as a router if you need/want the Internet in the test domain. If they don't need or you don't want the Internet in the test domain you can leave this out.
You will not be using the host-only or nat and you will provide your own IP address's via your DHCP server that you set to use a non-routable IP address range.
bitla
Posts: 4
Joined: 21. Apr 2012, 21:02

Re: Get guest (client ) ip address from guest dhcp server

Post by bitla »

Thank you very much Perry.
I am not sure how to configure a guest os as a router, do you have any article or tutorial?

I think the guest os dhcp server will act as a router, am i correct?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Get guest (client ) ip address from guest dhcp server

Post by Perryg »

No you don't want the guest dhcp server to act as a router.
Install a stripped down XP or pFsense to use as a router.
In XP you simply use ICS (Internet Connection Sharing) or pFsense They both have instructions available.
The ICS or pFsense will have (2) virtual adapters. One to connect to the Internet using NAT and one to the same intnet that you have your other test guests in.
Post Reply