I am currently using VirtualBox 3.2. I would like to upgrade it to latest version without losing any operating systems in it. How can I achieve this?
Asked
Active
Viewed 1.1e+01k times
3 Answers
22
Head on over to this page and download the Ubuntu package for your version / architecture.
Be sure to get the VirtualBox extension pack too. (This provides USB 2.0 and RDP support.) The most recent version can be found on the VirtualBox Downloads page.

Lekensteyn
- 174,277

Nathan Osman
- 32,155
-
3+1 From experience I know that you won't loose your Virtual Machines when you do this – 8128 Dec 29 '10 at 17:12
-
3I can confirm this. VBox 3.2 needs to be removed before installing 4.0 but you will not loose any vdi :) – Takkat Dec 29 '10 at 18:46
-
i can also confirm this. I have upgraded to virtualbox 4 yesterday. working fine with compiz. – aneeshep Dec 30 '10 at 05:21
-
The link to the VirtualBox extension pack is outdated. The current version is 4.0.2 which can be found at http://www.virtualbox.org/wiki/Downloads – Lekensteyn Feb 15 '11 at 14:48
-
@Lek: You can edit my answer. – Nathan Osman Feb 15 '11 at 18:38
-
@George Edison: Done :) – Lekensteyn Feb 15 '11 at 18:43
8
Add one line to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian maverick contrib
The Oracle public key for apt-secure can be downloaded here. You can add this key with
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
To install VirtualBox, do
sudo apt-get update
sudo apt-get install virtualbox-4.0

hhlp
- 42,002
-
It's better to add the repo if you can. I have updated my own machine without problems. – Javier Rivera Dec 30 '10 at 08:15
4
You should be able to upgrade virtualbox from the ppa available from virtualbox directly.
There is also a good ppa if you want to make sure you keep the open source edition (ose):

Martin Owens -doctormo-
- 20,060
-
1
-
3
-
2
-
-
@MartinOwens-doctormo- Anyone can suggest an edit. Even unauthenticated people. – Oli Sep 05 '12 at 00:34