Welcome to MSDN Blogs Sign in | Join | Help

Creating multiple private virtual networks under Virtual PC

Under Virtual Server we give you the ability to create multiple private virtual networks for use by your virtual machines (this is very handy for creating complicated, but isolated, networking infrastructures).  Unfortunately under Virtual PC we only provide one private virtual network. 

This can be easily remedied. 

All you need to do is to install as many Microsoft Loopback adapters in the physical computer as you want private virtual networks (the details on how to install the Microsoft Loopback adapter are provided in the Virtual PC help files; to install multiple Microsoft Loopback adapters you just have to repeat the process).  You should then unbind everything but the Virtual Machine Network Services drivers from these new loopback adapters (unless you want the host to be able to join in on the networking - in which case you can just leave them alone) and launch Virtual PC.

The only problem now is that you will have a bunch of virtual networks with names like "Microsoft Loopback Adapter #5" - but this can be easily fixed by following the process outlined in my post yesterday.

Cheers,
Ben

N.B. If you do decide to leave TCP/IP enabled on the Microsoft Loopback adapter you should configure it to use a static IP address; otherwise there will be a noticeable pause whenever you first login to your physical computer as it attempts to get a DHCP lease on the loopback adapter (which will never succeed)

Published Tuesday, August 30, 2005 8:51 PM by Virtual PC Guy

Comments

Wednesday, August 31, 2005 12:08 AM by Tech Guru

# Create Multiple Virtual Networks on VPC

Monday, September 19, 2005 12:54 PM by zigi

# re: Creating multiple private virtual networks under Virtual PC

Hi,

i have VirtualPC installed on my laptop.
when i'm connected to a DHCP network, the virtual machine networking works
fine, gets IP from DHCP server.

but when my laptop (host machine) is connected to the internet using a
usb-adsl modem and gets a real IP, the virtual machine is not connected to
the internet, even if i configure in the settings page to use NAT
networking.

what is the way to have the virtual machine connected to the network in this
connection scenario?

TIA.
Monday, September 19, 2005 2:44 PM by Virtual PC Guy

# re: Creating multiple private virtual networks under Virtual PC

Zigi -

This should work just fine. If you are seeing problems you may want to try configuring the guest operating system to use a DNS server of '192.168.131.254' when you are using shared networking.

Cheers,
Ben
New Comments to this post are disabled
 
Page view tracker