|
Microsoft Virtual PC IntroductionThere's an old cartoon joke where a character is being chased and comes up to a wall of some kind blocking his way. So, our hero pulls out a paintbrush, paints a hole in the wall and runs through to safety. The villain, of course, tries to follow and ends up seeing stars after crashing into the solid wall. The virtual escape works like a charm for the good guy while keeping the attacker out. I thought of the cartoon when working with Microsoft Virtual PC over the past couple of weeks. With this software, which is now free from Microsoft, you can create an entirely new session on your PC that is isolated from the rest of the system and functions just like a separate computer. You create the session, allocate memory and resources and then install the operating system of your choice. Officially supported systems include the various flavors of Windows, DOS and OS/2. All of the information for the session exists within a virtual hard drive file that the program creates and the session can be displayed either as a normal window or in full-screen mode. Some potential uses for this software include:
A couple months ago, I downloaded a 45-day trial for the software and posted some notes elsewhere on the site. The trial ended earlier this month, just after the software proved invaluable in helping me solve a bug in one of my programs that was reported by a visitor to the site. I decided I didn't want to be without it anymore and found it on Amazon for a discount. What reminded me of the cartoon was how perfectly this software mimics a real PC with all its capabilities even while safely isolated from the host operating system in its own session viewer. Setting up a new virtual computer was identical to installing a new operating system with accompanying updates and software. When the OS loads in the virtual session, it behaves just as it would on the host PC, even running system utilities such as defragmentation on the contents of the virtual drive. Running the software in full-screen mode, I could forget that I'm in a session until I try to shut the computer down and end up returning to the host machine.
Out of the BoxMy first thought when setting up new virtual machines was, of course, Microsoft Access. I have three versions of the software and could potentially want to work with any of them. The problem is that multiple versions of Access on the same machine must be installed in the order the versions were released and even then, they don't always play well together. The last time I re-imaged my machine, I decided I'd avoid the hassle and just install Access 2002 for now, leaving the previous two until I definitely needed them. A virtual machine quickly solves this problem. First I decided to create one with a basic Windows 2000 installation on it with all current updates, anti-virus and firewall software and nothing else. The anti-virus and firewall are necessary as the virtual machines easily detect and use broadband connections. (One person I talked to even suggested that Virtual PC could be used solely for the purpose of isolating programs such as Internet Explorer from the rest of the computer system.)
One of the features I
like best about the software is the Undo Disks feature. When this is
activated for a virtual machine, all changes made during a session are
stored on a temporary disk instead of the virtual hard drive itself.
Since the virtual hard drive is blank when first created, a boot disk is needed to start the new machine or that old familiar text message about a missing boot disk is displayed. It will default to the floppy if there is one but will also boot from the CD if instructed from the virtual machine's BIOS which, just like on a regular computer, is accessed by pressing DEL when starting the virtual machine. After that, it's just a matter of installing the OS and whatever software is needed in the virtual session. I installed Windows and downloaded all of the required updates from Microsoft and Norton (for the security software). The virtual machine rebooted just as a normal machine would after installing the larger updates such as Windows 2000 SP4 and the .NET framework. After backing up the machine files to a DVD, I created two more machines from it with separate versions of Access. Now, when I need to run Access 97 or Access 2000, it's just a matter of running the right virtual machine and I'm good to go. Ghost in the MachineA couple of days later, I had another thought; how would these virtual machines stand up to being re-imaged? I use Norton Ghost to re-image my machine at least once a year and I have a couple of images setup with the basic software configuration I like to start out with. It's a lot quicker than reformatting and reinstalling everything from scratch. From what I'd seen, throwing an image on a virtual machine should be just as easy as on the host machine but I wanted to try it out just for fun.
Virtual Machine AdditionsAn extra set of features is available through the Virtual Machine Additions software which installs on individual virtual machines that are running Windows. This add-on is unique in its installation as it's featured as an application on the virtual machine. When the add-on is installed, the session attaches a CD image containing the installation program to whatever CD drive it's accessing and then runs the installation program. The add-on is included in the guest operating system's list of installed software and can be uninstalled if needed in the same way that any other application would be.
Perhaps the handiest feature of the add-on is that it allows for file transfer between the host and the guest operating system by drag and drop or by cutting and pasting through a shared clipboard. In the machine settings, various folders on the host can also be shared with the virtual session to allow for easy transfer. While these features are very useful, they should also be used with care if one of the intended uses of the software is to shield the host system from potentially dangerous programs. I've also seen a noticeable improvement in virtual machine performance after installing the Additions package. Even after upgrading the memory and changing the console settings to give the virtual sessions priority, the speed of my Windows 2000 virtual machines was a bit sluggish. After installing 'Additions', they run just as fast as the host. What's MissingThere are a couple of limitations I've found with Virtual PC at this point. Hopefully, Microsoft will address these in future versions. Virtual PC for Windows does not currently support USB devices. From a search of the Microsoft site, it looks like the version for the Mac does support them but for some reason, it was left out of the Windows edition. It's a rather glaring omission at this point. I was able to set my external USB hard drive up as a shared folder and transfer files, so that workaround exists. I haven't tried to figure out a way to print from a virtual machine to my USB printer, though.
One quirk I did find in the interface is that the options relating to Virtual Machine Additions features, such as the shared folders, can only be set when the virtual session is running. Otherwise, the option screen doesn't seem to recognize that the add-on is installed on a machine that has been shutdown. The Fun Continues ...I just keep finding more reasons to use Virtual PC. Here are a few things I've been able to use the virtual machines for in the past couple of weeks:
Even though it's not officially supported, I'm looking forward to trying out a couple versions of Linux on virtual machines. ConclusionWhen I review something here, it's because I really like it or at least think that it could be useful to a lot of people. Microsoft Virtual PC meets both of these criteria. After all the years that I've worked with computers and all the advances I've seen, it's a good feeling to still be amazed by new ideas and products like this one. This is a product that, despite its appearance as a technician's tool, is simple to use and will appeal to a wide range of people. Reader ResponseRichard Thorp (Manchester, UK) wrote to me about creating a network boot disk that will work with Ghost and Virtual PC. "I work in a small IT department and have been using Virtual Server and Virtual PC for the convenience of setting up test environments to learn Windows 2003 and practice migrations. Having used Ghost many years ago, I was curious to see how this would help. I have done some "physical to virtual" conversions using Microsoft ADS and the Microsoft Virtual Server Migration Toolkit - but this isn't the most straight forward of procedures. After installing Ghost 10.0, I thought I'd made a mistake - it looked to be more like a Windows archive/backup utility, than the "clone program" I'd used years ago. A bit of digging and I was relieved to find the DOS program was still there. Both Virtual PC and Virtual Server use the "DEC PCI Fast Ethernet DECchip 21140" chipset "virtual driver". Some internet searching and incorrect downloads later, I found a DOS driver ... essentially I was looking to create a DOS boot disk with network support. I have .ISO images for NT4 and SP6, so can install NT on a Virtual PC in around 20 minutes, which can then be cloned, and re-used (and scrapped later!) With NT, Ghost 10.0, using the Boot Disk creation wizard, with my new NIC driver, I created a boot disk on the "virtual floppy" image I'd connected to the A: drive. I have copied the DOS ghost.exe program to another floppy ISO image - try "MagicISO" to create these and .ISO images from your favorite CD's and installs. I can now boot my VPC on the ghostboot.iso image, connect to our network and map drive letters on our servers, and using the second floppy image, run the DOS version of Ghost. I've cloned a NT4 VPC to a .GHO image on a server, then brought it back onto a clean HDD on a blank VPC - it booted just fine. "(The DOS driver) needs to be loaded into the "make boot disk wizard" of Ghost - I called mine "VPC DC21X4" so it was obvious, amongst the long list of other drivers." (Here is an Intel link where you can download the drivers that Richard used to create the boot disk. Click here for more information from the mcirosoft.public.virtualpc forum.) For More Information ...Microsoft Virtual PC 2004 - Visit the product homepage. The site includes a full evaluation guide for the software and a link to the Virtual PC discussion group. Virtual PC Guy's Weblog - Ben Armstrong is the Program Manager for the Core Virtualization team at Microsoft and keeps this blog on MSDN featuring information on the various aspects of Virtual PC. Wikipedia has an article discussing some of the more technical aspects of the software including information for the Macintosh version and featuring additional links.
Additional Screenshots(Click on any screenshot for a full-size view.)
Disclaimer: Information or materials offered on this site, technical or otherwise, are offered free of any guarantee of fitness for a particular purpose. Any advice or resources found here should be used at the user's own risk. Drewslair.com and its administrator(s) assumes no responsibility for damages of any kind resulting from individual use of information contained herein. |
|||||||||||||||||||||||
.jpg)





















