Create a virtual Windows system on your Linux machineand vice versa
Borrowing a page from the mainframe world, VMware Workstation 2.0, with versions for Linux and for Windows NT and Windows 2000, lets you run one or more Virtual Machines (VMs) on any Win2K, NT, or Linux desktop. VMware Workstation provides hardware emulation that lets you run Windows programs on a Linux machine or vice versa.
This product isn't just a cool toy for geeks, though. Whether you're a developer testing a new build's cross-platform support, a Help desk technician trying to replicate a customer's problem, or a salesperson demonstrating your wares, you can benefit from VMware Workstation.
Installation and Configuration
I first installed VMware Workstation 2.0 for Linux on a dual-CPU Dell Precision WorkStation 610 running Red Hat Linux 6.1. (The VMware Workstation 2.0 for Windows NT and Windows 2000 version of the product runs on Windows machines.) After extracting the installation files from the tar archive file (the CD-ROM also includes a Red Hat Package ManagerRPMformatted file), I ran the installation script, then ran a configuration script.
During setup, I chose a connectivity mode from VMware Workstation's Networking Setting options. The Host-only networking option, as its name implies, lets the virtual system access only the host; Bridged networking lets the virtual system connect to a LAN by sharing a NIC. As I did, you also can select Bridged and host-only networking to allow both modes.
Windows-based clients use only the Server Message Block (SMB) protocol to communicate with servers, so VMware Workstation 2.0 for Linux ships with its own Samba server (Samba lets Linux "speak" SMB). Because I was running Samba on my system before I installed VMware Workstation, I manually tweaked a few settings in my Samba configuration file instead of installing VMware Workstation's Samba server. This situation was one of the few in which the documentation made me fend for myself. The last step in the setup process was to create a VMware Workstation subdirectory and copy the license file to it.
I then installed VMware Workstation 2.0 for Windows NT and Windows 2000 on a Dell Precision WorkStation 410 with a 400MHz Pentium II processor and 256MB of RAM. This machine ran Win2K. Installing VMware Workstation under Win2K was slightly simpler than the Linux installation because I didn't need to run UNIX configuration files.
I wanted to configure the hard disk and CD-ROM drive as SCSI devices, but VMware Workstation doesn't support bootable SCSI CD-ROMs, so I left both drives configured as IDE devices. Otherwise, the Win2K installation was fairly smooth. (For more information about installing VMware Workstation for Windows, see John D. Ruley, Windows 2000 Pro, "Better than a Dual-Boot," January 2001.)
VMware Workstation for Linux
After completing the setup, I created my first VM. This process is completely wizard-driven and takes longer to explain than to perform.
After selecting the OS I wanted to install (the choices include Win2K, NT, and Windows 9x) and the VM directory in which to install it, I picked a disk type. The choices are New virtual disk, which uses a file on the host system, and Existing physical disk. I chose the virtual disk option and accepted the maximum supported size of 2GB. The wizard's next few screens let me configure the VM to use the host's CD-ROM and 3.5" disk drives and set the VM's network mode to Bridged and host-only.
All defaults worked fairly well except for the default RAM setting, which is only 64MB for Win2K and NT. This amount of RAM isn't quite enough for reasonable performance, so after configuring the VM, I used the Configuration Editor to manually change the VM's RAM to 128MB. Before I closed the Configuration Editor, I also set up COM1 to use the host's external modem, enabled the Sound Blaster-compatible sound card emulation, then saved the settings.
Next, I inserted my Win2K Professional CD-ROM, clicked the VM's Power On button, and watched, amazed, as a typical PhoenixBIOS boot sequence took place in the VMware Workstation window. After the boot was complete, I stepped through the standard Win2K setup process.
VMware Workstation emulates an AMD Ethernet network adapter, which the setup process readily found. I needed only to assign the emulated adapter an IP address for my local network segment.
Finally, I installed the VMware Tools suite, which provides optimized video drivers and Clipboard support between the guest and host OSs. I chose the Settings menu's VMware Tools Install option, then double-clicked the VMware Tools icon in the virtual A drive to start a standard InstallShield wizard.
After I finished with the wizard, I had a fully functional Win2K Pro desktop running in a Linux window, as Figure 1 shows. I could play music CDs, browse my local LAN segment, print to a networked printer, and do anything else that a client can typically do. I even used Win2K's DUN feature to connect to my local ISP.
Performance was respectable, but my workstation had dual 550MHz Xeon processors and 512MB of RAM, so I didn't expect the VM to be slow. I noticed an interesting side effect: Although each VM runs as a single-processor system, the host's underlying Linux OS spread the work across both CPUs. (As I confirmed later, a Win2K or NT host can do the same for a Linux VM.)
2GB size limit for virtual disks was removed in 4th version. Only 2Gb limit for VMs RAM is still here...
Tricker December 02, 2003