Enabling USB support for VMware Server in Hardy Heron

After installing VMware Server on Hardy heron, if you find that your virtual machine cannot detect any USB devices on the host, that is because Ubuntu has removed the support for /proc/bus/usb/*.

The following is the way to solve this issue:

Open up a terminal and type

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

In the window that pop up, scroll to line 40 and look for the following code:

#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

Uncomment them by removing the ‘#’ infront of each line of the code.

Save and exit.

Restart the module

/etc/init.d/mountdevsubfs.sh start

Done. Your virtual machine should be able to detect USB device now.

(The above step will apply for VirtualBox as well)

Damien Oh is the owner and chief editor of Make Tech Easier

 

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

8 Responses

  • polarizer says:

    thx man – i ran in exactly this issue but i saw no solution and so a decided to check this out later. now it is easy. thx again

    the polarizer

    Reply

  • mrb says:

    Good work! mounting usbfs to /proc/bus/usb didn’t work for me, but your solution did.

    Reply

  • Logan says:

    As soon as I went to restart the module, it wouldn’t allow me, saying:

    logan@logan:~$ /etc/init.d/mountdevsubfs.sh start
    mkdir: cannot create directory `/dev/bus/usb/.usbfs’: Permission denied
    open: Permission denied
    * Mount point ‘/dev/bus/usb/.usbfs’ does not exist. Skipping mount.
    ln: creating symbolic link `/dev/bus/usb/devices’: Permission denied
    mount: only root can do that

    Can you help?

    I have already had success with your other posts, but this newbie just can’t figure out some basics.

    Keep up the good work…

    Logan

    Reply

  • Damien says:

    @Logon: Try restarting the module again with “sudo”. ie “sudo /etc/init.d/mountdevsubfs.sh start

    Reply

  • Logan says:

    I feel really silly. But I found out about using sudo to get root priviledges about an hour after posting and I STILL didn’t thin of that!

    It must have been the sleep dep.

    Anyhow, it’s working now. All I have to do now is work out how to access the internet from my Windows XP Guest.

    Logan

    Reply

  • Kerrin says:

    I’ve found I have to run this after connecting any usb devices:

    sudo chmod -R 777 /proc/bus/usb/*

    Otherwise when you goto device connect in VMWare server 2.0 remote console, it comes up with:
    “Remote USB device error: Remote device disconnected: an error occured while sending data.”

    Reply

  • mike says:

    Hey thanks a bunch. You just helped me get my APC UPS up and running using USB on Ubuntu Server. I never knew this was disabled by default on servers.

    CK

    Reply

  • Gaetan says:

    Thank you from me too. Have used it to install Windows 7 beta. Works great. Still having problems getting the USB message above to resolve and the network adapter is not being recognized in Windows 7. Not sure where the problem resides but will continue to hunt.

    Reply

Leave a Comment




 

Sign in with Twitter

Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again