MakeTechEasier
  • Home
  •  
  • About
  •  
  • Archives
  •  
  • Jobs
  •  
  • Advertise
  •  
  • Contact Us
  • Windows
  • Linux
  • Mac
  • Internet
  • WordPress
  • iPhone
  • Android
  • All Categories
    • Android RSS
    • Firefox RSS
    • Gaming RSS
    • Google RSS
    • google chrome RSS
    • Internet RSS
    • iPhone/iPod Touch RSS
    • Linux RSS
    • Mac RSS
    • Mobile RSS
    • OpenOffice RSS
    • PC Hardware RSS
    • Review RSS
    • Roundup RSS
    • Windows RSS
    • Windows Mobile RSS
    • WordPress RSS
    • WordPress Plugins RSS
  • rss icon
  • email icon
  • facebook icon
  • twitter icon

How to Install Windows In Ubuntu Hardy with VirtualBox

Posted by: Damien on July 2nd, 2008
  • 45 Comments
  • Share

VirtualBox is an open-source cross platforms virtualization application that allows anyone to create a virtual machine on their computer. It is similar to the popular VMware, but much smaller in size and handles the virtual machine more efficiently.

Before you attempt to install any Windows OS as a virtual machine, make sure that your computer has enough memory (at least 1GB of RAM) and hard disk and you own a genuine Windows installer CD with valid license key.

Installing VirtualBox

Go to the VirtualBox download site. Under the Platform dropdown box, select Ubuntu 8.04 (x86). AMD users please select Ubuntu 8.04 (AMD64). Check the agreement box and click Continue.

Check the box Sun xVM VirtualBox 1.6 and click “Download selected with Sun Download manager”. The program should now download the virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb file to your desktop. If you don’t have java runtime installed, you can simply right click on the file link and select “Save link as”.

virtualbox-download1 virtualbox-download2

(Click to enlarge)

Once the downloading is done, double click on the virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb to install the program.

After the installation, VirtualBox will create a group call vboxuser. You will have to add your user name to the group. To do this, go to System -> Administration -> Users and Groups.

user-group1

Click the Unlock button, follow by Manage Groups.

user-group2

Scroll down until you see the vboxusers. Click Properties.

user-group3

Put a check beside your user name and click OK. Done

Go to Applications->System Tools -> Sun xVM Virtualbox. If you can’t find the entry, reboot your computer.

You should see the VirtualBox main window (image below) upon opening the application

virtualbox-screenshot

Click New to install a new virtual machine.

On the welcome screen, click Next to proceed.

Give your VM a name and determine its type. If you are installing Windows XP, simply put “Windows XP” under the name field and select Windows XP under the OS Type dropdown box.

virtualbox-screenshot1

In the next screen, set your base memory size. If you are installing Windows XP, it is recommended to allocate at least 256MB of memory. If you have lot of memory in your computer, you can always allocate up to 1GB or more.

virtualbox-screenshot2

Next, you have to create the virtual disk space. Click New.

virtualbox-screenshot4

A new window will pop up. Click Next on the new window to proceed.

virtualbox-screenshot3

Select “Dynamically expanding image” follow by Next.

virtualbox-screenshot5

Give the image a name (can be the same as your VM name) and allocate the size. Recommended is at least 8GB. Click Finish to complete the process.

virtualbox-screenshot6

virtualbox-screenshot7

This will close the window and bring you back to the previous window. Select the virtual disk you have just created and click Next. The last part is the confirmation where it will show you the summary of your configuration. If everything is fine, click Finish.

virtualbox-screenshot8

virtualbox-screenshot9

You should now see an entry of the virtual machine in the main screen. Highlight it and select Settings (just above the entry). On the left pane, select the CD/DVD ROM. On the right pane, check the box ‘Mount CD/DVD Drive’ and select Host CD Drive. Click OK.

virtualbox-screenshot10

