I do all my development inside Virtual PC virtual machines, and except for some performance issues I've talked about in the past, it does work rather well. However, one thing that kept bugging me was the networking was flaky, particularly when I was connected through the wireless network (i.e. 90% of the time). Things like not being able to see the host machine from the guest machine and vice versa.
About a month ago I settled on a configuration which has made it far more comfortable to use and with a lot less hassle, and it goes somewhat like this:
- Add the MS Loopback Adapter to your physical machine, with a static IP Address (this is actually harder to do than it sounds; it took me about half an hour to find how to install it).
- Configure all my virtual machines with 3 network cards: One tied to the wireless card, one tied to the ethernet card, and one tied to the loopback adapter.
- Configure the first two cards with DHCP, and the last one with a static IP different from the host machine's one.
- Add entries in the host files of all machines using the static ip addresses to enable quick name resolution.
With this configuration, I can ensure that virtual machines can always see the host machine (yay!), and at the same time, they should get real network access regardless of whether I'm connecting through a cable or the wireless.
Technorati: Virtual PC, VPC, Network