Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am attempting to create a lab using Windows Server 2012 (GUI) with Hyper-V on my laptop. I am trying to figure out how to create an "Internal" network with NAT through the adapter on the physical laptop.

As it stands, the only way I can get my guest VMs online are through the "External" network so I'm getting an IP address from the DHCP server itself, and not using the host as a gateway.

Internet Connection Sharing is disabled by Group Policy so using the EMC article regarding sharing my connection doesn't seem to be a viable option right now.

Additionally, I've stumbled across this article with "IP Rewrite" but I'm unable to find any other resources on how to employ this to my advantage. What is "IP Rewrite" and how would I employ this in my situation?

share|improve this question
    
As the system administrator you should be able to grant yourself an exemption to the group policy disabling internet connection sharing. Also, why are you trying to do this on your laptop as opposed to say a dedicated lab machine? (Running a full test environment of any scale on your laptop is going to kill user performance) –  voretaq7 Dec 20 '12 at 17:39
    
@voretaq7 Thanks for the feedback. a) I'm not actually the system administrator - I'm the DBA, b) it's so that I can install different versions of SQL server and use them for professional development. –  swasheck Dec 20 '12 at 17:42
    
@swasheck If your "lab" is going to be of any substantial complexity (more than just one VM) you probably want to talk to your sysadmin though - if for no other reason than to ensure that your lab resembles the production environment and all your hard work can be transferred easily when the time comes. –  voretaq7 Dec 20 '12 at 17:49
    
@voretaq7 this has nothing to do with any end-user experience. this has to do with professional development. –  swasheck Dec 20 '12 at 17:51
add comment

migrated from serverfault.com Dec 20 '12 at 18:05

This question came from our site for professional system and network administrators.

4 Answers

up vote 3 down vote accepted

Hyper-V may not have a NAT networking option (like Virtualbox does), but Windows does: check this out:

  • Basically you make a virtual Internal network.
  • Right-click your network adapter.
  • tab Sharing
  • Enable Sharing and link it to your virtual internal network.
  • Then manually give you machines IP- and DNS settings (including your host).
share|improve this answer
    
This was somewhat the approach that I took. I created an "Internal" network with this method and I created an "External" network that allowed Internet access. –  swasheck Jun 20 '13 at 14:42
1  
And you can do this twice. Once for your Wifi, once for your LAN connection. Then add both internal networks to your VM and you have internet no matter which one is "active". –  Vincent Vancalbergh Jun 20 '13 at 15:07
add comment

Could you accomplish this by running a small Linux VM acting as a gateway?

Give the Linux VM an adapter on both the private and external network, and set ip forwarding. Put your other VM's on the internal network, and point their gateways to your Linux VM.

I haven't tested this, but I would imagine this would work. If you get a sufficiently small linux install (DSL, or something?) resource usage should be minimal.

share|improve this answer
    
That's a great idea. Thanks. –  swasheck Dec 20 '12 at 18:15
add comment

It's not a solution using Hyper-V (and there may be some license considerations), but you could always try VirtualBox -- it's pretty decent desktop virtualization, and it does offer a NAT networking option that can do what you're asking for in the question.

Your mileage may vary in terms of performance and vendor support, but I've had good experiences with VirtualBox. It's probably adequate for running SQL servers in a VM to try out new functionality.

share|improve this answer
add comment

Hyper-V does not have a NAT networking option.

share|improve this answer
1  
I know - at least not a simply click button like VMWare Workstation. However, the rest of my question addresses some of the configurations that may make this more useful. –  swasheck Dec 20 '12 at 18:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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