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?

3 Answers 3


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.

  • 3
    +1 From experience I know that you won't loose your Virtual Machines when you do this
    – 8128
    Dec 29, 2010 at 17:12
  • 3
    I can confirm this. VBox 3.2 needs to be removed before installing 4.0 but you will not loose any vdi :)
    – Takkat
    Dec 29, 2010 at 18:46
  • i can also confirm this. I have upgraded to virtualbox 4 yesterday. working fine with compiz.
    – aneeshep
    Dec 30, 2010 at 5:21
  • The link to the VirtualBox extension pack is outdated. The current version is 4.0.2 which can be found at virtualbox.org/wiki/Downloads
    – Lekensteyn
    Feb 15, 2011 at 14:48
  • @Lek: You can edit my answer. Feb 15, 2011 at 18:38

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
  • It's better to add the repo if you can. I have updated my own machine without problems. Dec 30, 2010 at 8:15

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):


  • 1
    broken links, -1
    – Henrik
    Aug 26, 2012 at 16:48
  • 3
    You could have just asked me to fix it. Aug 29, 2012 at 4:15
  • 2
    +1 Or easier still, just edit the answer with the new link... Aug 29, 2012 at 6:55
  • Tom: not sure Henrik could edit the answer. Sep 3, 2012 at 3:53
  • @MartinOwens-doctormo- Anyone can suggest an edit. Even unauthenticated people.
    – Oli
    Sep 5, 2012 at 0:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .