The most important thing to do right now is realise the there are two version of VirtualBox:
- virtualbox-ose (open source edition) - no USB support
- virtualbox-puel - the one with USB support
apt-get install virtualbox-ose
- Then run it: Applications -> Accessories -> VirtualBox OSE
- add the following repro:
deb http://download.virtualbox.org/virtualbox/debian jaunty non-free
- then add the key and install it
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
sudo apt-get install virtualbox-3
- You should find it under Applications -> System Tools
Create a new virtual machine and follow the wizard. I chose to use the following settings:
- 512 MB RAM
- Dynamic HDD (max 50GB)
Once this is done, double click on the newly created VM and follow the "First Run Wizard". Pop the XP installation CD in the drive and choose that as the media to use for installation.
The Windows installation proceeds: the only problem that I had was when trying to Eject the disc (the XP disc is an upgrade disc and I needed to put an old NT disc in). At first, the Eject just wouldn't happen - I joked that Windows clearly didn't want to leave the machine. After using the right click -> Eject option from the desktop a couple of times, it relented.
In fact, the whole process was far less stressful than it used to be installing it on a fresh box - the network worked first time and I didn't have to wait for the "34 minutes" while watching a blue screen. Instead, I could fire up firefox and do some surfin'.
When the VM needs keyboard or mouse action, life is very simple:
- keyboard: simply bring the VM window to focus
- mouse: click on the VM window or use the "capture key" which, by default is the Right Ctrl key
Just needed to install all the updates... trivial really, keep re-visiting the Updates page via the control panel, and install SP1, SP2, SP3 and a couple of other pieces of software and restarting the VM about 7 times!
Getting networked folders sorted is pretty simple too.
- ensure that the VM is fired up
- install the "guest additions": from the VirtualBox menu: Devices -> Install Guest Additions
- follow the prompts from within the VM
- from the live VM window, choose Devices -> Shared Folders
- within the popup window, use the add button (top right) and choose the folder you want to share
- I chose to make the sharing permanent too
- within Windows, choose "Start -> Run"
- type "net use x: \\vboxsvr\NameOfYourFolderHere"
USB and iPHONE
Of course, this is only going to work if you've downloaded the PUEL version (see above).
- add yourself to the vboxusers group
- add this line to /etc/fstab, replacing XXX for the groupid of vboxusers: NB. most posts talk about /proc/bus/usb, but this didn't exist on my Karmic install, so I changed it to /dev/bus/usb
none /dev/bus/usb usbfs devgid=XXX,devmode=664 0 0
- restart your machine: some people say restart some services, some say logout...
- goto Control Panel -> System -> Hardware -> Device Manager
- check that the USB controller is installed correctly and there aren't any other drivers missing
- if there are problems, double click and choose to search for driver from the web
- check the iPhone is recognised by plugging it in and seeing if it is listed under the USB menu at the bottom or within the Devices menu
- click the checkbox next to them to ensure that Windows connects to them
- install iTunes