Archive for the 'Virtualization' Category

Virtualbox 2.0

Virtualbox 2.0 is out and now it’s easier to install and maintain.


Install

  • Download and register Sun authentication key
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | \
sudo apt-key add -
  • Go to System > Administration > Software Sources and Third-Party Software.
  • Add the following sources for Hardy (check your distibution here):
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
  • Now you can go to Synaptic Package Manager and look for virtualbox. This way you can uninstall previous Virtualbox installations (Synaptic Package Manager will do that for you).
  • Don’t forget to install the new Guest Additions if you’re using a Windows Virtual Machine.
  • Now you’ll receive updated through Update Manager.

Also check my previous posts about Virtualbox for more info and tips:


Further reading


last updated: 16-09-2008

______________________________________________________________________________________

Sun Virtualbox

UPDATE AUG 10: Virtualbox 1.6.4 is out. Added a new “Update Virtualbox to a new version” section.

I have Virtualbox OSE (Open Source Edition) installed. I use it basically to use Office, when needed.

Currently I only restart to Windows to sync my iPod Touch, and that’s because Virtualbox OSE doesn’t support USB.

But there’s a version, provided by Sun, that supports USB devices.


Uninstall Virtualbox OSE

If you already have Virtualbox installed go to Applications > Add/Remove… and look for virtualbox to uninstall your current version.

I also went to System > Administration > Synaptic Package Manager and also looked for virtualbox to remove every trace of it.


Install Sun Virtualbox (currently v1.6.2
v1.6.4)

Go to Virtualbox download site and go to Binaries (all platforms).
Select your Platform (Ubuntu 8.04 x86 in my case), agree to the license and continue to the download.

After the download is complete start the installer (or double click the .deb file):

sudo dpkg -i virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb

And it’s that easy.


Virtualbox Users

  • Go to System > Administration > Users and Groups
  • Unlock the Settings and go to Manage Groups
  • Find the vboxusers group and click Properties
  • Select your username in the Group Members list


USB Support

By default the usb support is disabled. To enable it do the following:

sudo gedit /etc/init.d/mountdevsubfs.sh

Now look for:

#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb

And replace with (remove # from the last 4 lines):

#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

Restart your machine.


Update Virtualbox to a new version

When a new version is available you just need to download it and double click the .deb file. It’s that easy.


Last tips

Sun Virtualbox is now available at Applications > System Tools > Sun xVM VirtualBox.

In my case, at the end of the installation, Virtualbox found my previous virtual machine (Windows XP) and upgraded it to the new version, allowing me to use that virtual machine.

Because of this, every configuration was set and I only had to activate the USB support in my virtual machine.

Check my Virtualbox OSE post and see how to:

  • Create a new Virtual Machine
  • Share folders with the Virtual Machine (install Guest Additions for Windows)
  • VirtualBox running modes

Note: if you had Guest Additions for Windows in your old virtual machine, uninstall it and install the new 1.6.2 version.


Further reading


last updated: 10-08-2008

______________________________________________________________________________________

Windows under Linux

Ok, some things I may need to do in Windows (for now).
So I will install a virtual Windows machine using VirtualBox.


Install

  • Applications > Add/Remove Applications
  • Show: All available applications
  • Search: virtualbox
  • Check VirtualBox OSE and Apply Changes
  • Run VirtualBox (Applications > System Tools > VirtualBox OSE)


Creating a new Virtual Machine

  • Click New and follow the instructions (a virtual hard disk is needed, but you’ll be easily guided through the installer)
  • Go to Synaptic Package Manager
  • Search for virtualbox
  • Install virtualbox-ose module for your kernel (like linux-image-2.6.24-16-generic)
  • Install virtualbox-ose-guest module for your kernel (like linux-image-2.6.24-16-generic)
  • Go to System > Administration > Users and Groups
  • In Manage Groups find vboxusers, click Properties and add your user to this Group
  • Logout from Ubuntu
  • Back to VirtualBox
  • Go to Settings > CD/DVD-ROM and mount your Windows CD or iso Windows file
  • Start the Virtual Machine and install Windows
  • Tip: Click in the VirtualBox window to get the mouse pointer into Windows and click Alt+Ctrl to get the mouse pointer back to Ubuntu
  • Note: I used Brasero to create a ISO image of Windows XP


Share folders with the Virtual Machine

  • In the VirtualBox window go to Devices > Install Guest Additions
  • This will download an iso image file, mounting it in Windows and install Guest Additions for Windows
  • Shutdown Windows
  • Go to Settings > Shared Folder and add the folders you want to share
  • Start Windows and map a Network Drive to:
\\vboxsvr\yoursharedfolder


VirtualBox running modes

  • Windowed: in this case Windows will be displayed in a window
  • Fullscreen: in this case Windows will be displayed in full screen
  • Seemless mode: in this case Windows will be integrated into Gnome


Further reading

last updated: 01-05-2008

___________________________________________________________________________________________________