Americas

  • United States

VMware Player follow-up

Opinion
Dec 19, 20054 mins
Enterprise ApplicationsLinux

One interesting aspect of the VMware Player that we hadn’t noticed and isn’t in the manual is that if you shut down the Player before shutting down the guest operating system running in the virtual machine, the Player will automatically save the state of the guest operating system VM!

As we did last week , this week we start by following up on previous topics.

Following our Gearhead column on the VMware Player , a free virtual-machine runtime utility from VMware, long-time reader Phil Daley wrote: “I can take this home and install it on my home system? Then I can create VMs at work and bring them home (assuming they fit on my 1GB flash drive) and run them? This sounds really great.”

It is indeed great but it turns out, curiously, that even without VMware Desktop and with only the VMware Player you can still create custom virtual machines – see a related item on a blog run by Lorenzo Ferrara.

The first thing to do is create a hard disk image (the extension of VMware needs to be VMDK) using the program qemu-img, which you’ll find in the distribution of qemu, a generic, open source processor emulator that we’ve discussed in a previous Gearhead column .

The key to configuring a virtual machine is the VMX file that specifies how the VM is set up. Ferrara’s blog item also includes a generic VMX configuration suitable for many operating systems.

If you want to get more sophisticated there’s a Windows script that we haven’t tested called VMX-builder that creates VMX files, and there’s a site called VM Builder that presents a Web form of virtual machine options and creates the entries for a VMX file that you copy and paste into a text file and save with a VMX extension.

The easiest setup for installing a new operating system is to create a VMX configuration with access to a real CD drive, into which you’ll load the operating system’s installation CD or a virtual CD drive linked to the ISO image of the installation disk.

To create the ISO image you can use any number of tools but one of the easiest is dd, a utility that is available for most operating systems. Dd comes bundled with most Linux distros and you can find a Windows version .

Once you’ve got a disk image and a VMX file (note that the VMX file must reference the file names of all specified disk and CD images) just fire up the VMware Player and installation will (should) begin. Voila! A new virtual machine hits the streets.

In the Gearhead column on the Player, the topic of using USB thumb drives with the VMware Player came up, the idea being to of run the Player from a thumb drive. Well, we’ve tried this and there are two main problems (had you read Gibbsblog , you’d be a little more up to date on this).

First, there is the issue that putting the Player on a thumb drive doesn’t make the Player portable – it has an intimate relationship with the host operating system. In the case of Windows there are hooks into the operating system and entries in the registry, so using the thumb drive on another system requires the Player to be installed on removable media.

But the killer is the second issue: Data throughput to and from the thumb drive is a serious bottleneck. We reckon that even with a really good-quality, high-performance thumb drive the load time is roughly doubled and the initialization time for the guest operating system is astronomical (the Player has to do lots of disk I/O to files that are, by default, in its own subdirectory).

The alternative to putting the Player on a thumb drive is to put the VM on it. While this will make the load time of the VM longer, there will be much less effect on overall performance than there would be putting the Player on the thumb drive.

One interesting aspect of the Player that we hadn’t noticed and isn’t in the manual is that if you shut down the Player before shutting down the guest operating system running in the virtual machine, the Player will automatically save the state of the guest operating system VM! Fire up the VM again and you resume from where you were. Very nice.

So that’s it until we reappear, fatter than ever, after Christmas. Have a fabulous holiday and try to stay away from your computers. At least long enough to eat some turkey. Thoughts of sugar plums to gearhead@gibbs.com.

mark_gibbs

Mark Gibbs is an author, journalist, and man of mystery. His writing for Network World is widely considered to be vastly underpaid. For more than 30 years, Gibbs has consulted, lectured, and authored numerous articles and books about networking, information technology, and the social and political issues surrounding them. His complete bio can be found at http://gibbs.com/mgbio

More from this author