You are on page 1of 6

Anthony Hopkins

Installing VirtualBox
and a Windows XP
Virtual Machine in
Ubuntu 8.10
LIS4708 – Perspectives In IT

Anthony Hopkins

4. The free version is open source and the non-free version is closed source.Introduction Virtual desktops are great tools to help bridge the gap for users nervous about transitioning to open source operating systems away from their native Windows Operating systems. current version 2. Ability to download and install VirtualBox non-free edition on their host machines. Since both the host and guest operating system require a minimum allotment of memory your system must meet these minimum requirements. By the end of this tutorial users will have gained the knowledge of how to install and fully configure a Windows XP virtual machine on their host Ubuntu desktops or servers. Key milestones include the following : Milestones 1.10) an my Virtual XP system only add up to approximately 512mb. Since the minimum system requirements for my host operating system (Ubuntu 8. This tutorial will cover the installation of Sun MicroSystem's software VirtualBox. Intel processors that support virtualization are aptly named VT-x. who are not ready to give up their Windows Operating Systems just yet. the 2 gigs available will be ample. 4. This tutorial is meant for beginner to novice Linux users. Memory is another important thing to check before installing VirtualBox. so users can setup peripherals such as printers and cameras. I am creating this tutorial to share my knowledge and experience in working with Virtual Machines. I have configured hundreds of Virtual Machines before and each one follows a similar setup. The free and non-free distinctions relate to the source code for the software. 3. and AMD processors are notated AMD-V. Configure a Virtual Hard drive image to install Windows XP on. because of its advanced network settings. This tutorial is going to explain how to set up the more powerful non-free edition. Install Windows XP with VirtualBox guest add-ons on the virtual disk image (VDI). Sun MicroSystem develops two editions of VirtualBox. Checking Requirements Your processor must support hardware virtualization to install VirtualBox. a free and non-free edition. Finally you must have ample storage space on your host’s hard drive to supply your new Virtual Machine. 2. Anthony Hopkins . Configure VirtualBox for USB support.1.

To edit your sources open a new terminal window (Applications/Accessories/Terminal) and enter the following command: sudo gedit /etc/apt/sources. sudo apt-get update 5.1 6. 7. As long as you are connected to the Internet this command should cause your terminal to display your system updating the source list file with the fields you just created.list 2. download and install VirtualBox. Once the update has completed.asc -O. Now that you have added yourself to the vboxusers group it is now time to configure your system 9.virtualbox. deb http://download. Congratulations. This is accomplished with the following command. The first asks you to create the VirtualBox users folder (we will add ourselves as users in the next step) and then if you want to compile the necessary VirtualBox kernel. Anthony Hopkins .| sudo apt-key add - 4. The first step was to add VirtualBox to your systems sources list. sudo apt-get install virtualbox-2. you have just completed the first milestone. Now that you have VirtualBox installed on your host system it is necessary for you must add yourself as a user to the VirtualBox intrepid non-free 3.MILESTONE ONE Now that you have double checked your computers requirements you are ready start milestone one. To add VirtualBox to the source list you must append the following code to the end of your sources.list file. Open the terminal and enter the following command (customize 'yourusername' to your own username). Agreeing to both of these questions will complete the VirtualBox installation process. it is necessary to enter your sudo password. you can to install VirtualBox. sudo usermod -G vboxusers -a yourusername 8. During the installation you will be prompted to answer two questions.virtualbox. The following steps will walk you though the process: 1. Enter the following command in the terminal window to begin installation. You can accomplish this back in the terminal window by entering the following command: wget -q http://download. The last thing you need to prepare before letting your system download and install VirtualBox is to get the software's public key. Now that your system is configured to find and download VirtualBox the last step before installation is for you to update your software sources. Since this is another sudo (or root)

Anthony Hopkins . (Make note the devgid you enter must be the same one you discovered in the previous step. This information is necessary for editing the /etc/fstab file. none /proc/bus/usb usbfs devgid=1001. As long as no errors appear everything is perfect. in my instance 1001. you just completed the second milestone. Run the following command in the terminal to make sure everything was configured correctly.MILESTONE TWO: The second milestone is to configure VirtualBox for USB support.devmode=644 0 0 5. This will allows us to setup and access peripheral devices such as printers and cameras. It is now necessary to add yourself to the group you just created usbfs.. 7. Done. append the following line and save the file.. To edit this file. Make note of your dev group id (GID). This final step is necessary to make sure everything was configured correctly. On my machine running that command produced the follwing results: anthony@dv4217-ubuntu:~$ sudo addgroup usbfs Adding group `usbfs' (GID 1001) . Once the file is open. enter the following command into the terminal: sudo gedit /etc/fstab 4. 3. Congratulations. This can be accomplished by heading back to the terminal and entering following command (where 'yourusername' is replaced with your user name. The first step requires us heading back to the terminal and running the following command sudo addgroup usbfs 2. 1.) sudo usermod -G usbfs -a yourusername 6.

Selecting fixed size storage automatically sets the size of the VDI to whatever you'd like. 8. One thing you have to monitor when selecting the Dynamically Expanding Option is the remaining disk space on your host machine.” prefix means the folder is hidden). 3. 10. 7. Once logged back in. After “reading” the Terms of Service you can click accept and then enter your registration information. 6. The default location is in the users home folder/. The first choice in the Disk Wizard is to select which type of hard drive storage you'd like to create. The next window allows you to choose the location you'd like to save your new VDI. you have just completed your third milestone. Since I will be sharing 2 Gigabytes between my host and VM I decided to bump up from the recommend 128mb to 512mb. By selecting the “new” button you will open the “Create New Virtual Disk Wizard”. find the shortcut to VirtualBox (Applications/System Tools/ Sun xVM VirtualBox) and open it for the first time. If the Virtual Disk tries to write to a full drive you'll end up with errors. or create a new one. and set it's operating system type. After providing your registration information the VirtualBox configuration window will appear. You can choose to use an existing virtual hard drive. 2. but in the future make sure to give unique names to each Virtual Machine (VM) you create. Before moving onto the next milestone it is necessary to restart your host computer before starting up VirtualBox for the first time. Anthony Hopkins . At this step you will have to make a decision. Once the host machine is powered on. and location of the VDI you wish to create select next to get to the finish page. If this is your first time using VirtualBox you must create a new hard drive. Here you will review all of the settings you just s elected before going ahead and creating your new Virtual Machine. If you have a previously configured VDI image file you must add it to VirtualBox's Virtual Media Manager. The next page asks you to set the amount of your host's RAM you want to allot to your VM. Depending on the operating system you selected earlier VirtualBox recommends you the minimum system requirements. After selecting “finish” you will be able to access the Virtual Machine in the VirtualBox Window. 9. 5. Since this was our first VM there's no need to worry about duplicate names. 1. After setting the name. 4.MILESTONE THREE: The third milestone is to configure a Virtual Hard drive image. The first step is to name the new virtual machine. size. you must log back into the user account we just configured VirtualBox for.virtualbox (the “. Congratulations. To begin configuring a new virtual hard drive image (VDI) you must select the “New” to bring up the “Create New Virtual Machine Wizard”.Once the RAM is set it's time to set the Virtual Disks Hard drive. I usually use the Dynamically Expanding Option to save room on my host's hard drive.

After you're Windows XP Virtual Machine restarts the guest add-ons will be available to use. this step may be optional. and the ability to run the Virtual Machine in “Seamless mode”. 6. Now whenever you find the urge to use Windows you cam do so without having to give up all of the benefits of running Ubuntu as your host operating system. Now that Windows is booted up release your mouse from the Window by hitting your “Host Key”. and then “Install Guest Add-ons”. I always use the /media directory of my host computer so I can access everything available to my host. select Devices in the Virtual Machines Window. 11. Once you have the installation media setup you can power on the Virtual Machine for the first time. You may get prompted during the installation that Windows is trying to install a driver that i sn't compatible. Anthony Hopkins . The first time you start your Virtual Machine you will be prompted with a number of windows containing information about hot keys used during your VirtualBox session. it's time to install the VirtualBox guest add-ons. or created a new VDI. Some of the additions include the ability to dynamically expand the Virtual Machines Window size. When the Guest Add-ons ISO completes downloading it will Auto play in your Virtual Machine and the Guest Add-ons Wizard will appear. 4. The Virtual Machine will start up and then begin the operating system's installation. 2. Once the Windows installation is complete. After selecting “install guest add-on an ISO is downloaded to your host machine and is loaded as a virtual disk in your Virtual Machine. 3. 10.MILESTONE FOUR: Install Windows XP with VirtualBox guest add-ons on the virtual disk image (VDI). Setting up shared folders between your host and virtual are done in the Shared Folders window. You can access this window by clicking Devices/Shared Folders on the Virtual Machine's window. Congratulations. For all VirtualBox shared folders the folder begins with \\voxsvr\ from there you enter the path of the shared folder. For anyone who needs help installing Windows XP please refer to this tutorial. 5.. Now that you're back to working with your host operating system. 9. If you'd like to use an ISO file you must add it to the VirtualBox Virtual Media Manager and then select the file. 8. you just completed the fourth and final milestone. For anyone whose installation media is a CD/DVD-ROM set the Virtual Machine to use the host's device. In the Settings menu you must select the “CD/DVD-ROM” and tell it to mount wherever your Windows XP installation media is.. In the Map Network Drive Window you can select the letter you want to append to the new drive and set its location. 1. 7. To install just select ok and let the wizard go to work. In the Add Share window you can “choose” the folder path which you wish to share. On most American layout keyboards the “Host” key which they refer to is the left CTRL button. select your newly created Virtual Machine and then click the “Settings” button. mouse integration with host operating system. This will open up your Virtual Machines setting window. In the shared folders window select the “Add Share” button which brings up the Add Share window. Once the installation completes you must reboot your Virtual Machine to use the Guest Add-ons. The following steps are necessary for anyone that needs to install Windows XP. On the Windows XP Virtual Machine open up Windows Explorer and select Tools/Map Network Drive. Remember the path of the folder you decide to share because you'll need to use it to map a network drive to it on your Windows XP Virtual Machine. Back in the VirtualBox window. however you should disregard these messages and let the installation complete. Depending on whether or not you selected an existing VDI.