Results 1 to 5 of 5

Thread: virtualbox cant access usb devices

  1. #1

    Default virtualbox cant access usb devices

    hello
    i am using virtualbox 4.1.4 (the latest build from yast) on opensuse 11.4 gnome, kernel-desktop.
    i cant access usb devices from the guest operating systems.
    i have installed guest additions and the wxtension pack.
    i looked at virtualbox forums and nothing solves the problem.
    any idea?

  2. #2
    Join Date
    Jul 2010
    Location
    Sweden
    Posts
    6

    Default Re: virtualbox cant access usb devices

    Remove the '#' character in the last 2 lines of /etc/udev/rules.d/60-vboxdrv.rules.

  3. #3
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: virtualbox cant access usb devices

    Here is the contents of the text file 60-vboxdrv.rules as found on the guest VM being ran under VirtualBox:

    Code:
    KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
    #these two lines give access permission to vboxusers to properly work with usb nodes, this could be security risk (bnc#664520) !!
    #
    #SUBSYSTEM=="usb_device",ATTR{devnum}=="?*",ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}",RUN+="/usr/bin/setfacl -m g:vboxusers:6 /dev/vboxusb/$attr{busnum}/$attr{devnum}"
    #SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTR{devnum}=="?*",ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}",RUN+="/usr/bin/setfacl -m g:vboxusers:6 /dev/vboxusb/$attr{busnum}/$attr{devnum}"
    Very good information Klaph and thanks for your help.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  4. #4

    Default Re: virtualbox cant access usb devices

    thanx
    works like a charm

  5. #5
    upscope NNTP User

    Default Re: virtualbox cant access usb devices

    jdmcdaniel3 wrote:

    >
    > Here is the contents of the text file *60-vboxdrv.rules* as found on

    the
    > guest VM being ran under VirtualBox:
    >
    >
    > Code:
    > --------------------
    > KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root",
    > MODE="0600"
    > #these two lines give access permission to vboxusers to properly

    work
    > #with usb nodes, this could be security risk (bnc#664520) !!
    > #
    >

    #SUBSYSTEM=="usb_device",ATTR{devnum}=="?*",ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}",RUN+="/usr/bin/setfacl
    > #-m g:vboxusers:6 /dev/vboxusb/$attr{busnum}/$attr{devnum}"
    >

    #SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTR{devnum}=="?*",ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}",RUN+="/usr/bin/setfacl
    > #-m g:vboxusers:6 /dev/vboxusb/$attr{busnum}/$attr{devnum}"
    >
    > --------------------
    >
    >
    > Very good information* Klaph* and thanks for your help.
    >
    > Thank You,
    >
    >

    I have simular problem, Guest does not see all usb devices. I looked at
    my host (opensuse 11.4) and there is no 60-vboxdrv.rules in
    /etc/udev/rules.d.
    there is a 10-vboxdrv.rules.

    KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root",
    MODE="0600"
    SUBSYSTEM=="usb_device", ACTION=="add",
    RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor
    $attr{bDeviceClass}"
    SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device",
    RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor
    $attr{bDeviceClass}"
    SUBSYSTEM=="usb_device", ACTION=="remove",
    RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
    SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device",
    RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"

    Note it is different than yours. When I installed vbox it was a new
    install done the hardway.

    In my case if I unplug the device and then replug it in, the device is
    seen.

    If I should report as bug or start a new thread let me know and I will.

    Forgot to mention my guest is Win XP.

    Russ
    openSUSE 11.4(2.6.37.6-0.7-desktop)|KDE Platform Version 4.7.3 (4.7.3)
    "release 10"|Intel core2duo 2.5 MHZ,|8GB DDR3|GeForce 8400GS (NVIDIA-
    Linux-x86_64-280.13)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •