Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running Windows 7 Ultimate and have now set up two virtual machines in Virtual PC. One is the XP Mode machine which runs XP (obviously). When I set it's network connection to Shared Networking (NAT), it gets internet access without any problems.

On the windows 7 virtual machine, when enabling the Shared Networking (NAT) option, I get no internet access. It does however say that it is connected. Here are what the status says:

alt text

What can I do here? It works with the VM running XP. Why doesn't it work with the one running Windows 7?

share|improve this question

closed as off topic by pauska, Wesley, voretaq7 Jul 5 '12 at 2:24

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

2 Answers

up vote 1 down vote accepted

After some digging around I actually found a fix.

I had to, in the VM running Windows 7, set the preferred DNS server of the network adapter to 192.168.131.254.

After doing that I can access internet in the VM. But, oh my, seriously? Is this how it is supposed to work?

share|improve this answer
    
I just thought about adding a remark about the dns server (10.0.0.1 in your screen shot). It was just name resolution which didn't work. So you should have been able to browse the web using an IP-address in stead of a name. –  fretje Aug 13 '09 at 10:24
    
Yeah, I didn't think about that since it do work on the XP machine and since 10.0.0.1 is the router. But is this seriously how it is supposed to work? –  Svish Aug 13 '09 at 10:48
    
Virtual PC is creating a virtual networking and NATing your VM's through the host. I'm assuming it creates that random 192.168.131.0 subnet to reduce collisions with more common home subnets. VBox does the sames. You are expecting it to bridge, which will give you a "real" address on your internal network. VMWare does this by default. I don't know if you can configure VPC this way. –  prestomation Aug 27 '09 at 13:17
    
No, I wasn't really expecting it to bridge and get a "real" address. However I did expect it to be able to connect to the internet. So if Virtual PC are creating a virtual network, it should have created a virtual DNS server as well. –  Svish Aug 28 '09 at 6:07
add comment

It is connected to the network. Have you actually tried opening Internet Explorer? Maybe you have to configure a proxy server first?

share|improve this answer
    
Yes, I get "Internet Explorer cannot display the webpage". –  Svish Aug 13 '09 at 10:00
add comment

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