Question

Hyper-V VM Windows Server 2003 R2 No outbound network connectivity after subnet change

Asked by: BThompsonTX

I am unable to access anything outside of the host OS from a VM when subnet was changed.

Dell 2950 III, dual Xeon 2.0 12 GB Memory, 4 500GB drives.
Host OS: Win Server 2008 Standard
VM: Win Server 2003 R2 SP2 (Integrations Services Installed)
Switch 1: Cisco 3750e 48 port (192.168.15.0/24 on VLAN 10 (TEST subnet)) (192.168.13.0/24 on VLAN 2 (CORP subnet))

I started with Win 2k8, configured IP (192.168.15.202/24), installed Hyper-V Role, created new VM with Win 2k3 R2, installed integration services, configured legacy network adapter and provided IP (192.168.15.203/24).  
I was able to access all resources (CORP subnet), including Internet. Downloaded and Installed SQL Server 2005 Standard, Windows Sharepoint Services 3.0 and Visual Studio Team Foundation Server. By the way, all of this was done via Remote Desktop from my home to the corporate office.
I then moved the box to a different subnet, changed the IP on host (192.168.13.202/24) and VM (192.168.13.203/24) and cannot access anything other than the host IP.
I can ping the host IP from the VM, but nothing else and can ping the VM from the host OS and everything else.

Worked through this for a few days by changing the network adapter type, disabling the firewall on host and VM and finally removed Hyper-V Role and re-installed it.  Created new VM using Win 2k3 .vhd and still cannot acees anything outside of the host OS.

I tried installing a new fresh VM using Win 2k8 and 2k3 and cannot access outside resources from them as well.

Anyone have any ideas what could be wrong?  

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-31 at 07:08:54ID24860702
Topics

Hypervisor

,

Windows Server 2008

,

Windows 2003 Server

Participating Experts
3
Points
500
Comments
25

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Cisco VMS software.
    Hello, Does anyone know where I can get the Cisco VMS software.
  2. VPN into VLAN'd VM
    Having issues using a Cisco IPSEC VPN into a VLAN'd VM. To this point I think it is a VMware issue but not completely satisfied with that conclusion. Attached is a ESX network config along with a basic diagram of what I am attempting to accomplish. Basically I have 1 physic...
  3. Securing VLAN Communications with VM's
    I have a question. There may not be a solution and it's fairly complicated. I work in a hospital so there is a huge effort to secure patient data. We have an internal system that is seperated out from the public network in it's own core/vlan. Currently the Vendor who cre...
  4. Create VMs on VLAN
    Anybody has instruction on how to create VM on VLAN? Thanks
  5. Linux VM Internet Connection
    So I have a server that is running Citrix Xenserver 5.5, I installed CentOS 5.4 as a VM on the Xenserver, everything seems to have gone well on the install of the OS, but I have no internet connection. The Xenserver has an internal address of 172.xx.yy.10 the VM has an inter...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mutahirPosted on 2009-10-31 at 07:51:20ID: 25709984

In Your Hyper V manager,

Check that the network adapter you have tied on to your hyper-v virtual network is set to type as "external"

http://blogs.msdn.com/virtual_pc_guy/archive/2008/01/08/understanding-networking-with-hyper-v.aspx

http://www.virtuatopia.com/index.php/Understanding_and_Configuring_Hyper-V_Virtual_Networks

If none of the above works :

Remove the virtual network - unbind your network card from virtual network
Then verify you can access the physical subnet by your Hyper-V HOST system (server 2008)

Then create a virtual network bind the proper network card , select network type external
then double check your vm settings to make sure its using the right virtual network

power on your vm and you should be able to get a IP from the proper subnet and access resources.

 

by: mutahirPosted on 2009-10-31 at 07:52:43ID: 25709989

If you are using static ip under your vm ; try changing it to dynamic and see if it gets one from your dhcp ; or try flushing ip addresses / dns address on your vm and then restart and put it back to the proper one as well.

