VirtualBox och USB-enheter [LÖST]

Användarvisningsbild
sontho
Inlägg: 312
Blev medlem: 05 sep 2006, 21:29
OS: Ubuntu
Utgåva: 22.10 Kinetic Kudu
Ort: Karlskoga, Värmland

VirtualBox och USB-enheter [LÖST]

Inlägg av sontho »

Hej
Jag kör med VirtualBox och det fungerar rätt bra.
Tänkte använda den för att få min cannonscanner användbar (för den funkar inte i ubuntu tyvärr)

Och då vill jag även koppla in skrivaren, även den en canon.
(den funkar i ubuntu, men vill gärna köra den i VBoxen också)

Jag får då följande meddelande från VBox
(se bif bild)

Och i hjälpen till VBox står följande:

Kod: Markera allt

10.4.6. USB not working
If USB is not working on your Linux host, make sure that the current user has permission to access the USB filesystem (usbfs), which VirtualBox relies on to retrieve valid information about your host's USB devices.
As usbfs is a virtual filesystem, a chmod on /proc/bus/usb has no effect. The permissions for usbfs can therefore only be changed by editing the /etc/fstab file.
For example, most Linux distributions have a user group called usb or similar, of which the current user must be a member. To give all users of that group access to usbfs, make sure the following line is present:
# 85 is the USB group
none     /proc/bus/usb     usbfs      devgid=85,devmode=664    0    0
Replace 85 with the group ID that matches your system (search /etc/group for "usb" or similar). Alternatively, if you don't mind the security hole, give all users access to USB by changing "664" to "666".
The various distributions are very creative from which script the usbfs filesystem is mounted. Sometimes the command is hidden in unexpected places. For SuSE 10.0 the mount command is part of the udev configuration file /etc/udev/rules.d/50-udev.rules. As this distribution has no user group called usb, you may e.g. use the vboxusers group which was created by the VirtualBox installer. Since group numbers are allocated dynamically, the following example uses 85 as a placeholder. Modify the line containing (a linebreak has been inserted to improve readability)
DEVPATH="/module/usbcore", ACTION=="add",
    RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb"
and add the necessary options (make sure that everything is in a single line):
DEVPATH="/module/usbcore", ACTION=="add",
    RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb -o devgid=85,devmode=664"
Debian Etch has the mount command in /etc/init.d/mountkernfs.sh. Since that distribution has no group usb, it is also the easiest solution to allow all members of the group vboxusers. Modify the line 
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev
so that it contains 
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev,devgid=85,devmode=664
As usual, replace the 85 with the actual group number which should get access to USB devices.
Other distributions do similar operations in scripts stored in the /etc/init.d directory.
Men då blir min fundering, var finns USB monteringarna i Ubuntu???
jag får ingen träff på något av förslagen i Vboxens hjälp.

Och scannern känner VBoxen av?

Tips, någon?

/Thomas
Bilagor
Skärmbild-VirtualBox - Error.png
Senast redigerad av 1 sontho, redigerad totalt 6 gånger.
Det ska gå!
--------------------------------------------------------
Ubuntu user # 10410
Användarvisningsbild
fabsy
Inlägg: 169
Blev medlem: 29 jan 2007, 13:20
Ort: Sunne / Sverige
Kontakt:

SV: VirtualBox och USB-enheter

Inlägg av fabsy »

kör gksudo gedit /etc/udev/rules.d/40-permissions.rules

Sen så byter du ut "SUBSYSTEM=="usb_device", MODE="0664"" till
"SUBSYSTEM=="usb_device", MODE="0666" eller ja.. du kan avkommentera den raden och lägga till den nya.

asså

# SUBSYSTEM=="usb_device", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0666"
Användarvisningsbild
sontho
Inlägg: 312
Blev medlem: 05 sep 2006, 21:29
OS: Ubuntu
Utgåva: 22.10 Kinetic Kudu
Ort: Karlskoga, Värmland

SV: VirtualBox och USB-enheter

Inlägg av sontho »

:D  :D  :)

Lysande fabsy!
Tack för hjälpen, fungerade naturligtvis på en gång!  :D

Som mina norska vänner säger "glimmrende"


/Thomas
Det ska gå!
--------------------------------------------------------
Ubuntu user # 10410
Skriv svar

Återgå till "Program - inaktuell"