Since I moved to Gutsy Gibbon (Ubuntu 7.10) I had been unable to attach USB devices to my Windows XP Professional VM. (This may have been true on Feisty Fawn (7.04)). The instructions to edit /etc/init.d/mountdevsubfs.sh (using sudo) as shown on
this Ubuntu Forums thread worked wonders.
To reiterate what I consider to be the salient point, one needs to edit /etc/init.d/mountdevsubfs.sh with sudo to uncomment lines which will set up /proc/bus/usb/devices. The instructions follow:
sudo gedit /etc/init.d/mountdevsubfs.sh
[substitute the editor of your choice for gedit (I use vim)] around line 40 change the file so that it matches these 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
All the lines above are commented out in the default from Ubuntu. After completing the edit the following command will set up /dev/bus/usb/devices.
sudo /etc/init.d/mountdevsubfs.sh start
I wasn’t properly removing my USB disk, and that was contributing to my problems. It is important to remember to use the following steps:
- Remove the device from the windows guest using the safely remove hardware utility in the system tray
- Using the VM/Removable Devices/USB menu, disconnect the device from VMWare-Server
After these steps are completed, you can remove the USB device. Upon reinsertion, make sure that Ubuntu does not have it mounted before trying to connect it to the VM.