Now insert in the Windows XP/Vista installer CD. On the virtual box, highlight the virtual machine and click Start. The virtual machine should now boot up and you can follow the screen instruction to install Windows XP.

At any time, if you want to get out of the virtual machine screen, press right Ctrl button. Once you have finished installing the OS. Reboot into the virtual machine. Under the device menu, select Install guest addition. This will allow you to enjoy enhanced graphics and smooth mouse transition between the virtual machine and your host machine.


Damien Oh is the owner and chief editor of Make Tech Easier

Tags: Linux, VirtualBox
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Share and Enjoy!

  • Rss feed
  • StumbleUpon It!
  • Del.icio.us
  • reddit

Related Posts

  • Share Your Virtualbox VM Across Different OS
  • Upgrading to Virtualbox 2.1 In Ubuntu Intrepid
  • How To Enable 3D Acceleration In VirtualBox
  • Installing (K)Ubuntu In Ubuntu With VMware Server
  • How To Install Windows Vista In Ubuntu Gutsy Using VMware

Popular Posts

  • Turn Your Ubuntu Hardy to Mac OSX Leopard 498 comment(s)
  • Turn Your Ubuntu Intrepid Into Mac OSX Leopard 311 comment(s)
  • 28 Coolest Firefox About:Config Tricks 122 comment(s)
  • How To Boot And Install Windows 7 From USB Flash Drive 122 comment(s)
  • Best 101 Free Computer Software For Your Daily Use 101 comment(s)

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

9 pingbacks/trackbacks (Click to open)

  • Máquinas virtuales y Wine en Ubuntu « De Vista a Ubuntu
  • How To Share Files In VirtualBox With Vista Guest And Ubuntu Host - Make Tech Easier
  • BrotherSoft Editor's Blog » Blog Archive » How to Install Windows In Ubuntu Hardy with VirtualBox
  • CSastra’s Blog » Blog Archive » Install Windows XP didalam UBUNTU
  • How To Sync iPod Touch With Win XP Virtual Machine In Ubuntu Intrepid - Make Tech Easier
  • Make Tech Easier - How To Enable 3D Acceleration In VirtualBox
  • Mastering Grub 2 The Easy Way – Make Tech Easier
  • LINUX ??? ?????? – ??????? ?????? » ????????? Grub 2
  • How to Install VirtualBox in Your USB Drive and Run any Operating System – Make Tech Easier
[Click to close]

