Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


November 2007

Extending Virtual PC with Virtual Server

Take your virtualization endeavors to the next level
RSS
Subscribe to Windows IT Pro | See More Windows OSs Articles Here | Reprints
Or get the Monthly Online Pass—only $5.95 a month!
SideBar    Essential Virtual Machine Additions

Download the Code Here

In a recent project, I helped build a selfcontained virtualized infrastructure based on a couple of virtual machines (VMs) with AD, DHCP, DNS, RIS, and WINS services running on them. The team started with Microsoft Virtual PC 2007 and installed the latest Virtual Machine Additions. (To learn about the often-overlooked task of installing Virtual Machine Additions, see the Web-exclusive sidebar “Essential Virtual Machine Additions, InstantDoc ID 97288.) After placing the solution in production for a while, we saw that the VM infrastructure just couldn’t cope with the load that our project demanded. To solve the problem, we ultimately installed Microsoft Virtual Server 2005 SP1, and ported the VMs over by making the necessary modifications and attaching the VHDs to SCSI adapters.

Virtual PC is an excellent, inexpensive tool for building precinct environments, whether for Help desk support or for testing security patches before production rollout. But as your needs grow, you might encounter similar limitations in performance and scalability. Or perhaps you’ve already built a core library of VMs and would like to reuse them in a secured server-farm environment.

Virtual Server might just be the answer you’re seeking. Microsoft’s well-designed virtualization architecture permits an almost seamless integration and interoperability between Virtual PC and Virtual Server. After a couple of free downloads, and a little tinkering, you’ll be able to tackle any virtual environment.

VM Architecture
For information about how to download both Virtual Server and Virtual PC for free, see the Learning Path. Before you start your download, however, you need to understand the subtle differences between Virtual PC 2007 and Virtual Server 2005 to help make porting VMs between the two platforms a little less painful. For the purpose of this article, all references are to Virtual Server 2005 R2 SP1 Enterprise Edition and Virtual PC 2007. Discussions about Virtual PC 2007 also apply to Virtual PC 2004 SP1, unless otherwise stated.

The design philosophies of Virtual PC and Virtual Server differ in their purpose and market segments. Put simply, Virtual PC targets the average desktop user, focusing on tight host-guest integration, ease of use, and a rich user experience. Virtual Server, by contrast, is aimed toward the enterprise-server sector, in which buzzwords such as manageability, scalability, and security are paramount.

Even considering this market distinction, you’ll find that Virtual PC and Virtual Server share a fundamental set of core features. The key enabler that facilitates VM porting between the platforms is the common file architecture: the virtual machine configuration (VMC) file and the virtual hard disk (VHD). The VMC file is an XML configuration file that contains metadata describing the VM. The actual disk storage as seen by the VM is enclosed in one or more VHDs.

The system automatically creates virtual machine saved state (VSV) files and undo disk (VUD) files, if enabled, in the same folder in which the VM is defined. The VSV file stores the suspended state of a running VM for restoration at a later time. The system writes changes made while a VM is in use to the VUD file, where rollback to a good known state can be accomplished by discarding the changes instead of committing them to disk. VSV files are incompatible between the two platforms. Hence, to avoid potential problems, modifications should always be flushed to disk and the VM properly shut down before moving VMs between Virtual PC and Virtual Server. The virtual network configuration (VNC) file is unique to Virtual Server and isn’t used under Virtual PC.

The Basics
Moving a Virtual PC–built VM to Virtual Server is as simple as accessing Virtual Server’s administration Web site and specifying the fully qualified path of the VMC file under Virtual Machines, Add. I do recommend that you first use the Virtual Disk, Inspect option. Doing so helps to verify the integrity of the VHD, including any dependency, such as the case when the VHD is set up as a differencing disk linked to its parent, as Figure 1 shows.