Windows update, any hyper-v updates as well , apply them.

 

by: BThompsonTXPosted on 2009-10-31 at 09:22:23ID: 25710308

i did try what you said previously when I was onsite yesterday.  When I was working remotely via Remote Desktop and removed the virtual network, I lost connectivity.  I went onsite and re-created the virutal network and I still could not access resources outside of the host. Host connectivity is fine.

The virtual network is setup as an External network and I cannot get a DHCP address to the VM NIC.

 

by: dariusgPosted on 2009-11-01 at 12:30:09ID: 25715292

Are you connecting the Virtual Network to a NIC interface that is hooked up to the physical network. If you put static IP addressing can you connect?

 

by: BThompsonTXPosted on 2009-11-01 at 12:44:54ID: 25715370

Yes, I am connecting the Virtual NIC to an ethernet connected NIC and both the host NIC and Virtual NIC have static IP's assigned to them within the same subnet.

 

by: dariusgPosted on 2009-11-01 at 13:08:20ID: 25715480

So, the virtual NIC you mean the on within the VM not the Virtual Network Adpater that is created when you create a Virtual Network on the Host?

 

by: mutahirPosted on 2009-11-01 at 13:20:47ID: 25715536

Have you tried again to remove the virtual nic inside your vm settings and add it again ?

 

by: BThompsonTXPosted on 2009-11-01 at 20:19:42ID: 25717041

dariusg - Yes, that is correct.

mutahir-  I have tried several times.

I'm beginning to think it is something in the Host OS.  I have created 2 more virtual machines and cannot connect to anything outside of the host os.
I'll go onsite tomorrow and uninstall the physical nic from the host os, remove the Hyper-V role and re-install them and see what happens from there.

 

by: mutahirPosted on 2009-11-01 at 22:34:17ID: 25717421

Yes, before uninstalling, I would say to apply any windows updates / sps and download latest nic drivers / firmware

How many Nics do you have in your server ?

If you have Two nics in your server, connect the 2nd as well to your ethernet network and then use that as virtual network type external and then see if that helps ;

Keep us posted

 

by: darkjedi213Posted on 2009-11-02 at 05:21:36ID: 25719016

On the host running Hyper-V, check the LAN connections properties for the physical nic port and the virtual nic. The physical nic should only have checked "Microsoft Virtual Network Switch Protocol". The virtual nic should have nothing checked.

In addition, when I was setting up Hyper-V and configuring the LAN connections, my external nic's IPv4 settings would get it's default gateway reset whenever I would change any other setting. I would have to go in a second time and set the gateway again before it would stick. It could just be my server, but it was happened to me and tripped me up for many hours.

 

by: dariusgPosted on 2009-11-02 at 05:43:10ID: 25719146

So, make sure you only have Microsoft Virtual Network Switch Protocol like dark said that is where I was getting to in my last post.

 

by: BThompsonTXPosted on 2009-11-02 at 06:12:51ID: 25719411

The physical NIC only has Virtual Network Switch Protocol and the Virtual NIC for the HOST OS has everything but Virtual Network Switch Protocol checked and has a static IP assigned to it.

 

by: darkjedi213Posted on 2009-11-02 at 06:17:56ID: 25719454

That's the problem then. On the virtual nic on the host OS, uncheck everything.

The rational is the physical nic port should run as a pure transparent switch port (think a "1 port switch"), so it uses Microsoft's special VNS protocol which does just that. The virtual nic is sort of a placeholder so that the VM OS's themselves can each use whatever LAN connection properties they want, therefore it needs nothing checked.

 

by: BThompsonTXPosted on 2009-11-02 at 06:19:02ID: 25719463

Where do I assign the static IP for the Host OS?

 

by: darkjedi213Posted on 2009-11-02 at 06:21:36ID: 25719478

You should have at least 2 physical NIC ports on your host server. One to be used exclusively by the hosted virtual machines and another to be used exclusively by the Host OS. Both should be plugged into your switch.

 

by: darkjedi213Posted on 2009-11-02 at 06:25:37ID: 25719518

To clarify, you would set your Host OS static IP on one physical port and the other physical port would be configured with the VNS protocol enabled and nothing else. Then you would have a third LAN connection (after you run the wizard in hyper-v to create a virtual network) which represents the virtual nic to be used by all your virtual machines. This third LAN Connection is secretly bound to the physical NIC port you configured with the VNS protocol.

It's a lot to get your head around, but bottom line is one physical NIC port will only be used by the Host OS for it's normal network communication (like windows updates, etc) and it will not be used at all by your virtual machines.

 

by: BThompsonTXPosted on 2009-11-02 at 06:27:31ID: 25719539

OK.  When I had this up before i changed the IP's, everything was working through just a single NIC.  I will have someone run an Ethernet cable to the second NIC and setup the VM's to use the second NIC.

 

by: mutahirPosted on 2009-11-02 at 06:58:23ID: 25719911

I have attached the screenshots

This server is using ONE NIC and have Hyper-V

Make sure your settings are like this, basically on your actual real physical network card you would only have "virtual network switch protocol" binded and nothing else ;

On the Virtual Nic hyper-v creates, that will have the IP address and will have everything checked apart from "Virtual Network Switch Protocol"

Check your settings as per the screenshots and post back your findings.

 

by: mutahirPosted on 2009-11-02 at 07:07:01ID: 25719995

Just a suggestion :

Change your IP Settings back to your test vlan and see if that is working ?

If that is working then there is something on the vlan side of things or then it is the virtual network switch protocol.


 

by: darkjedi213Posted on 2009-11-02 at 07:39:58ID: 25720337

Great instructions and pic, Mutahir. I never knew that was possible. I would suggest to the author if he has two physical nic ports on the server, use them in the configuration I mentioned. That is "best practices" for Hyper-V, especially if you have a lot of VM's.

 

by: BThompsonTXPosted on 2009-11-02 at 07:49:00ID: 25720421

mutahir-  The screenshots you posted are exactly how my single NIC configuration is/was setup.

I have someone onsite now and have added another ethernet cable. both NIC's are set for DHCP right now and are able to obtain an IP from the DHCP Server, setup the VM's vurtual network but still am not able to get outside of the Host OS.

GREAT NEWS....I ended up uninstalling the NIC's from Device Manager, rebooted the Main Server, reconfigured everything and am now able to access all resources and the internet!!!! :)  I'm happy now.

Just as I thought, it was evidently something with the NIC on the host OS.  

 

by: BThompsonTXPosted on 2009-11-02 at 07:51:24ID: 25720446

Now that this is done, I want to be fair to all the helped me on this, but not sure who I should award points to.  I appreciate everyone's responses and not sure how to give everyone credit.  Can I give all that replied 500 points?  This is well worth more than that to me.

 

by: BThompsonTXPosted on 2009-11-02 at 07:52:15ID: 25720458

Also, just to note, I am using two NIC's now.

 

by: darkjedi213Posted on 2009-11-02 at 08:01:09ID: 25720546

Accept the post that actually solved your problem (even if it's your own) so others searching this same problem will go straight to the solution. You can give assist point to others with good ideas or pertinent info.

 

by: mutahirPosted on 2009-11-02 at 08:23:49ID: 25720770

Great stuff ;

Glad it solved

DarkJedi, yes you are right and I personally implement hyper-v with two nics or even more depending on the traffic, but the user was already pre-configured with one nic, i did advised him to use the 2nd nic though - but you are right that it should always be the case to use a seprate nic

Also, I think somehow the tcpip stack got confused in this scenario ; I think when you changed the IP addresses the change wasn't completed properly on the nic and the virtual network switch protocol - thus uninstalling the nics and adding them back in solved it :-)

Will keep this in mind for future

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...