45 Responses

  • VitaminCM says:
    July 2, 2008 at 11:26 am

    Great tutorial.
    This is very helpful. I like the clear instructions with pictures.

    Reply
  • Onno says:
    July 23, 2008 at 1:46 pm

    Great guide, I encountered only an USB problem using VirtualBox. I tried the above install on a virgin Hardy install and it works great. When I try to edit a machine I get the following warning:

    Failed to access the USB subsystem:
    Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.

    Anything I need to add you already have onboard?

    Thanks,
    OE

    Reply
  • Damien says:
    July 23, 2008 at 2:34 pm

    @Onno: You need to enable USB support on Hardy heron. Follow this guide http://maketecheasier.com/enabling-usb-support-for-vmware-server-in-hardy-heron/2008/05/05

    Reply
  • Saman Sadeghi says:
    July 23, 2008 at 4:32 pm

    Does VirtualBox really handle virtual machines more efficiently than VMWare?

    Reply
  • Onno says:
    July 24, 2008 at 6:34 am

    @Damien, thanks it works. Please put a link in the article to make it even better.

    Another thing: Under network I need to use “Host Interface” for server testing. Do you also have an artikel on bridging? Could you expand the artikel with (USB and) bridging?

    Thanks again,
    Onno

    Reply
  • Onno says:
    July 24, 2008 at 6:43 am

    @Saman, under windows it does for me… with GUI and headless. Under Linux (Ubuntu) I still have to test it but the reviews favor VirtualBox.

    Also VirtualBox has more flexibility (VMWare can give you that flexibility if you buy more products…), but the VB flexibility comes at some complexity cost (like cloning a server, machine + hard drive). And VirtualBox needs less resources…

    Give it a try, if you need RDP, USB, iSCSI or SATA use the closed source version (as I do), otherwise try the open source edition. They are both free!

    Regards,
    Onno

    Reply
  • harry says:
    August 20, 2008 at 10:59 am

    This is very helpful tutorial and very easy. Every user understand easily.and i like clear instruction
    with picture.
    very-2 thanks for this tutorial.

    Reply
  • FuLio says:
    December 12, 2008 at 3:05 am

    VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Please install the virtualbox-ose-modules package for your kernel, e.g. virtualbox-ose-modules-generic..
    VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).

    Result Code:
    0×80004005
    Component:
    Console
    Interface:
    IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

    Reply
    • Damien says:
      December 12, 2008 at 3:22 am

      There is a conflict in kernels in the latest Ubuntu Intrepid kernel update. Try to rebuild the vbox kernel:

      sudo /etc/init.d/vboxdrv setup

      Reply
      • vick says:
        November 28, 2009 at 4:09 pm

        i have this same error and everytime i try to type it in it says
        vick@vick:~$ /etc/init.d/vboxdrv setup
        open: Permission denied
        open: Permission denied
        * done.
        open: Permission denied
        /etc/init.d/vboxdrv: 311: cannot create /var/log/vbox-install.log: Permission denied

        open: Permission denied
        * Look at /var/log/vbox-install.log to find out what went wrong

        Reply
        • Carl says:
          November 28, 2009 at 4:58 pm

          Hi!

          Did you thought about using the sudo command??

          Try :

          sudo /etc/init.d/vboxdrv setup

          Tell us if that works! ;-)

          Reply
        • vick says:
          November 29, 2009 at 11:10 am

          vick@vick:~$ sudo /etc/init.d/vboxdrv setup
          [sudo] password for vick:
          * done.

          * Look at /var/log/vbox-install.log to find out what went wrong
          vick@vick:~$ /var/log/vbox-install.log
          bash: /var/log/vbox-install.log: Permission denied

          Reply
        • Carl says:
          November 29, 2009 at 12:32 pm

          Is it possible for you to post your /var/log/vbox-install.log ??

          you do gedit /var/log/vbox-install.log

          Have a nice day!

          Reply
        • Carl says:
          November 29, 2009 at 12:36 pm

          By the way…. there were many bugs in Hardy when using Virtual Box…

          We are in 2009!!! Upgrade your distro!

          The virtual box installer has been improved, but only for these new Ubuntu versions…

          There is no reason to continue using Hardy! ;o)

          Reply
        • vick says:
          November 29, 2009 at 6:10 pm

          i am sorry to keep asking u these question but this is my first time ever working on ubuntu and i realy dont noe anything about it
          after i did
          gedit /var/log/vbox-install.log
          i get

          Makefile:127: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

          Reply
        • Carl says:
          November 29, 2009 at 6:37 pm

          Hi!

          In order to help you further then is it possible for you to answer the following questions :

          Which version of Ubuntu are you using?

          (to know it open a terminal and do : uname -a )

          Are you using a tar.gz package to install or if you are installing using apt-get (sudo apt-get install virtualbox-ose ) ??

          Under Ubuntu, you just have to type in a terminal : sudo apt-get install virtualbox-ose to install it!

          Reply
        • vick says:
          November 29, 2009 at 10:47 pm

          i am using ubuntu 8.04
          vick@vick:~$ uname -a
          Linux vick 2.6.24-24-lpia #1 SMP Fri Apr 17 18:49:17 UTC 2009 i686 GNU/Linux
          then i did
          vick@vick:~$ sudo apt-get install virtualbox-ose
          Reading package lists… Done
          Building dependency tree
          Reading state information… Done
          E: Couldn’t find package virtualbox-ose
          vick@vick:~$

          Reply
        • vick says:
          December 1, 2009 at 10:51 am

          i want to remove ubuntu and just install windows xp how do i do that

          Reply
        • Carl says:
          December 2, 2009 at 1:19 am

          Hi! (sorry for my english, my first language is french!)

          Honnestly, i really don’t suggest you to learn Ubuntu using Hardy… that release is very old and there is most of the time many tweeks you have to do to make it work correctly..

          The last release of Ubuntu, Karmic Koala, allow you to upgrade while keeping your personnal files and datas… go to ubuntu.com to download the latest release, open a terminal and type : sudo apt-get install virtualbox-ose

          It will work right away after that!!! (it install under menu – accessories)

          f you really want to keep your old Hardy you can do the following… it worked for me at the time i was using that old and hard-to-configure-Hardy version :-p

          first download virtualbox… go to :

          http://download.virtualbox.org/virtualbox/3.0.12/virtualbox-3.0_3.0.12-54655_Ubuntu_hardy_i386.deb

          then double click on it’s icon to install it or, open a terminal, go to the directory where you downloaded it and type : sudo dpkg -i virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb

          This will complete the installation.

          Now, you have to setup the user permissions

          Goto System -> Administration -> Users and Groups

          Click on the “Unlock” button

          Enter in your password and click on “Authenticate”

          Click on the “Manage Groups” button

          Find the “vboxusers” group which is probably at the very bottom of the list, highlight it by clicking again, and click on “Properties”.

          Make sure there’s a check mark next to your user’s name, and click on ok you’re finished.

          Now, go to Applications—>System Tools—>Sun xVM VirtualBox and create your first virtual machine!! :o) et voilà! :o)

          DO THE FOLLOWING ONLY IF YOU WANT YOUR USB PORTS TO WORK UNDER YOUR VIRTUAL MACHINES (THIS IS REALLY NOT ESSENTIAL!!!)

          Enable USB Support in Virtualbox

          By default USB support was disabled in virtualbox, so you’ll probably want to enable it. Otherwise you’ll get an error when you go into the “Settings” of your virtual machine. To correct this, you’ll need to edit the mountdevsubfs.sh file

          sudo gedit /etc/init.d/mountdevsubfs.sh

          Inside, you’ll see a block of code that looks like this

          #
          # Magic to make /proc/bus/usb work
          #
          #mkdir -p /dev/bus/usb/.usbfs
          #domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
          #ln -s .usbfs/devices /dev/bus/usb/devices
          #mount –rbind /dev/bus/usb /proc/bus/usb

          Change it to look like this (uncomment out the region by deleting the “#’s”):

          #
          # Magic to make /proc/bus/usb work
          #
          mkdir -p /dev/bus/usb/.usbfs
          domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
          ln -s .usbfs/devices /dev/bus/usb/devices
          mount –rbind /dev/bus/usb /proc/bus/usb

          Save the changes and exit.Now log out, and then log back in again for the changes to take place.

          Reply
  • Brett says:
    January 19, 2009 at 3:03 pm

    Does not include discussion on Guest Additions

    Reply
  • Paul says:
    March 21, 2009 at 4:35 pm

    Hi
    I need some help can i install virtual box to be able to switch fast between XP and ubuntu IF i already have xp and ubuntu on my laptop ?
    i got and hp dv9040us core duo 1.6GHZ 2Ram 2 HDD and both of my OS XP and ubuntu are on C drive
    Can i still install virtual box even if i already have XP and ubuntu and i have a dual booting but i have to restart the laptop every time i want to change the OS or switch

    Reply
    • Damien says:
      March 22, 2009 at 3:39 pm

      For the first qn, the answer is No. If you are already dualbooting Ubuntu and Windows, you can’t use Virtualbox to connect to both and that is not what Virtualbox is meant for.

      For the second question, as long as you have sufficient space in your hard disk, you can always install Virtualbox, regardless you are in Windows or Ubuntu.

      Reply
      • HAFey says:
        August 16, 2009 at 10:08 am

        Hi,
        Thanks a lot, is there anyway or another software to use/load the already installed windows instead of installing it again from the scratch in the VirtualBox?
        i’m also running a dual OS

        Reply
        • Damien says:
          August 19, 2009 at 8:42 am

          No. If you are running a dual OS system, the best that you can do is to read/write files from the other OS partition. You won’t be able to use Windows and Ubuntu at the same time.

          Reply
  • Onno says:
    March 23, 2009 at 7:50 am

    @Paul; what you have is a dual boot system; in other words: the OSes are running “next to each other but not at the same time” (hence dual boot). What virtualbox can do for you is: run the OSes “on top of each other at the same time” (hence you can switch on demand).

    Example: I have a single boot laptop with Ubuntu on it. I installed Virtualbox and installed Win XP (and others!) in Virtualbox. I can switch between Ubuntu and Win XP by just moving the mouse out of Win XP to Ubuntu.

    Hope this clarifies things…

    Reply
  • Carl says:
    March 31, 2009 at 10:12 pm

    Hi!

    I have a little question : i can see i also have the option to install something call wined3d…

    What is it usefull for? Do i have to install it absolutely?

    Thanks in advance for your help!

    Reply
  • Jose M says:
    April 2, 2009 at 12:15 am

    This was a great help. I didn’t think of rebooting my computer until I found this helpful site.

    Reply
  • Damien says:
    April 2, 2009 at 2:51 pm

    The Wine3d is a module to enable 3D acceleration for Windows guest. It is not a must to install it, but if you host computer can support it, installing the Wine3d can give your Windows guest a much better graphics handling capabilities

    Reply
  • Dan says:
    April 27, 2009 at 4:33 am

    Hi. Followed instructions, everything went well! Thanks for this how-to. Little trouble with ++g but got it working. Unfortunately, little problem with Ubuntu:

    “Building and using a custom kernel will make it very difficult to get support for your system. While it is a learning experience to compile your own kernel, you will not be allowed to file bugs on the custom-built kernel (if you do, they will be Rejected without further explanation)”

    (Taken from https://help.ubuntu.com/community/Kernel/Compile)

    Just an FYI.

    Reply
  • vamsi says:
    July 14, 2009 at 3:20 pm

    Works Like charm…thanks for sexy tutorial :)

    Reply
  • Shiv Shankar says:
    July 19, 2009 at 7:14 am

    Works fine for me. Good tutorial.

    I am not much of a windows fan, but google’s decision not to bring video and voice to gtalk left me no other option rather than to run windows (After trying lots of options).

    Reply
  • Brian says:
    September 18, 2009 at 2:16 am

    It loads and then gives me an error message saying I need 32 bit processing and then it stops. I am not sure how to change that.

    Please help!

    Thanks

    Reply
    • Damien says:
      September 20, 2009 at 9:01 am

      What is your PC configuration? Are you using the 32-bit or 64 bit version?

      Reply
  • Carl says:
    November 30, 2009 at 12:08 am

    Hi!

    (sorry by the way for my english, my first language is french!!)

    Honnestly, Ubuntu Hardy is something very old… …your kernel is too old to use the latests improvements in matter of virtualization… There is many tweeks to do, and i don’t think it is a good idea for a newbee to start with that one… Ubuntu is now very easy to use, but Hardy was a bit hard (as the name say! to configure for someone who don’t know a lot about Linux).

    I don’t know why you are using that release!!! Under Ubuntu Karmic, the latest release, all you have to do to install Virtual Box is type in a terminal : sudo apt-get install virtualbox-ose

    If you decide to upgrade to that new release, don’t worry for you files and datas : it is now possible, while installing from the live cd to keep you files and settings…

    If you don’t want to reinstall everything on your pc, i suggest you to do the following… it worked at the time i was using Hardy :

    First, download VirtualBox :

    http://download.virtualbox.org/virtualbox/3.0.12/virtualbox-3.0_3.0.12-54655_Ubuntu_hardy_i386.deb

    sudo dpkg -i virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb

    This will complete the installation.

    Now, you have to setup user permissions

    Goto System -> Administration -> Users and Groups

    In the window that will open, click on the “Unlock” button and then enter in your password and click on “Authenticate”

    Now, click on the “Manage Groups” button

    Find the “vboxusers” group which is probably at the very bottom of the list, highlight it by clicking again, and click on “Properties”. Make sure there’s a check mark next to your user’s name, and click on ok you’re finished.

    Now, to open virtualbox go to Applications—>System Tools—>Sun xVM VirtualBox

    To do the following is not essential, but may help if you want your usb ports to work under your virtual machine : (NOTE : THIS IS NOT ESSENTIAL.. IT MAY WORK WITHOUT DOING THIS!!!)

    Enable USB Support in Virtualbox

    By default USB support was disabled in virtualbox, so you’ll probably want to enable it. Otherwise you’ll get an error when you go into the “Settings” of your virtual machine. To correct this, you’ll need to edit the mountdevsubfs.sh file

    sudo gedit /etc/init.d/mountdevsubfs.sh

    Inside, you’ll see a block of code that looks like this

    #
    # Magic to make /proc/bus/usb work
    #
    #mkdir -p /dev/bus/usb/.usbfs
    #domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
    #ln -s .usbfs/devices /dev/bus/usb/devices
    #mount –rbind /dev/bus/usb /proc/bus/usb

    Change it to look like this (uncomment out the region by deleting the “#’s”):

    #
    # Magic to make /proc/bus/usb work
    #
    mkdir -p /dev/bus/usb/.usbfs
    domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
    ln -s .usbfs/devices /dev/bus/usb/devices
    mount –rbind /dev/bus/usb /proc/bus/usb

    Save the changes and exit.Now log out, and then log back in again for the changes to take place.

    Create a New Virtual Machine in Virtualbox and Voilà!!! :o)

    Hope that will help!

    Carl
    cagaud@gmail.com

    Reply
  • Randal says:
    January 18, 2010 at 1:29 am

    Hi there. I’ve been looking for a tutorial like this but I’m wondering if you’re going to update it for 9.10 a.k.a Karmic Koala?

    Reply
    • Damien says:
      January 24, 2010 at 9:40 am

      @Randal: I have been using the same steps from Ubuntu Hardy to Karmic and I can assure you that the above tutorial still works for Karmic. There may have some interface change in Virtualbox, but the steps are still the same.

      Reply
Cancel reply

Leave a Comment




Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again

write for MTE

Latest Posts

  • OfficeMedium – A Social Collaboration Platform For The Small Business + Free Promotions
  • MakeTechEasier Is Now Hosted On KnownHost
  • KTorrent: KDE’s BitTorrent client
  • How to Create a Customized Toolbar for Your Browser
  • 13 Ways To Customize Ubuntu Netbook Remix For Better Usability

Our Writers

  • Damien Oh - Chief Editor
  • Sharninder - Geeky Ninja
  • Joshua Price
  • Tavis J. Hampton - Lantern Torch
  • Shevonne Polastre - FreeAgentWriter
  • Trevor Dobrygoski
  • Soumen Halder - Ampercent
  • Tanmay Ahmed - Tech-Tips-Geek
Make Tech Easier on Facebook
Jobs by SimplyHired
Job Widgets

Copyright

All the articles (including the text, images and tutorials) are properties of MakeTechEasier.

You cannot copy whole tutorials, either in English or translate to another language without our permission.

Write for us

Writing a tutorial or article for MakeTechEasier is a great way to get exposure and give back to the community.

Read More Details

Suggestions

We need your help to help us serve you better! This is YOUR site, so if you have suggestions/feedbacks on how we can improve it for you, please let us know! We do our best to make this place better!

Make a Suggestion

Navigation

  • Home
  • About Us
  • Advertise
  • Archives
  • Contact Us

Copyright © 2007-2010 Make Tech Easier | All Right Reserved.