You might have a need to port a VM in the reverse direction, from Virtual Server to Virtual PC—for example, when the target machine doesn’t have Virtual Server installed or you want to enable some Virtual PC–specific features. To do so, open the Virtual PC console and start the New Virtual Machine Wizard. Select Add an existing virtual machine and point to the fully qualified path of the VMC.

As you can see, deploying an existing VM on either platform is as straightforward as adding the VM itself. Nevertheless, a few device types and functionalities will behave differently due to architectural variation between the products Web Table 1 (InstantDoc ID 97084) outlines some potential interoperability problems.

Networking Details
Both Virtual PC and Virtual Server support a maximum of four virtual network adapters per VM. Although the internal VMC file structure is common, networking is one aspect that differs slightly on the two platforms. Virtual PC stores network-configuration information directly in the VMC file with the same name as the VM, under the ethernet_adapter section, which Figure 2 shows.

The actual description of host network adapters available to a user resides in the options.xml file, which resides at %APPDATA% Microsoft\Virtual PC. Because Virtual PC has no GUI front end for changing the network adapter name, you’ll have to modify <name type="string">Manufacturer Network Adapter Name</name> in the <virtual_network id="n"> section. Remember to make a backup copy of the file before editing it.

Virtual Server stores network settings in separate XML configuration files with a VNC extension. You’ll find them under %ALLUSERSPROFILE% Documents\Shared Virtual Networks, and only local administrators have access to this folder in a standard installation. By default, the system creates a number of files that match the physical network adapters present on the host. Suppose you have two internal network adapters, one wired and the other wireless. Virtual Server will create two files named External Network (manufacturer name and wired NIC model).vnc and External Network (manufacturer name and wireless NIC model).vnc. Additionally, Internal Network .vnc is also automatically created to facilitate VM-to-VM communication only.

Virtual Server lets you create an infinite number of virtual networks, each with a fully customizable virtual DHCP Server, as you see in Figure 3. There’s also no limit to the number of VMs that can connect to each virtual network. By separating VNC files that describe various common network settings, you achieve isolation without tying a physical network adapter to a specific VM or user.

   Previous  [1]  2  Next 


Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

VMware and the Future of Virtualization

What's next for virtualization and business IT? Windows IT Pro senior editor Jeff James speaks with VMware President and CEO Diane Greene on the future of virtualization technology. ...

Common .pst File Questions

Sue Mosher addresses some of the inevitable questions that Outlook users eventually ask about Personal Folders (.pst) files. ...


Windows OSs Whitepapers Replay for Exchange: Enterprise Protection and an Affordable Price

Are You Satisfied?

A Preliminary Look at Deployment Plans for Microsoft Windows Vista

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Disaster Recovery and Backup

A Guide to Windows Certification and Public Keys

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Critical Challenges of ESI & Email Retention
Are you storing too much electronic information? Get expert legal advice and better understanding of what you are required to do as an IT professional.

Become a fan of Windows IT Pro on Facebook!
Join us on Facebook and be a fan of Windows IT Pro!

Sustainable Compliance: Are You Having a Resource Crisis?
Read this white paper to examine trends in compliance and security management and review approaches to reducing the cost and operational burden of compliance.

Rev Up Your IT Know-How with Our Recharged Magazine!
The improved Windows IT Pro provides trusted IT content with an enhanced new look and functionality! Get comprehensive coverage of industry topics, expert advice, and real-world solutions—PLUS access to over 10,000 articles online. Order today!

Get It All with Windows IT Pro VIP
Stock your IT toolbox with every solution ever printed in Windows IT Pro and SQL Server Magazine plus bonus Web-exclusive content on hot topics. Subscribe to receive the VIP CD and a subscription to your choice of Windows IT Pro or SQL Server Magazine!



Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.
Windows IT Pro Home Register About Us Affiliates / Licensing Media Kit Contact Us/Customer Service  
SQL Connected Home IT Library SuperSite FAQ Wininfo News
Europe Edition Office & SharePoint Pro Windows Dev Pro Windows Excavator 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing