- dotTech - http://dottech.org -

Virtual Machines, Part One: What, why, and how

Posted By Locutus On October 5, 2011 @ 12:20 PM In Tips 'n Tricks | 43 Comments

Not to be confused with virtual process machines [1], virtual machines are, as Wikipedia puts it, “a software implementation of a machine (i.e. a computer) that executes programs like a physical machine”.  They’re operating systems like Windows or Linux inside a separate program on your existing operating system.  They can do a lot of things a regular computer could do, but instead of using new hardware, the virtual machines (the guests) use a program on your current hardware (the host).

But why would you care?  Some times it’s fun to try new software, but you don’t want to mess up your computer.  Other times, you could be trying out a new operating system.  Maybe you want to see if you can have fun by getting that latest virus and trying to get rid of it.  (Hint:  don’t do that, please.)  There is no one definitive program to make virtual machines in.   Microsoft has one, Sun (the makers of Java and OpenOffice) have one, VMware has one, and I’m sure there’s more out there to find.  In this series on virtual machines, I’ll be using VirtualBox by Sun.

This Part 1 on virtual machines is meant to be an introductory article teaching everyone what virtual machines are, why to use them, and providing a simple guide on how to install one. Since we have already covered the two former points, lets go onto the latter.

Downloads

>>VirtualBox homepage [2]
>>VirtualBox direct download for Windows (32 bit or 64 bit) [3]
>>VirtualBox download page for other operating systems [4]

Table of Contents

The Install [5]
Creating a new Virtual Machine [6]
Installing Ubuntu [7]
Installing Windows XP [8]
Final Words [9]

The Install

Make sure to use entirely default settings if you want to follow along.  During the install, there will be multiple warning dialogs that pop up. Click “Continue Anyway” or things like that.

Once it is installed, it will prompt you to create an account.  You don’t really need to.

[10]

Creating a new Virtual Machine

To create a virtual machine, click the New button.  Click  “Next”.  Type in a name for your virtual machine, for instance, Ubuntu.  Also select the operating system from the drop-down menu. You can install Windows, Linux, or most all other operating systems you can think of. Keep in mind it does not matter what your “host” operating system is; in other words, you can install Linux on Windows, Windows on Linux, etc.

[11]

Note that you will need an install disc or an install ISO. You should also make sure to give it plenty of RAM.

[12]

Next,  select a new hard drive.  This will lead to the New Virtual Disk wizard.

[13]

[14]

[15]

[16]

Installing an OS

After you have created your virtual machine, you need to install an OS on it. To install an OS you can either use an ISO or a CD. For the purposes of this article, first I am going to show how to install Ubuntu from an ISO. Later on, I am going to show how to install Windows XP from a CD.

So, for this step, you’ll need an install ISO of Ubuntu – you can get it from here [17].

Once you’ve downloaded the ISO, click the Start button (the green arrow).  It will start the virtual machine, and most likely give you this warning.

[18]

Click OK.  Then, the first run wizard will pop up.

[19]

Click Next to get started, and then the little folder icon to select an ISO. If you are using an installation disc, select your disc drive from the drop down box.

[20]

[21]

Click the Add to select a new ISO.  Then browse for the file.

[22]

Press Open.

[23]

Then click Select.  Then click Next and Finish.  Click OK on the next message unitl you get to the Install screen.  Run through the install steps of your selected operating system.  Note that to get the cursor “unlocked” from the virtual machine, you need to hit the “host key”- the right Control key by default.

[24]

Press enter to select your language and move the cursor down to select Install Ubuntu.  Press enter to install the operating system.

[25]

It may take a while for your virtual machine to respond.

[26]

[27]

[28]

Click Forward, and change any settings you want.  Do this until the operating system is installed.

[29]

[30]

[31]

[32]

[33]

If you have a weak password, it’ll show you this message.

[34]

Now it’s time to do the install.

[35]

[36]

Now, your operating system is installed.

[37]

Click restart.  Be sure to press enter when prompted.

[38]

Doesn’t Ubuntu look nice?

[39]

Now log in with your username and password you set up earlier. Be warned, the login sound is loud sometimes.

[40]

Now you’ll be greeted with your desktop.  Have fun!

Installing Windows XP

As explained earlier, you can install an OS from an ISO or a disc. Since I showed how to install Ubuntu from an ISO earlier, I will now show about to install Windows XP from a disc. Therefore, for this part of the article, you’ll need a Windows XP installation disc. (Keep in mind if you have a Windows XP ISO, you can use that also similar to how we installed Ubuntu from an ISO earlier.)

Create a new virtual machine from the steps outlined above (remember to chose “Windows XP” as the operating system when setting up the virtual machine).   Start the virtual machine, clicking OK at the prompt about keyboard integration.

[41]

Go through the first run wizard, using the CD drive to install the OS.   The VirtualBox BIOS will flash, and the installation will begin.

[42]

Once all the setup files are loaded, you’ll need to press enter.

[43]

Agree with the License Agreement (press F8),  partition the virtual hard disk, and the installation will begin.

[44]

It may take some time to copy the setup files. Once it’s done with those, it will reboot into the actual installation.

[45]

Make sure to set up all the information the way you’d like it:

[46]It will prompt you a few times- just continue with the installation.

