0

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?

Glorfindel
  • 1,213
  • 4
  • 15
  • 22
Svish
  • 6,977
  • 15
  • 38
  • 45

2 Answers2

1

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?

Svish
  • 6,977
  • 15
  • 38
  • 45
  • 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 06:07
0

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

fretje
  • 1,644
  • 1
  • 14
  • 15