junk food for the brain …
Posts tagged usb
How to enable USB Devices for VirtualBox Guests in Fedora 11
Jul 6th
By default, guest hosts running in VirtualBox on Fedora 11 cannot mount or see usb devices plugged into your machine. A few tweaks are necessary for USB support to work.
- Edit your /etc/rc.sysinit file, change line no 26 from
mount -n -t usbfs /proc/bus/usb /proc/bus/usb
to
mount -t usbfs -o remount,devgid=$(awk -F: '/^vboxusers:/{print $3}' /etc/gr oup),devmode=664 /proc/bus/usb /proc/bus/usbSo, your
/etc/rc.sysinitshould change from:23 if [ ! -d /proc/bus/usb ]; then 24 modprobe usbcore >/dev/null 2>&1 && mount -n -t usbfs /proc/bus/usb /proc/bus/usb 25 else 26 mount -n -t usbfs /proc/bus/usb /proc/bus/usb 27 fi
to
24 modprobe usbcore >/dev/null 2>&1 && mount -n -t usbfs /proc/bus/usb /proc/bus/usb 25 else 26 # mount -n -t usbfs /proc/bus/usb /proc/bus/usb 27 mount -t usbfs -o remount,devgid=$(awk -F: '/^vboxusers:/{print $3}' /etc/gr oup),devmode=664 /proc/bus/usb /proc/bus/usb 28 fi
- Next, edit your
/etc/udev/rules.d/10-vboxdrv.rules. Change line number 1 fromKERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
to
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0660"
- Reboot your machine. You should now be able to mount you usb devices.
The following screenshot shows some of the USB devices can allow my guest machine to view.
The USB devices available for VirtualBox Guests
Devices like my USB Flash Drive are still blurred out. In order to get them to work, I need to install the VirtualBox Guest Additions first.
Source: