TweetFollow Us on Twitter

Virtual Computing With Parallels Desktop

Volume Number: 22 (2006)
Issue Number: 11
Column Tag: Virtualization

Virtual Computing With Parallels Desktop

How to leverage Parallels Desktop for Mac to run Windows and Linux VMs

by Mary Norbury

Buzzword

Why is virtualization becoming the new industry buzzword? It's certainly not new. IBM has been developing virtual machine systems since the mid-1960's when they virtualized server memory. In the mid-1980s, we saw CPU and I/O virtualization and the 1990s brought the technology to open (Unix based) systems. Cluster and grid computing have long provided resource virtualization solutions. Linux distributions such as Novell, Redhat and Sun are embedding the Xen VM (virtual machine) monitor into their enterprise server editions. With Microsoft also entering the virtualization arena with its acquisition of Softricity and partnership with Xen through Xensource, the market is heating up with new possibilities and choices.

Enter Apple with their new Intel line of mobile, desktop and server computers and virtualization comes to the Mac.

Apples and Oranges

It was no surprise that Apple introduced Boot Camp; clearly someone was going to accomplish booting Windows natively on an Intel Mac so it made sense that Apple created their own neat solution. This had such a major impact on how Mac users view Windows interoperability that Microsoft will no longer offer upgrades or full releases of Virtual PC for Mac. Emulation is out because we don't need it anymore.

