October 5, 2008
Going Virtual with VirtualBox
By Scott Nesbitt – Sunday, September 28, 2008 |
For whatever reason, many computer users think that their desktop computers can only run one operating system at a time. Windows PC only run Windows. Macs only run Mac OS. Linux machines only run Linux. But that's far from the truth. There are a number of ways in which you can run more than one operating system on a computer. A popular and venerable way is multi-booting. Another is using an application layer like Crossover. But the solution that's gained popularity in recent years is virtualization.
A quick look at virtualization
Virtualization – in the case of this TechTip, operating system level virtualization – is a form of software sleight of hand. The trickery involved enables a computer to run two or more operating systems simultaneously. There are two types of operating system involved. The first is the host operating system, which runs the virtualization software. The second is the guest operating system, which runs inside a space that the virtualization software and the host operating system allocate to the guest. Using virtualization, you can run guest operating system in isolation from the host but at the same time. The virtualization software enables you to allocate system resources – like hard drive space and memory – to the guest operating systems. And the virtualization software can also simulate the instruction set that a guest operating system requires.
AdvantagesWhy virtualize? It's often a lot easier and more efficient than multi-booting or using an application layer. With multi-booting, you need to partition your hard drive, and that could lead to problems with the partition table. I've talked to more than a few people who tried multi-booting, but who found that they could only boot into one of the operating systems that they installed. And unlike an application layer, a virtual instance allows you to take advantage of all of the features of an operating system rather than just a subset of them. The benefits of using virtualization include the ability to consolidate multiple servers on to a single piece of hardware. That cuts down on hardware and power costs, and enables companies (or even individuals) to decommission older, creaky hardware. For the desktop user (someone like you, obviously), using virtualization allows you to work with multiple operating systems without the need for several PCs, and (as mentioned above) without worrying about any weirdness that might occur when you try to partition a hard drive. Virtualization on your desktop with VirtualBoxThere are a growing number of virtualization products out there. VMWare is popular in the data center and on the desktop. Other, well-known ones include Xen, and Microsoft psa and propecia Virtual PC for Windows. Parallels lets Mac users run Windows seamlessly. This TechTip looks at VirtualBox, a popular and flexible virtualization app. It runs on several operating systems and supports a wide array of Note : This TechTip discusses running Windows XP on Linux. The concepts and procedures are similar for most other host operating systems. Up and runningObviously, the first thing that you need to do is download and install VirtualBox. There are installers for several flavors of Linux (including Ubuntu, Debian, Red Hat, and openSUSE), as well as for Mac OS, Windows, and Solaris. The installers are binaries – you just need to download and run them. For my Linux-powered laptop, I downloaded the installer for all distributions, which has the extension. run. To run the installer, open a terminal and navigate to the directory into which you downloaded the installer. Then, type the command sudo./VirtualBox-2.0.0-36011-Linux_x86.run (substitute the name of the installer, if necessary). If you get an error telling you that the file can't be found, then type the command chmod +x VirtualBox-2.0.0-36011-Linux_x86.run to make the installer executable. Then, run the previous command again. A graphical wizard will guide you through the process of putting the software on your hard drive. When the process is complete, you'll have a new menu item to launch VirtualBox. In Ubuntu, this is System Tools > Sun xVM VirtualBox. Installing a guest operating systemNow it’s time to install the guest operating system. In this case, it's Windows XP Pro. There are two steps to this. First, you need to create a new virtual machine. Then you perform the actual installation of the guest operating system. Creating the virtual machineIn the VirtualBox window, click New to start the Create New Virtual Machine wizard. The wizard will walk you through the process, but here is some of the information that you'll have to supply:
Once you've done all that, VirtualBox will create the virtual hard disk. This can take several minutes, depending on the size that you specified for the disk. Once that's done, you can install the guest operating system.
Installing the guest operating systemInstalling the guest operating system is quite easy. You can do it from an ISO image or from a CD/DVD. In my case, I had a Windows XP Pro CD. Assuming that you're installing from a CD, just pop it into your CR-ROM drive and then start VirtualBox. In the main window, click the name of the virtual machine and then click Start. The virtual machine will read the CD and start the installer. All you have to do is follow the installation program. It is that easy. Depending on the operating system, the amount of memory your system packs, and the speed of the CPU, this process could take anywhere from a few minutes to half an hour. Once the process is complete, all you need to do is click Start in the VirtualBox window to start the guest operating system.
|
Leave a comment
You must be logged in to post a comment.