First off let me say that I'm not a network admin or server guy, I know very little about that stuff. What I'm trying to do is setup a virtualized domain using hyper-V. Here is the configuration:

Physical Server:

  • 4Mb RAM
  • Windows Server 2008 R2 running Hyper-V

Virtual Environment:

  • One Domain Controller running Windows Server 2008 R2
  • One Client running Windows Server 2008 R2

I have been successful in setting up a virtual domain controller and adding a virtual client to that domain controller but I'm stuck at trying to give the virtual Environment Internet access. I can give the client VM Internet access if I remove them from the virtual domain but once I add them back to the virtual domain, Internet access is gone.

I've read articles describing many different ways this can be done (using RRAS with NAT, using a wireless connection, etc...) but all of those articles only cover a small piece of the setup and also seem to be geared towards people who know there way around networking and servers which I don't. I'd like to know more but my thing is software development and I have my hands full trying to keep up with everything in that realm. I simply want to setup a virtual domain with Internet access for testing.

Can anyone point me to any "for Dummy's" type information on how to setup this type of environment or can anyone provide this kind of step-by-step help. Any help would be very much appreciated.

link|improve this question
your question is a little bit confusing. let me see if I get it. 1. you have a physical server with 4 GB of RAM, and you installed windows 2008 R2 server as your Hyper-V host, and the host is your domain controller as well? 2. you setup a VM as a client, and the client as a standalone does get to the Internet, but then as soon as you join this client to the domain controller above, it loses its Internet connection? is this correct? – Nelson Amaya Jul 28 '11 at 16:19
Could you please carefully and concisely describe your network setup (both physical and virtual; and using the same terminology as where it's configured)? I'm having a really hard time figuring out what you're trying to setup here; what's your end-game? – Chris S Jul 28 '11 at 16:34
I have updated the post which hopefully gives you enough information about the environment. I've left out any information about network setup because that is where I'm having problems. My goal is simply to setup a virtual domain for testing consisting of one domain controller virtual machine and one client virtual machine. My problem is that I cannot get Internet access working within the virtual domain. Please let me know if you need any more information. I apologize if I'm missing information but I'm not really sure what is relevant or not. Thanks. – fynnbob Jul 28 '11 at 17:57
feedback

2 Answers

You can add a second virtual NIC to your DC with the NAT type and then it up to "share Internet connection" for it. If the DC is also setup to function as a DHCP server, then the client should receive its IP configuration from the DC and also route its non-local traffic through the DC.

This is a quick nutshell, but should identify the "rough" steps needed based on the information that you have provided.

link|improve this answer
feedback

It just sounds like you've got the wrong IP settings.

You can use the above settings or you can use static settings. I would prefer the static settings if you are at work. Having another DHCP server nabbing broadcasts basically give other computers a hiccup.

Now, you didn't specify which Virtualization software you are using. Generally, they are all going to ask what kind of virtual NIC that you want to add: Bridged, NAT, Private, None.

Private would be preferred. If not, go with NAT.

Your virtual DC should have a static IP.

Here is the fun one. Depending on what Virtualization software you are using, it may or may not initially show you the ip address for your gateway. When you picked NAT above, it might show you. If not, no worries. From inside the virtual DC, click on the network center. If it isn't already on "acquire an ip address" then click that and when it does, copy down the IP settings. If you are using Private, you'll have to hunt down the NIC address from the outside. Lets just assume you went with the NAT option above.

For IP Address, Subnet, and Gateway, use the settings you've written down. For the DNS server settings, you'll want your primary DNS server to be this IP address, or the IP address of the virtual DC. The secondary DNS server can be the gateway.

For the VM client, just do the following. Add one to the IP address. ie 192.168.150.100 to 192.168.150.101. Use the same subnet mask and gateway. The primary DNS should be the IP address of the virtual Domain controller and secondary dns server is the gateway.

That should get you going.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.