First thing to say, Don’t read this if you already know how.

I am making a summary of mounting my USB on my VirtualBox. It’s not a problem if you are using Windows host, but if you are using Linux host, you should use this step to mount your USB on VirtualBox. OK, here is the step:

1. Add yourself to the vboxusers group created when you installed VirtualBox. Go to System –> Administration –> User and Group. Press unlock and the click Manage Group. Then go to vboxuser properties.

User properties

Then, tick on your user account and make a note of your Group ID (GID). See below:

Vboxuser

2. Add this line at the end of your /etc/fstab file:

none /proc/bus/usb usbfs devgid=[your GID],devmode=664 0 0

3. And also add this line in /etc/init.d/mountkernfs.sh file:

## Mount the usbfs for use in Virtual Box
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev,devgid=[your GID],devmode=664

4. Restart your computer.

5. Don’t forget to add it on your Virtualbox setting.

Vbox Setting

That’s it… :dance: [peace] Now you should able to use your USB (Flash disk, printer, etc) on your VirtualBox.

Note:
- Host: Ubuntu 8.10
- VirtualBox: Sun xVM VirtualBox Version 2.0.6
- Don’t put your USB mouse on the list, if you do that, you only able to use you USB mouse from your guest OS (unable to access by host).

Update:
I have found this link. Here is a complete guide using VirtualBox on Ubuntu:
https://help.ubuntu.com/community/VirtualBox


10 Responses to “Mounting USB on VirtualBox (Linux host)”  

  1. Gravatar Icon 1 Donny Kurnia

    If you do step no 2, you don’t need to restart, but just run this:
    sudo mount -a

    I do this step, and skip step 3 and 4 completely. It working until now.

  2. Gravatar Icon 2 Iqbal_Ir

    @Donny Kurnia,
    Ok, thx for you info… [peace]
    Yes, it should be working good without step 3 and 4 (I think step 1-2 is only for mounting Flash Disk USB) and the rest of them is for mounting another USB such as Printer. CMIIW… :wink:

  3. Gravatar Icon 3 Jack.k

    the line you add to to the fs tab file, my system will not allow me to keep the changes?? how can i change this. Also i do not seen to have ‘ /etc/init.d/mountkernfs.sh’ file what would be the reason for this?

  4. Gravatar Icon 4 Iqbal_Ir

    @Jack.k
    To allow you to add the line maybe you need to use one of this command:
    $ sudo gedit /etc/fstab
    or
    $ sudo nano /etc/fstab
    or
    $ sudo vi /etc/fstab

    What linux distribution are you using?? If you are not using ubuntu, then maybe you will find it on another location.

  5. Gravatar Icon 5 xvader

    hello,
    saya telah melakukan langkah-langkah tersebut, menggunakan ubuntu hardy sebagai host dan winxp sebagai guest, di virtualbox 2.1.0. device-device usb terdeteksi pada settingsnya namun pada winxp device tersebut tidak ada/tidak termount dengan state: unavailable. apa yang terjadi?

  6. Gravatar Icon 6 Iqbal_Ir

    @xvader,
    Waahh Hardy yaahh… :D
    Utk mounting USB di Hardy yg disini sdh coba…??

    Mungkin XP-nya tidak mengenali USB-nya ya… Siapa tahu USB tsb butuh driver… :smile:

  7. Gravatar Icon 7 xvader

    yup, langkah-langkah di url tersebut juga telah saya coba, semua device usb terbaca di settings virtualbox, namun teteup di guest os (winxp) masih ga kebaca dan ga bisa digunakan satupun. terpaksa untuk usb flash disk, saya akalin dengan shared folder.

    virtualbox guest additions juga telah terinstal.

    apa harus instal ulang guest os-nya ya? duh…

    *mesin: acer aspire 2920*

  8. Gravatar Icon 8 Iqbal_Ir

    @xvader,
    Kalau itu mmg diperlukan silahkan dicoba saja instal ulang WinXP-nya. Buat saja virtual disk yang baru kalau VDI lama sayang dibuang.
    Coba juga pakai WinXP SP3, mungkin bisa dikenali.

  9. Gravatar Icon 9 kamal

    Trimaksih. :hehe:

  1. 1 Complete guide using VirtualBox on Ubuntu at http://blog.iqbalir.com


Leave a Reply

Smilies (Seperated with space) :

:smile: :mrgreen: :razz: :eek: :???: :wink: :cool: