[APPLICATION] Usage of Virtualbox?

Asked by Lawrence on 2009-04-25

I have installed Virtualbox in my computer which is using Ubuntu 9.10.
But I have no idea how to apply it.
Can anyone help me?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2009-04-29
Last reply:
2009-04-29
Rafik Ouerchefani (rafik) said : #1

Hello Lawrence,

Virtualbox is pretty easy to use and every thing is enough explained on screen.
Start "Virtualbox OSE" in menu "Application" > "Accessories".
To create a new virtual machine, click on button "New" or menu "Machine" > "New".
The steps after that are well explained I think. Once the machine is created, it will be listed on the main window. You can create more than one.
To install any supported operating system in your newly created machine, edit its settings and on the right of the settings windows click on"CD/DVD Rom". There you may mount your drive or an .iso image.
Ok, lets assume you mounted the CD drive. Now, insert your CD (of Ubuntu, Windows or whatever you selected when you created the machine) and start the machine.
A new window will show up. It's your virtual machine. You can proceed and install the operating system like you do on a normal real computer.

Cheers,

Lawrence (lawrence-snoopy) said : #2

But there isn't even a "Virtualbox OSE" for me to choose in "Accessories".
Do you know why?

Rafik Ouerchefani (rafik) said : #3

How did you install virtualbox ? from the ubuntu repository ?

Lawrence (lawrence-snoopy) said : #4

No, from it's website. I downloaded it first.

Rafik Ouerchefani (rafik) said : #5

Okkkkk

That's not the OSE (OpenSource Edition). My bad, i should had asked before.

The link is in menu "Applications" > "System Tools" > "Sun xVM VirtualBox".

If you don't see "System Tools" under menu Application, then log out and log in and it will be there.

Lawrence (lawrence-snoopy) said : #6

There was such a link right after I reboot the system after the installation. But an error message poped out saying that it couldn't be able to connect to the server or something, then it said it was terminated.
After that, I never saw it again, no matter how many times I reboot the computer.

all you have to do is run:

sudo apt-get update; sudo apt-get install virtualbox-ose; usermod -G vboxusers -a $USER

Then log off and on.

You can use the link in the menu "Applications" > "System Tools" > "Sun xVM VirtualBox".

You will need a windows license code to install windows and the installer will think it is using native hardware.

Lawrence (lawrence-snoopy) said : #8

I have done what you asked.
I think it's done installing, but I still have no idea how to apply it.
Can anyone tell me how to?
And here is the result:

lawrence@lawrence-desktop:~$ sudo apt-get update
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_GB
Hit http://hk.archive.ubuntu.com jaunty Release.gpg
Get: 1 http://hk.archive.ubuntu.com jaunty/main Translation-en_GB [52.6kB]
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com jaunty-security Release
Hit http://security.ubuntu.com jaunty-security/main Packages
Hit http://security.ubuntu.com jaunty-security/restricted Packages
Hit http://security.ubuntu.com jaunty-security/main Sources
Hit http://security.ubuntu.com jaunty-security/restricted Sources
Hit http://security.ubuntu.com jaunty-security/universe Packages
Get: 2 http://hk.archive.ubuntu.com jaunty/restricted Translation-en_GB [4640B]
Get: 3 http://hk.archive.ubuntu.com jaunty/universe Translation-en_GB [35.2kB]
Hit http://security.ubuntu.com jaunty-security/universe Sources
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Sources
Get: 4 http://hk.archive.ubuntu.com jaunty/multiverse Translation-en_GB [47.5kB]
Hit http://hk.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://hk.archive.ubuntu.com jaunty-updates/main Translation-en_GB
Ign http://hk.archive.ubuntu.com jaunty-updates/restricted Translation-en_GB
Ign http://hk.archive.ubuntu.com jaunty-updates/universe Translation-en_GB
Ign http://hk.archive.ubuntu.com jaunty-updates/multiverse Translation-en_GB
Hit http://hk.archive.ubuntu.com jaunty Release
Hit http://hk.archive.ubuntu.com jaunty-updates Release
Hit http://hk.archive.ubuntu.com jaunty/main Packages
Hit http://hk.archive.ubuntu.com jaunty/restricted Packages
Hit http://hk.archive.ubuntu.com jaunty/main Sources
Hit http://hk.archive.ubuntu.com jaunty/restricted Sources
Hit http://hk.archive.ubuntu.com jaunty/universe Packages
Hit http://hk.archive.ubuntu.com jaunty/universe Sources
Hit http://hk.archive.ubuntu.com jaunty/multiverse Packages
Hit http://hk.archive.ubuntu.com jaunty/multiverse Sources
Hit http://hk.archive.ubuntu.com jaunty-updates/main Packages
Hit http://hk.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://hk.archive.ubuntu.com jaunty-updates/main Sources
Hit http://hk.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://hk.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://hk.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://hk.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://hk.archive.ubuntu.com jaunty-updates/multiverse Sources
Fetched 140kB in 3s (40.0kB/s)
Reading package lists... Done
lawrence@lawrence-desktop:~$ sudo apt-get install virtualbox-ose
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  dkms fakeroot libaudio2 libqt4-dbus libqt4-designer libqt4-network
  libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml
  libqtcore4 libqtgui4 patch qt4-qtconfig virtualbox-ose-source
Suggested packages:
  nas libqt4-dev diff-doc bridge-utils
The following NEW packages will be installed
  dkms fakeroot libaudio2 libqt4-dbus libqt4-designer libqt4-network
  libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml
  libqtcore4 libqtgui4 patch qt4-qtconfig virtualbox-ose virtualbox-ose-source
0 upgraded, 17 newly installed, 0 to remove and 1 not upgraded.
Need to get 9686kB/19.0MB of archives.
After this operation, 69.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://hk.archive.ubuntu.com jaunty/universe virtualbox-ose 2.1.4-dfsg-1ubuntu3 [8783kB]
Get: 2 http://hk.archive.ubuntu.com jaunty/main dkms 2.0.21.1-0ubuntu3 [57.6kB]
Get: 3 http://hk.archive.ubuntu.com jaunty/main fakeroot 1.12.1ubuntu1 [115kB]
Get: 4 http://hk.archive.ubuntu.com jaunty/main patch 2.5.9-5 [100kB]
Get: 5 http://hk.archive.ubuntu.com jaunty/universe virtualbox-ose-source 2.1.4-dfsg-1ubuntu3 [630kB]
Fetched 9686kB in 12s (766kB/s)
Selecting previously deselected package libqtcore4.
(Reading database ... 109488 files and directories currently installed.)
Unpacking libqtcore4 (from .../libqtcore4_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-xml.
Unpacking libqt4-xml (from .../libqt4-xml_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-dbus.
Unpacking libqt4-dbus (from .../libqt4-dbus_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-script.
Unpacking libqt4-script (from .../libqt4-script_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libaudio2.
Unpacking libaudio2 (from .../libaudio2_1.9.1-5_i386.deb) ...
Selecting previously deselected package libqtgui4.
Unpacking libqtgui4 (from .../libqtgui4_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-designer.
Unpacking libqt4-designer (from .../libqt4-designer_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-network.
Unpacking libqt4-network (from .../libqt4-network_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-sql.
Unpacking libqt4-sql (from .../libqt4-sql_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-qt3support.
Unpacking libqt4-qt3support (from .../libqt4-qt3support_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package libqt4-sql-mysql.
Unpacking libqt4-sql-mysql (from .../libqt4-sql-mysql_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package qt4-qtconfig.
Unpacking qt4-qtconfig (from .../qt4-qtconfig_4.5.0-0ubuntu4_i386.deb) ...
Selecting previously deselected package virtualbox-ose.
Unpacking virtualbox-ose (from .../virtualbox-ose_2.1.4-dfsg-1ubuntu3_i386.deb) ...
Obsolete conffile /etc/init.d/vboxdrv has been modified by you.
Saving as /etc/init.d/vboxdrv.dpkg-bak ...
Selecting previously deselected package dkms.
Unpacking dkms (from .../dkms_2.0.21.1-0ubuntu3_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.12.1ubuntu1_i386.deb) ...
Selecting previously deselected package patch.
Unpacking patch (from .../patch_2.5.9-5_i386.deb) ...
Selecting previously deselected package virtualbox-ose-source.
Unpacking virtualbox-ose-source (from .../virtualbox-ose-source_2.1.4-dfsg-1ubuntu3_all.deb) ...
Processing triggers for man-db ...
/usr/bin/mandb: can't write to /var/cache/man/1899: No space left on device
Setting up libqtcore4 (4.5.0-0ubuntu4) ...

Setting up libqt4-xml (4.5.0-0ubuntu4) ...

Setting up libqt4-dbus (4.5.0-0ubuntu4) ...

Setting up libqt4-script (4.5.0-0ubuntu4) ...

Setting up libaudio2 (1.9.1-5) ...

Setting up libqtgui4 (4.5.0-0ubuntu4) ...

Setting up libqt4-designer (4.5.0-0ubuntu4) ...

Setting up libqt4-network (4.5.0-0ubuntu4) ...

Setting up libqt4-sql (4.5.0-0ubuntu4) ...

Setting up libqt4-qt3support (4.5.0-0ubuntu4) ...

Setting up libqt4-sql-mysql (4.5.0-0ubuntu4) ...
Setting up qt4-qtconfig (4.5.0-0ubuntu4) ...

Setting up virtualbox-ose (2.1.4-dfsg-1ubuntu3) ...
 * Starting VirtualBox kernel module... [ OK ]

Setting up dkms (2.0.21.1-0ubuntu3) ...
 * Running DKMS auto installation service for kernel 2.6.28-11-generic [ OK ]

Setting up fakeroot (1.12.1ubuntu1) ...

Setting up patch (2.5.9-5) ...
Setting up virtualbox-ose-source (2.1.4-dfsg-1ubuntu3) ...
 * Reloading kernel event manager... [ OK ]
Adding modules to DKMS build system
Doing initial module builds
Installing initial modules
Done.
 * Stopping VirtualBox kernel module... [ OK ]
 * Starting VirtualBox kernel module... [ OK ]

Processing triggers for libc6 ...
ldconfig deferred processing now taking place

Hemanth (hemanth-hm) said : #9

Have a look at the sideshow , step step instruction on howto
:vbox<http://tinyurl.com/cr7p6u>
Also have a look at
:install-any-os-within-ubuntu<http://www.h3manth.com/2009/04/install-any-os-within-ubuntu.html>

Lawrence, that fantastic output. Its all installed and ready to rock.

now run:

sudo usermod -G vboxusers -a $USER

so you are a member of the vboxusers group (important). Log off and on and you'r account is ready

to run use the menu as described above or press alt+f2 and type virtu it will finish the rest for you

have fun

Lawrence (lawrence-snoopy) said : #11

Can I run any software that is based on Windows OS on the virutalbox?

Lawrence (lawrence-snoopy) said : #12

I have done what you asked.
And I got the programme running, and set up a Windows XP.
But a message saying that "FATAL: No bootable medium found! System halted.".
The background is black in colour, and it just freezes like that.
Can anyone tells me what's wrong?

Wajih Letaief (mawale) said : #13

after having installed VirtualBox you have now to configure a Virtual Machine on it and install Windows (for example) on the Virtual Machine

You should read the manual for VirtualBox : it's well done and it's not so big :)

for your question : once windows installed, the Virtual Machines will works like a real independant Windows laptop/desktop

Lawrence (lawrence-snoopy) said : #14

Wajih Letaief: But I don't think you have answered my question.

Lawrence, what are you expecting of virtual box?

VBox gives you a virtualised machine which you can install operating systems on. You dont install vbox and Windows magically appears. You need to install Windows / Linux / Whatever as if you were installing a clean system

We'll use Windows as the example.

What you must now do is mount your XP CD withing vbox and then tell vbox to boot from that, as part of setting up a virtual machine you specify a hard drive too (be its static sized or dynamic) as well as configure what hardware is available (sound, LAN etc)

If you are installing a proprietary OS (Windows) you will need a license key to install it. If you are using an open OS (Linux / BSD) you will not need a license key

By the way, games ru pretty badly in virtualbox so if you are expecting to play GTA4 then I'd start tinking of a new solution.

Lawrence (lawrence-snoopy) said : #16

But how do I install Mac OS?
I mean it doesn't have a installation CD.

Well for a start the license prohibits it. There are illegal ISOfiles out there but I do not advise these. What you are wanting to do is illegal.

Can you help with this problem?

Provide an answer of your own, or ask Lawrence for more information if necessary.

To post a message you must log in.