[47]

Depending on your computer, the installation can take anywhere from 15 minutes to an hour.

[48]

The Out-of-box Experience will start:

[49]

It will guide you through things like Automatic Updates, network settings, registration with Microsoft, and setting up user accounts.

[50]

Then, it will load up your account and your start menu. Congratulations, your Windows XP is installed! You’ll have 30 days to use it (unless, of course, you have a valid license key and you register it).

[51]

Final Words

Using virtual machines can not only be fun (testing out new OSes, new software, etc.) but they can also be very handy. Play around with virtual machines and get to know them better. In future articles, I’ll provide more tips on virtual machines, such as guide you through installing the guest additions in Ubuntu.

Update: Part 2 [52]


Article printed from dotTech: http://dottech.org

URL to article: http://dottech.org/14020/virtual-machines-part-one-what-why-and-how/

URLs in this post:

[1] virtual process machines: http://dottech.org/tipsntricks/computer-programming/11118

[2] VirtualBox homepage: http://www.virtualbox.org/

[3] VirtualBox direct download for Windows (32 bit or 64 bit): http://download.virtualbox.org/virtualbox/3.1.2/VirtualBox-3.1.2-56127-Win.exe

[4] VirtualBox download page for other operating systems: http://www.virtualbox.org/wiki/Downloads

[5] The Install: #install

[6] Creating a new Virtual Machine: #newvm

[7] Installing Ubuntu: #ubuntu

[8] Installing Windows XP: #windowsxp

[9] Final Words: #finalwords

[10] Image: http://dottech.org/wp-content/uploads/2010/01/1.bmp

[11] Image: http://dottech.org/wp-content/uploads/2010/01/2.bmp

[12] Image: http://dottech.org/wp-content/uploads/2010/01/3.bmp

[13] Image: http://dottech.org/wp-content/uploads/2010/01/5.bmp

[14] Image: http://dottech.org/wp-content/uploads/2010/01/4.bmp

[15] Image: http://dottech.org/wp-content/uploads/2010/01/6.bmp

[16] Image: http://dottech.org/wp-content/uploads/2010/01/7.bmp

[17] here: http://www.ubuntu.com/

[18] Image: http://dottech.org/wp-content/uploads/2010/01/1autocapture.png

[19] Image: http://dottech.org/wp-content/uploads/2010/01/2firstrunwizard.png

[20] Image: http://dottech.org/wp-content/uploads/2010/01/3firstrunwizard2.png

[21] Image: http://dottech.org/wp-content/uploads/2010/01/4vmmediamanager.png

[22] Image: http://dottech.org/wp-content/uploads/2010/01/5addiso.png

[23] Image: http://dottech.org/wp-content/uploads/2010/01/6vmediamanageraddediso.png

[24] Image: http://dottech.org/wp-content/uploads/2010/01/7selectlanguage.png

[25] Image: http://dottech.org/wp-content/uploads/2010/01/8install.png

[26] Image: http://dottech.org/wp-content/uploads/2010/01/9waiting.png

[27] Image: http://dottech.org/wp-content/uploads/2010/01/10install.png

[28] Image: http://dottech.org/wp-content/uploads/2010/01/11steps.png

[29] Image: http://dottech.org/wp-content/uploads/2010/01/12clock.png

[30] Image: http://dottech.org/wp-content/uploads/2010/01/13keyboard.png

[31] Image: http://dottech.org/wp-content/uploads/2010/01/14partition.png

[32] Image: http://dottech.org/wp-content/uploads/2010/01/15who.png

[33] Image: http://dottech.org/wp-content/uploads/2010/01/16weakpassword.png

[34] Image: http://dottech.org/wp-content/uploads/2010/01/17clickinstall.png

[35] Image: http://dottech.org/wp-content/uploads/2010/01/18installing.png

[36] Image: http://dottech.org/wp-content/uploads/2010/01/19installing.png

[37] Image: http://dottech.org/wp-content/uploads/2010/01/20doneinstall.png

[38] Image: http://dottech.org/wp-content/uploads/2010/01/21nice.png

[39] Image: http://dottech.org/wp-content/uploads/2010/01/22login.png

[40] Image: http://dottech.org/wp-content/uploads/2010/01/23desktop.png

[41] Image: http://dottech.org/wp-content/uploads/2010/01/110.png

[42] Image: http://dottech.org/wp-content/uploads/2010/01/22.png

[43] Image: http://dottech.org/wp-content/uploads/2010/01/31.png

[44] Image: http://dottech.org/wp-content/uploads/2010/01/41.png

[45] Image: http://dottech.org/wp-content/uploads/2010/01/51.png

[46] Image: http://dottech.org/wp-content/uploads/2010/01/61.png

[47] Image: http://dottech.org/wp-content/uploads/2010/01/71.png

[48] Image: http://dottech.org/wp-content/uploads/2010/01/81.png

[49] Image: http://dottech.org/wp-content/uploads/2010/01/9.png

[50] Image: http://dottech.org/wp-content/uploads/2010/01/101.png

[51] Image: http://dottech.org/wp-content/uploads/2010/01/111.png

[52] Part 2: http://dottech.org/tipsntricks/14075

© 2008-2012 dotTech.org | All content is the property of its rightful owner.