Installing Boot Camp is a bit more difficult than Parallels and there are some pitfalls: you can't install it on your Mac if you've already got a partition so you'll need to restore it to a single volume; you're limited to creating a static partition less than 32 GB and formatting it as FAT32 rather than NTFS if you want to write to the partition after installing Windows (if it's larger than 32 GB then you'll have to format it as NTFS and it will then become read-only for Mac OS X); the partition you create is static in size; you can only install Windows XP Pro or Home and you can't multi-boot different versions of Windows since Boot Camp only supports dual-boot [Ed. Note - but you can overcome this: see Criss Meyers' article, "Triple Boot Your Mac" in this month's issue!]. The newest beta of Boot Camp v.1.1.1 fixes some bugs, adds support for the Mac Pro line and includes a preset button for the 32 GB size option. You can upgrade your existing Boot Camp install as long as you don't intend to change the partition size (http://www.apple.com/macosx/bootcamp/).

This begs the question about installing Linux on Intel Macs using Boot Camp. This is possible, but creating a bootable Linux partition is a bit trickier because you want to make sure you don't change the partition table during install; Boot Camp creates a hybrid partition table where XP's legacy MBR (Master Boot Record) and the Mac OS X GPT (GUID Partition Table) can co-exist and play nice. Since Boot Camp was only intended for an XP dual boot setup, adding Linux can be a challenge. But to nitpick, Mac users have been able to dual boot Yellow Dog Linux on PowerPC's since 1999 so the Intel Mac and Boot Camp complicate the Linux experience rather than enhance it.

On the other hand, Boot Camp is undeniably faster than Parallels because it runs natively and gives Windows full access to the CPU, graphics and other hardware. Parallels is a virtual machine environment and therefore only sees a dual core system as a single core with an 8 MB graphics card, no matter how good of a video card you have installed.

Why Be Limited To Windows?

A colleague and MacTech author Dean Shavit, who writes "The Source Hound" column, states in his bio that he hates to pay for software. Hmmmm...well, we're all for "free," and feel especially blessed when, on rare occasions, "free" equals "awesome". Boot Camp is free and fast and pretty damn good....but Parallels Desktop accomplishes more than allowing a dual-boot with Windows XP or a difficult triple boot system with Windows XP and Linux. With Parallels, you can run multiple virtual machines simultaneously and you don't have to boot the Host (Mac OS X) OS. You aren't limited by your personal choice of operating system. You can move seamlessly between Host and Guests. Is this worth paying for? Hell, yes.

Nitty Gritty

Parallels Desktop for Mac is available from http://www.parallels.com with a trial key or purchase for $79.99.

Download the package and follow the instructions for installation. Launch Parallels.app and select the New VM... button to create a new virtual machine. You'll be asked which type of VM configuration you want to create (typical, custom or blank). The Configuration Editor can be used later to reconfigure settings.

Choose the Guest OS type and the version:



Figure 1. Create a new VM and choose configuration type



Figure 2. Choose the Guest OS type and Guest OS version

Name your virtual machine and choose a location to save the configuration file (let Parallels Desktop create the .pvs VM config file for you automatically). Two files make up a VM: the .pvs configuration file and a hard disk image file. Parallels Desktop can run one VM (or one config file) at a time. Launch Parallels Desktop for each individual Guest OS.



Figure 3. Virtual machine name and configuration file location

In the Property Page, you'll activate Parallels Desktop (Help - Activate Product...) with your trial key or your full registration activation key. Then, still in the Property Page, you'll make some changes to enable booting from your guest OS install CD. Under Configuration, locate the Guest OS line under File Location and click on the Boot Sequence link to open the Booting Options tab.



Figure 4. Property page

Choose the radio button to boot from the CD first.

Highlight the CD/DVD drive in the Resource pane and make sure the device is enabled and will connect at startup. If you are installing from an .iso image, an .img or an .fdd (floppy disk image), select the Use image file radio button and specify the path to the distribution file in the image file field that appears when the image file radio button is selected.



Figure 5. Change booting sequence in Configuration Editor

Select the Memory option in the Resource pane and adjust the memory allocation. Windows XP or Server 2003 will run best with a minimum of 512 MB. Give it as much as you can afford. If you have 2GB RAM on your OS X system, give the VM 1GB. Linux flavors will demand less (256 MB minimum).

Highlight the Hard Disk Resource in the left pane and choose the Advanced tab. You'll see that my choice of a Typical creation of a virtual machine set the virtual disk size as 8000 MB with an expanding format. Note that the actual size of the disk image file (after full installation) is 1330 MB but will grow as new data is added so you don't have to worry about allocating enough hard drive space to the virtual disk before installing.



Figure 6. Adjust memory allocation and check hard disk options

Click the OK button to return to the Property Page. Click the Save button along the bottom of the window to save the VM configuration. Insert your guest install CD and click the green Power On arrow button to boot the VM and begin install. Parallels Desktop will detect the CD and start installation.



Figure 7. Windows Server 2003 installation

During any Windows OS installation, you'll be confronted with the Microsoft Licensing Agreement screen, which requires an F8 key input to agree to the terms in order to proceed with the installation. On laptops, this is accomplished by enabling the "Use the F1-F12 keys to control software features" in the Mac OS X keyboard pref pane. Once enabled, you can use the fn-F8 key combination to agree to the MS Licensing Agreement and complete the installation. On desktop models that come with the Apple Keyboard, simply turn off (deselect) the F8 keys shortcut in the Keyboard Shortcuts pref pane and the F8 key will be functional in the Guest OS window.



Figure 8. Windows Server 2003 booting up

Once installation is finished and you've created your account information, you can log into your new Guest OS by sending key combinations through the VM menu (Send Keys - Ctrl+Alt+Del). Start and stop the Guest OS by using the Power On (green arrow) and Power Off (red square) buttons on the toolbar on the right edge of the Parallels Desktop window (you can move the toolbar to the top or the left; go to Preferences - User Interface).

The next practical step is to run the many Windows OS patches from Internet Explorer (Tools - Windows Update from the IE menu bar), turn on automatic updates (Start button - Settings - Control Panel - Automatic Updates), turn on the firewall (Start button - Settings - Network Connections - Local Area Connection - Properties button - Advanced tab - Windows Firewall Settings button) and install an anti-virus software package. But don't worry: even if your PC virtual machine gets a virus, it won't spread to your Mac host. If you take advantage of a shared folder, however, be aware that you are opening a tunnel between a low risk world and a high risk one. Viruses may not exist for Mac OS X right now but in the future, the operating system may become a bigger target by virtue of this new ability to become bedfellows with operating systems fraught with vulnerabilities. If you choose to run an alternative OS on your Mac and plan to share files, then practice safe computing: keep all operating systems and applications up to date, run appropriate anti-virus software (take a look at ClamXAV for Mac at http://www.markallan.co.uk/clamXav/, open source and free!), and close all but necessary ports.

After taking care of this business, you can install Parallels Tools (available from the VM menu) which provides: better mouse synchronization (you can move seamlessly between the Guest OS console and the Finder without using hot key combinations to capture or release input), enhanced video performance, time and clipboard synchronization, a disk compacting tool and a shared folders tool. You'll need to be logged in to the Guest OS to install Parallel Tools.



Figure 9. Install Parallels Tools

After completing the installation of Parallel Tools, shut down the Guest OS (do a graceful shutdown from inside the Guest OS or you may generate shut down errors when using the Power Off button in Parallels Desktop). You'll be returned to the Property Page. Click the Edit button on the bottom of the Property Page to return to the Configuration Editor. Highlight Shared Folders in the Resource pane on the left, select the checkbox for Enable shared folders and click the + button to open the Shared Folder Properties screen. Specify a Name and Path on your Mac OS X system for the shared folder (a shared folder on the Mac OS X desktop is convenient and sensible; create one if you haven't already done so) and select the Enabled option at the bottom left of the pane. Click the OK button.



Figure 10. Create a shared folder

You're now at the Property Page again: click the Save button along the bottom of the window.

Power on your VM and log into your Guest OS. You should now see a Parallels Shared Folder on the desktop. Double-clicking it will open Windows Explorer. You can browse and write to the contents of the share from there.

If you have View Hidden Files and Folders set in the View tab of the Folder Options in Windows, you will see OS X's .ds store files.



Figure 11. Shared folder

Or, you can write directly to the Windows disk. Each VM is assigned an independent IP address. Go to the Windows run line (Start - Run) and type cmd. At the prompt, type ipconfig and make note of the IP address. Enable a shared folder (My Documents on the Windows desktop, for example) and give yourself permissions to write to it. In the Mac OS X Finder, select 'Go' from the menu and choose 'Connect to Server'. Type in the VM IP address using the smb protocol (ex. smb://10.0.1.8). Click the 'Connect' button. Enter your Windows login and password with permissions to the share you created. Select the share in the next window and click 'OK'. The share will mount on your OS X desktop.

Another very cool feature is the ability to copy/paste between Mac OS X and Windows. No rebooting, no special keystrokes required.

You can also view devices connected to your system. Select VM in the menu bar and choose Devices.



Figure 12. List of devices seen by VM

Parallels Compressor is a tool that allows you to manage the size of your virtual hard drives. Select it from the VM menu and click the Manual button to control how the drive is optimized: Express or Advanced. The Advanced Option allows for fine-tuning level of compression.



Figure 13. Parallels advanced compressor options

Linux distros are handled with similar ease:

  • Create a new VM with the default Typical VM Configuration.

  • Choose the Guest OS type (FreeBSD) and the version (Other FreeBSD since I downloaded FreeBSD 6.1, in my example. Get it at http://www.freebsd.org).

  • Name the Guest OS VM (FreeBSD) and save the configuration file.

  • In the Property Page, under Configuration, locate the Guest OS line under File Location and click on the Boot Sequence link to open the Booting Options tab.

  • Increase the default memory allocation to 512 MB.

  • Select the CD/DVD Resource option in the left pane of the Configuration Editor and choose the Use image file radio button. Select the path to the .iso image file.



    Figure 14. FressBSD image file

    If you have not installed FreeBSD before, puhleeze read the handbook before and during installation: <http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html>

    When installing packages, you will most likely have to switch "discs". Go to Devices in the Parallels Desktop, select the CD drive and choose the option Connect Image...



    Figure 15. Swap image files when prompted

    After successful installation, you'll see FreeBSD as your Guest VM.



    Figure 16. FreeBSD virtual machine

    Post Install Euphoria and Reality Check

    Windows Server 2003 ran quite fast on my MacBook Pro (2.16 GHz, 2 GB RAM) and iMac (2 GHz Intel Core Duo, 2 GB RAM). I ran SQL Server 2000, a QuickTime movie, Photoshop and various Office 2003 applications on the Guest OS while working in Fireworks, Photoshop, Entourage and Keynote on the Mac OS X Host. No delays, screen redraws or other obvious hits to performance on either Host or Guest.

    Both the Windows Server 2003 and FreeBSD VMs used the virtual network adaptor without any re-configuration. Despite being the latest update release candidate (build 1884, as of this writing), there are still some USB glitches (some flash drives and Windows mobile devices were recognized, others inexplicably not; several USB drives that were recognized would not display files on the drive). This build also boasts compatibility with the quad-processor Mac Pro, completing support for the entire Intel Apple line. I had a little difficulty with networking on a new Mac Pro (two 2 GHz Intel Core Duos, 2 GB RAM) but the Parallels Forum (http://forum.parallels.com/) had workarounds posted that solved this and a few other known issues. I'm confident that improvements to support for the Mac Pro will come quickly.

    Setting up printing was simple. Since I experienced some USB device issues, I took the easy route and downloaded and installed Bonjour for Windows (from <http://www.apple.com/support/downloads/bonjourforwindows103.html>), turned on printer sharing in OS X and...it just worked.

    Want to back up your VM? Just copy the .hdd and .pvs files from the virtual machine directory in ~/Library/Parallels/ and you're set.

    One minor inconvenience is that you can't listen to audio CDs and you can't burn discs from within VM's but I don't consider this a deal breaker.

    3D graphics support is one of the most popular feature requests so keep an eye out for future updates to Parallels Desktop to accommodate the gaming set.

    Despite these few minor issues and inconveniences, Parallels Desktop is well worth its low price and the benefits of dead simple installation, admirable speed, seamless networking and - most importantly - the ability to switch instantly between host OS and guest VM's without a reboot.

    The Future

    At WWDC in August, VMware - the leader in virtualization software - announced a Mac port available later this year. VMware's entry into the Intel Mac VM market heats up the race to provide complete VM compatibility, performance and meet feature requests. It's always nice to have a choice and it's interesting that companies like VMware, who have a global presence, are keen on providing services for the OS X platform.

    Early this year, MacTech ran my article on distributed computing, and I wrote: "Of note, virtualization technology is built into Intel chips which will allow the machines to be partitioned to run different types of software like Windows or Linux at once, on top of Mac OS X. And hardware virtualization enables a system to run at near full-speed." We're there now! So what's next? Will Apple provide native virtualization in 10.5? Will you be able to create a VM through an app in Utilities or through a pref pane? The future will bring Mac users more choices and more cross-compatibility with other operating systems.


    Mary Norbury is IT Director at the Barbara Davis Center for Childhood Diabetes, an affiliate center at the University of Colorado at Denver and Health Sciences Center in Aurora, Colorado. She has extensive experience in cross-platform systems implementation and administration in the education sector. You can reach her at norburym@mac.com. (The XGrid and Tiger 10.4 article referenced is MacTech back issue Issue 22.02 and is also available in the MacTech 2006 Magazine Sampler found at http://www.mactech.com/sampler/)

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Top Mobile Game Discounts
Every day, we pick out a curated list of the best mobile discounts on the App Store and post them here. This list won't be comprehensive, but it every game on it is recommended. Feel free to check out the coverage we did on them in the links... | Read more »
Price of Glory unleashes its 1.4 Alpha u...
As much as we all probably dislike Maths as a subject, we do have to hand it to geometry for giving us the good old Hexgrid, home of some of the best strategy games. One such example, Price of Glory, has dropped its 1.4 Alpha update, stocked full... | Read more »
The SLC 2025 kicks off this month to cro...
Ever since the Solo Leveling: Arise Championship 2025 was announced, I have been looking forward to it. The promotional clip they released a month or two back showed crowds going absolutely nuts for the previous competitions, so imagine the... | Read more »
Dive into some early Magicpunk fun as Cr...
Excellent news for fans of steampunk and magic; the Precursor Test for Magicpunk MMORPG Crystal of Atlan opens today. This rather fancy way of saying beta test will remain open until March 5th and is available for PC - boo - and Android devices -... | Read more »
Prepare to get your mind melted as Evang...
If you are a fan of sci-fi shooters and incredibly weird, mind-bending anime series, then you are in for a treat, as Goddess of Victory: Nikke is gearing up for its second collaboration with Evangelion. We were also treated to an upcoming... | Read more »
Square Enix gives with one hand and slap...
We have something of a mixed bag coming over from Square Enix HQ today. Two of their mobile games are revelling in life with new events keeping them alive, whilst another has been thrown onto the ever-growing discard pile Square is building. I... | Read more »
Let the world burn as you have some fest...
It is time to leave the world burning once again as you take a much-needed break from that whole “hero” lark and enjoy some celebrations in Genshin Impact. Version 5.4, Moonlight Amidst Dreams, will see you in Inazuma to attend the Mikawa Flower... | Read more »
Full Moon Over the Abyssal Sea lands on...
Aether Gazer has announced its latest major update, and it is one of the loveliest event names I have ever heard. Full Moon Over the Abyssal Sea is an amazing name, and it comes loaded with two side stories, a new S-grade Modifier, and some fancy... | Read more »
Open your own eatery for all the forest...
Very important question; when you read the title Zoo Restaurant, do you also immediately think of running a restaurant in which you cook Zoo animals as the course? I will just assume yes. Anyway, come June 23rd we will all be able to start up our... | Read more »
Crystal of Atlan opens registration for...
Nuverse was prominently featured in the last month for all the wrong reasons with the USA TikTok debacle, but now it is putting all that behind it and preparing for the Crystal of Atlan beta test. Taking place between February 18th and March 5th,... | Read more »

Price Scanner via MacPrices.net

AT&T is offering a 65% discount on the ne...
AT&T is offering the new iPhone 16e for up to 65% off their monthly finance fee with 36-months of service. No trade-in is required. Discount is applied via monthly bill credits over the 36 month... Read more
Use this code to get a free iPhone 13 at Visi...
For a limited time, use code SWEETDEAL to get a free 128GB iPhone 13 Visible, Verizon’s low-cost wireless cell service, Visible. Deal is valid when you purchase the Visible+ annual plan. Free... Read more
M4 Mac minis on sale for $50-$80 off MSRP at...
B&H Photo has M4 Mac minis in stock and on sale right now for $50 to $80 off Apple’s MSRP, each including free 1-2 day shipping to most US addresses: – M4 Mac mini (16GB/256GB): $549, $50 off... Read more
Buy an iPhone 16 at Boost Mobile and get one...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering one year of free Unlimited service with the purchase of any iPhone 16. Purchase the iPhone at standard MSRP, and then choose... Read more
Get an iPhone 15 for only $299 at Boost Mobil...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering the 128GB iPhone 15 for $299.99 including service with their Unlimited Premium plan (50GB of premium data, $60/month), or $20... Read more
Unreal Mobile is offering $100 off any new iP...
Unreal Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering a $100 discount on any new iPhone with service. This includes new iPhone 16 models as well as iPhone 15, 14, 13, and SE... Read more
Apple drops prices on clearance iPhone 14 mod...
With today’s introduction of the new iPhone 16e, Apple has discontinued the iPhone 14, 14 Pro, and SE. In response, Apple has dropped prices on unlocked, Certified Refurbished, iPhone 14 models to a... Read more
B&H has 16-inch M4 Max MacBook Pros on sa...
B&H Photo is offering a $360-$410 discount on new 16-inch MacBook Pros with M4 Max CPUs right now. B&H offers free 1-2 day shipping to most US addresses: – 16″ M4 Max MacBook Pro (36GB/1TB/... Read more
Amazon is offering a $100 discount on the M4...
Amazon has the M4 Pro Mac mini discounted $100 off MSRP right now. Shipping is free. Their price is the lowest currently available for this popular mini: – Mac mini M4 Pro (24GB/512GB): $1299, $100... Read more
B&H continues to offer $150-$220 discount...
B&H Photo has 14-inch M4 MacBook Pros on sale for $150-$220 off MSRP. B&H offers free 1-2 day shipping to most US addresses: – 14″ M4 MacBook Pro (16GB/512GB): $1449, $150 off MSRP – 14″ M4... Read more

Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.