Installing VirtualBox under Ubuntu

Print this articlePrint this article

Linux in general and Ubuntu particularly, is a great operating system. It is designed to run for long periods of time, unlike some other systems. It is pretty much stable, taken you know what you are doing. But even choosing Ubuntu as your native OS, you might want to use other operating systems. There are lots of reasons to do it: you’re webmaster and willing to test your new site under various systems; you’re programmer, developing multiplatform application; or you just need to use some tool available only in Windows (such as some commercial accounting software).

In this guide, we’ll try to cover up installation and basic use of VirtualBox – virtual machine application, that allows you to install “OS-inside-OS”. Kind of government-inside-government, only with very strict laws (eg: 2 sides do not mess up each other in any way).

Let’s go:
1. Open Firefox (either clicking Firefox icon, normally found after Applications – Places – System; or by going to Applications > Internet > Firefox Web Browser

Ubuntu VirtualBox: Step 1

Ubuntu VirtualBox: Step 1
2. Let’s navigate to site: http://www.virtualbox.org – home of VirtualBox.

Ubuntu VirtualBox: Step 2

Ubuntu VirtualBox: Step 2
3. Click Downloads on left sidebar, and in opened page, select “VirtualBox 4.0.4 for Linux hosts” (NOTE: Version might varies, since it is constantly updated).

Ubuntu VirtualBox: Step 3

Ubuntu VirtualBox: Step 3
4. Find release for your Ubuntu version and processor mode and click on it.

Ubuntu VirtualBox: Step 4

Ubuntu VirtualBox: Step 4
5. Firefox will propose you to open it with “Ubuntu Software Center”. Press OK.

Ubuntu VirtualBox: Step 5

Ubuntu VirtualBox: Step 5
6. You’ll see VirtualBox description in Ubuntu Software Center. Press “Install”. NOTE: Process might take several minutes, and requires active Internet connection.

Ubuntu VirtualBox: Step 6

Ubuntu VirtualBox: Step 6
7. You’ll be asked for your (administrative) password. Type it in, and press OK.

Ubuntu VirtualBox: Step 7

Ubuntu VirtualBox: Step 7
8. After installation is finished, you can access VirtualBox by going to Applications > System tools > Oracle VM VirtualBox.

Ubuntu VirtualBox: Step 8

Ubuntu VirtualBox: Step 8
9. VirtualBox will now open. Press “New” to create new virtual machine.

Ubuntu VirtualBox: Step 9

Ubuntu VirtualBox: Step 9
10. Click “Next”.

Ubuntu VirtualBox: Step 10

Ubuntu VirtualBox: Step 10
11. Enter name for new virtual machine. In our example, we use “Windows Machine”. Set Operating System type, and version, and press “Next”.

Ubuntu VirtualBox: Step 11

Ubuntu VirtualBox: Step 11
12. Choose how much RAM will be available for your virtual machine, and press “Next”.

Ubuntu VirtualBox: Step 12

Ubuntu VirtualBox: Step 12
13. In Virtual Hard Disk window, press “Next”. This will open short “Create New Virtual Disk Wizard”. Press “Next”.

Ubuntu VirtualBox: Step 13

Ubuntu VirtualBox: Step 13
14. Choose storage type. Normally, you’d want “Dynamic expanding storage”, so it would grow. Press “Next”.

Ubuntu VirtualBox: Step 14

Ubuntu VirtualBox: Step 14
15. Now choose folder, where your new “virtual hard disk” will be stored. Set its size. Press “Next”.

Ubuntu VirtualBox: Step 15

Ubuntu VirtualBox: Step 15
16. Finally, press “Finish”. Your virtual hard disk is now created.

Ubuntu VirtualBox: Step 16

Ubuntu VirtualBox: Step 16
17. Press “Finish” again. Your virtual machine is now created successfully.

Ubuntu VirtualBox: Step 17

Ubuntu VirtualBox: Step 17
18. Now it will appear on left side of VirtualBox window. Please, right click on it, and select “Settings…”.

Ubuntu VirtualBox: Step 18

Ubuntu VirtualBox: Step 18
19. In new window, select storage from left menu. Click on CD icon with caption “Empty”.

Ubuntu VirtualBox: Step 19

Ubuntu VirtualBox: Step 19
20. Now click “Choose a virtual CD/DVD disk file” if you plan to use ISO image as source for new OS installation, or, alternatively, choose “Host Drive CD-ROM”, if you plan to use real disk. If you do the latter, please, check “Passthrough” box, in order not to face any problems installing. This will insure VirtualBox has direct access to your CD. Press “OK”.

Ubuntu VirtualBox: Step 20

Ubuntu VirtualBox: Step 20
21. Now, when everything is configured, just select your Virtual Machine from VirtualBox main window and press “Start”.

Ubuntu VirtualBox: Step 21

Ubuntu VirtualBox: Step 21
22. You’ll see information message about “Auto capture keyboard”. Read it or close it.

Ubuntu VirtualBox: Step 22

Ubuntu VirtualBox: Step 22
23. You should now see that your new OS is installing.

Ubuntu VirtualBox: Step 23

Ubuntu VirtualBox: Step 23
24. Follow installation until it tells you to “eject CD and reboot”. Then, click Devices > CD/DVD Devices > “Your OS image.ISO” or “Host Drive VBOX CD-ROM”, in order to dismount installation CD.

Ubuntu VirtualBox: Step 24

Ubuntu VirtualBox: Step 24
25. Your OS might now require some basic tweaks, and then, it is ready to use.
Now whenever you need to launch your “virtual OS”, simply go to Applications > System Tools > Oracle VM VirtualBox, select it from the list and press “Start”.
NOTE: Under some circumstances, when you try to launch your virtual OS, you might face a message such as this:

Ubuntu VirtualBox: Error message

Ubuntu VirtualBox: Error message
In such case, please open Applications > Accessories > Terminal.

Ubuntu VirtualBox: Applications > Accessories > Terminal

Ubuntu VirtualBox: Applications > Accessories > Terminal
And type in:
sudo /etc/init.d/vboxdrv setup

Ubuntu VirtualBox: Solution

Ubuntu VirtualBox: Solution
Input your (administrative) password, and it will install drivers required by VirtualBox.
Now you should be able to run your virtual OS.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <span>
  • Lines and paragraphs break automatically.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.
Image CAPTCHA
Enter the characters shown in the image.