Solving the Virtual PC Network Problems

Link. November 4, 2006. Comments [2]. Posted in: Development

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:

  1. 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).
  2. 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.
  3. Configure the first two cards with DHCP, and the last one with a static IP different from the host machine's one.
  4. 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.



Friday, December 29, 2006 10:08:46 AM (SA Pacific Standard Time, UTC-05:00)
I'm with you on doing my development in VMs. Thanks for this useful information! Since it's not very straightforward, could you elaborate on how you got the loopback adapter installed and configured?
Wes
Friday, December 29, 2006 10:12:02 AM (SA Pacific Standard Time, UTC-05:00)
Wes,

I don't remember the exact steps; but I believe you need to go to the Device Manager, right click on the Computer icon and select the option "Add Legacy Hardware"; then, find network adapters and look for the Microsoft Loopback Adapter somewhere in there.
Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Categories

Statistics

Total Posts: 1051
This Year: 2
This Month: 2
This Week: 1
Comments: 827

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.2.8279.16125

Sign In