By Jason Fitzpatrick How to Run Windows, Mac, and Linux Side by Side and Pain-Free with VirtualBoxRunning multiple operating systems side-by-side gives you the chance to test applications, run platform-specific software, and tons more without ever rebooting. It's also extremely cool. Here's how to run Windows, Mac, and Linux simultaneously and pain-free as possible. To get a quick idea of where we're headed, check out the video above, which demonstrates my Windows 7 system running OS X and Ubuntu through VirtualBox. Below, we'll build on on the basics you learned in our beginner's guide to creating virtual machines with VirtualBox. We'll show you how to easily install new operating systems (including Mac OS X and Linux) and optimize your installation with shared folders and software to help your virtual machines communicate with your main OS. We'll also do a little extra work to get the newest release of Snow Leopard to play nice, even though it's not fully supported yet. Although we're using Windows 7 64-bit as our base OS, VirtualBox runs on nearly any OS, and these tips and tricks are applicable to any serious VirtualBox setup. Why Virtualize?Using virtualized operating systems presents all sorts of opportunities. You don't have to leave your primary and favored operating system to use tools found only in another operating system; you can run a copy of your current operating system to try out new tweaks, tricks, and software to ensure everything works well; you can test new software or browse in an entirely sandboxed OS. One of the great perks of running multiple operating systems in virtualization come with multiple monitors, you can spread out almost as though you had separate computers hooked up to the same keyboard and mouse. What You'll Need?You're most likely using a machine right now that would easily support at least one other operating system in virtualization, but likely more. Our test machine for this virtualization project is a modest rig we put together for around $400 nearly two years ago. It has an AMD quadcore processor, 8GB of RAM, and a basic graphics card with 256MB of RAM. The parts weren't cutting edge when we bought them—all of them were selected because they were on sale—and they're certainly not cutting edge now. With those specs, the machine easily runs Ubuntu, OS X Snow Leopard, and Windows 7 32-bit simultaneously—powered by a core OS of Windows 7-64 bit—without any problems. If you've got a reasonably new system with a good amount of RAM, you should be just fine. Installing New Virtual Machines in VirtualBox
Step-by-step Mac OS X installation. If you're installing Snow Leopard make sure to check out a previous guide to installing Mac OS X in Windows to get OS X up and running. When you're done, come back; below we'll detail how to set up file sharing between your host OS and OS X.
Take a Snapshot of What You've Done so FarCopying, snapshotting, and cloning your virtual disks preserve your hard work. VirtualBox has several mechanisms in place for helping you to preserve all the setup and customization you've done. One of the first things you should do after successfully installing and customizing a virtual OS is to back it up. Although installing operating systems with VirtualBox is a breeze most of the time, the few times it isn't you'll likely spend a lot of time searching for a solution and tinkering. Save yourself the headache of doing it again by backing up your new virtual disk. You'll also likely want to do the same after you get the machine set up with the tweaks detailed in the optimize section below, and any time you've taken some time to set something up that you don't want to hassle with again. Shut down your virtual machine and exit VirtualBox before attempting to backup any of your disks. Once VirtualBox is shut down you can browse to the directory your VDI files are in. Copy the VDI file of each virtual operating system you wish to backup and put it on another disk or network drive. If any part of your customization involved tweaking the XML file associated with the virtual OS it would be wise of you to copy that along with the VDI file. Significantly faster and easier than a total backup is a Snapshot. You can create one by pressing CTRL+S at anytime when your virtual OS is running. Think of snapshots like the System Restore function in Windows. You can create a snapshot at anytime within your virtual machine to mark a restore point you may want to return to. It takes so little time to create them it's criminal to not do so before making a major change to your virtual OS or installing a big software suite. Cloning is the most advanced technique for dealing with your virtual disks. Let's say you installed an OS that was a bit more hassle than you anticipated and you'd really like to make a perfect copy of it so you'll have a pure installation to study and a disposable one that you can really thrash around in. You can't just copy the VDI file because the unique identifier will conflict with the original VDI. You'll need to use the clone command from the command prompt. Refer to this portion of the official manual for explicit details. Your clone command should look something like Optimize Your VirtualBox InstallationAlways install Guest Additions. Guest Additions are special software for Windows, Linux, and Solaris operating systems that make your life as a virtual OS user much easier. Rather than muck around in configuration files and settings trying to resize your virtual OS resolution, for example, the Guest Addition enables dynamic resizing. It's always been easy to install in Windows but now it's just as easy to install in Linux, just mount the VboxGuestAdditions.iso from the Set up a universal share. Hopping between virtual operating systems might be faster than hopping between two physical computers but it still suffers from one of the same hazards. It's easy to lose track of your files. If you're running Windows or Linux the Guest Additions installation takes care of the networking for you. If you're running Mac OS X you miss out on that, for lack of a Mac Guest Additions package. Don't worry though, setting up sharing from Windows (or any other Samba share) is simple. Thanks to these handy instructions from VirtualBox forum member PaulsCode, you'll have no trouble setting up your cross-platform share.
Now you'll be able to access the same pool of files from all of your virtual machines which makes it even easier to switch OS-dependent tools while working on the same project. At this point you've got your virtual operating systems installed, customized, linked to a shared folder, duplicated for your stress testing and mad scientist experiments, and backed up in case it all goes terribly wrong. With a good battery backup attached to your computer and virtual operating systems to do the heavy lifting and get abused by all your software installations you're in a perfect position to forget about rebooting your base OS and get busy playing with your virtual machines. Jason Fitzpatrick is the Senior Writer at Lifehacker, an absurd fan of obscenely long uptimes, hates rearranging his workspace after a reboot, and knows that if you just give virtualization a try you'll be addicted too. | August 27th, 2010 Top Stories
|
Terms of use
No comments:
Post a Comment