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