Sent to you by jamalray via Google Reader:
via Lifehacker by Kevin Purdy on 4/10/09
What's virtualization? Why get that nerdy?
Virtualization is a whole computer concept unto itself, at least on the server/enterprise/big-fancy-corporate level. For home users, talk about "virtual machines" generally refers to x86 virtualization. Basically, it's software that allows an entire operating system (the "guest") to run on another OS (the "Host"), whether in a container window, or full-screen, or in what's sometimes called a "seamless" mode, where just one application is run from the "guest"Why would you want to run a virtual machine on your computer? Plenty of reasons:
- You like using one OS, but need just an app or two from another running in their natural environments—Office or Photoshop in Windows (nine times out of 10), a light-on-resources game, or maybe even some uber-cool Linux app.
- You want to try out some new software, but would rather not chance it mucking up the pretty decent system you've got right now.
- Web sites that don't play nice with the operating system you're running (we're looking at you, almost every streaming site except Hulu and YouTube).
- You're intrigued at the idea of trying out a Linux desktop, but the word "partitioning" doesn't sound like how you want to spend a Saturday afternoon.
I have to note here that VirtualBox is far from the only competitor in this field—in fact, many in the tech community report that VMWare's Workstation offers more features and handles multiple virtual machines better. But VirtualBox is relatively easy to set up, free to install, and works on all three major operating systems.
Setting up
Once VirtualBox is installed, launch it and you'll arrive at a tauntingly empty screen:
Setting up
Let's get something running in there. One big advantage of virtual machines over partitioning, dual-booting, and all that other hard-drive-tweaking stuff is the ability to install a system right from an ISO file. So if you're testing out a Linux system, just download the ISO from Ubuntu, Fedora, or wherever. And if you've got an older XP installation disc, you can slipstream the latest service pack into it to create a minimal-hassle installation ISO image, and never bother burning it. While you're at it, check out Adam's guide to trimming down Windows to the bare essentials for a real speedy virtual installation ISO. If you've got your installation CD or DVD, however, that'll play, too.If you happen to have multiple SATA hard drives in your system, or a fast external SATA, the How-To Geek recommends placing your virtual machine image (the "guest") on a separate physical drive from the machine running it (the "host") for better multi-tasking and performance speed, plus a little less wear on a single hard drive. If not, don't worry about it too much, and don't go creating separate partitions for your machines, because you aren't fooling anybody, least of all your system's I/O bus.
Booting up
Assuming everything went well, you'll see your new virtual system in the left-hand pane of the VirtualBox window. Huzzah! But before you hit "start," let's hit "Settings" and get it ready to roll the right way. The first category from the left-hand menu, General, lets you change how much base memory (or RAM) and video memory is given over to the virtual machine. Unless you're planning to enable 3D effects, the default chosen for video memory should be fine, and the 3D acceleration box can remain un-checked. Let's move down to "CD/DVD-ROM."Back at the main Settings window, head down to the Audio and/or USB menus and enable them if you're going to be needing sound or access to thumb/external drives while you're in your OS-in-a-box. Before we get to the "Shared Folders," which is pretty darned convenient, let's boot our system. Hit OK and close out your Settings window, then hit Start back at the main box to get rolling.
Whatever ISO or disc you've supplied VirtualBox with will load just like it's on a machine for the first time, and you'll go through the same installation process as if you were loading Windows/Linux/whatever on a hard drive for the first time. You'll get occasional pop-ups from VirtualBox, "notifying" you that a mouse pointer is now in such-and-such a mode, the video display has changed, yada, yada—just hit OK and check the boxes so it doesn't bother you further. Click through all the usual name/username/password/registration jazz you're used to ... All done? Great. After however many reboots, you'll arrive at your fresh, clean desktop, which you could start using right away. You might notice, however, that the resolution is limited, the mouse might be jerky, and your sound or USB might not work out of the box. That's where the Guest Additions come in.
Fine-tuning
VBoxLinuxAdditions-x86.run
(or the -amd64
version for 64-bit systems). Click through everything, restart your system, and things should be a lot more convenient: Your virtual desktop resizes itself to however big you make its window, the mouse doesn't get "captured" and require un-locking when you click around, and everything should be a bit smoother.You've got a well-oiled virtual machine at this point, but let's make it real easy to pass files between your host and guest systems (terminology should be making sense at this point, no?). The VirtualBox makers have described the process for Windows and Linux users in a FAQ post, and I've described the virtual-Windows-inside-Linux process in more detail in our guide to running Windows apps seamlessly inside Linux. Giannis Tsakiris has also explained setting up sharing from an XP guest, and the process is much the same for any virtual Windows (although some of the network tools have changed names). Need a bit more? Here's a quick video guide for a Windows guest system:
Now you're up and running with a machine you don't have to feel bad about messing with, or which lets your run the few apps you need in one OS while enjoying the benefits of the one you really want to work in. Wanna explore what kinds of systems you can install, and save yourself some install time while you're at it? Head over to VirtualBox Images, where you can download and run pre-compiled VDI files (i.e. VirtualBox hard drive images, like the dynamic/fixed kind you created above) for some swap-and-run fun. (Thanks to CherylIshabunny for the link!).
Are you an experienced virtual machine user with suggestions on making the process smoother for beginners? Just starting out and need something clarified? Drop your questions and suggestions in the comments, and we'll update the post as the good stuff trickles in.
Things you can do from here:
- Subscribe to Lifehacker using Google Reader
- Get started using Google Reader to easily keep up with all your favorite sites
0 comments:
Post a Comment