VirtualBox 2.1.2 kills USB printing
-
- Posts: 5
- Joined: 24. Jan 2009, 13:14
VirtualBox 2.1.2 kills USB printing
After installing VirtualBox 2.1.2 on my OpenSUSE 11.1 I cannot print anymore. I filed a bug report here: http://www.virtualbox.org/ticket/3143
Until this issue is resolved, I would be glad if anyone could point me to a temporary workaround. Can I somehow prevent VirtualBox from fiddling with the USB permissions? I do not need USB access in VirtualBox, but I do need to print!
Until this issue is resolved, I would be glad if anyone could point me to a temporary workaround. Can I somehow prevent VirtualBox from fiddling with the USB permissions? I do not need USB access in VirtualBox, but I do need to print!
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Disable USB. It's possible that a VM grabbed your printer.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 5
- Joined: 24. Jan 2009, 13:14
Where do I do that? Please note, that printing immediately stops working after the version 2.1.2 RPM package is installed and the corresponding USB device is recreated (due to reconnecting the printer or rebooting the system).Sasquatch wrote:Disable USB. It's possible that a VM grabbed your printer.
I'm also quite sure that it is purely a permission problem. If I reset them by hand everything works fine until the next reboot.
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
You can disable USB in the VM settings. But from your post now, it seems that your issues are since the install of the new version, not specifically if you run a VM, correct?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 5
- Joined: 24. Jan 2009, 13:14
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Extract the package only, then see what files are replaced/modified to track down the issue. Once you've found it, you can open a bug report in the Bugtracker. You need to sign up for a new account there, your Forum account won't work.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
- Posts: 5
- Joined: 24. Jan 2009, 13:14
Well, I'm not sure if closing the topic is appropriate. I also just had the problem. Since I have my user in the lpadmin and lp groups I was able to print, however the hplip toolbox reported a device communications error and the extra features like Supplies, align cartridges, etc did not even appear.
I moved the /etc/udev/rules.d/60-vboxdrv.rules to my home folder and rebooted. Then hplip toolbox was able to access my printer again.
But how does this effect virtualbox operation? Should we, rather than removing that vboxdrv rules file, simply delete the usb lines and leave that KERNEL line? I mean, this file has always been installed by the virtualbox installer and so I figure that it does something that VirtualBox needs.
My install is on Debian Lenny using the .run installer. I haven't any guests installed at the moment since I've been using VMWare lately due to the various problems with VirtualBox since 2.1 was released. That's why I don't know whether deleting this file will effect normal operation of VirtualBox guests regarding vboxdrv, the USB, etc.
I had been waiting to start installing some Linux guests (I've got XP and 98SE on VMWare guests) on VirtualBox until the bugs in VirtualBox 2.1 were dealt with. Now it seems we have a new bug. But perhaps default UDEV rules on a Debian installation and the standard vboxdrv setup are enough without this vboxdrv.rules file?
I moved the /etc/udev/rules.d/60-vboxdrv.rules to my home folder and rebooted. Then hplip toolbox was able to access my printer again.
But how does this effect virtualbox operation? Should we, rather than removing that vboxdrv rules file, simply delete the usb lines and leave that KERNEL line? I mean, this file has always been installed by the virtualbox installer and so I figure that it does something that VirtualBox needs.
My install is on Debian Lenny using the .run installer. I haven't any guests installed at the moment since I've been using VMWare lately due to the various problems with VirtualBox since 2.1 was released. That's why I don't know whether deleting this file will effect normal operation of VirtualBox guests regarding vboxdrv, the USB, etc.
I had been waiting to start installing some Linux guests (I've got XP and 98SE on VMWare guests) on VirtualBox until the bugs in VirtualBox 2.1 were dealt with. Now it seems we have a new bug. But perhaps default UDEV rules on a Debian installation and the standard vboxdrv setup are enough without this vboxdrv.rules file?
-
- Posts: 5
- Joined: 24. Jan 2009, 13:14
Deleting the usb lines starting with SUBSYSTEM (and leaving the KERNEL line) is enough. A probable side effect will be, that it is then no longer possible to access USB devices from within a VM, unless other measures are taken to ensure read/write access to the devices for the user executing the VM. Apart from this, VirtualBox should work normally.
Going with no /etc/udev/rules.d/60-vboxdrv.rules file, I installed an OpenSUSE 11.1 guest and USB works fine in the guest.
On my host's /etc/fstab I still have the line:
none /proc/bus/usb usbfs auto,busgid=1001,busmode=0775,devgid=1001,devmode=0664 0 0
That's what made USB work within guests in VirtualBox on my Debian Lenny host before and it still appears to work regardless of whatever the USB changes were in VirtualBox 2.1.2.
Perhaps due to that bug report this vboxdrv.rules issue will be looked into and adjusted to play more nicely with host USB devices such as those using hplip.
For now, deleting that file hasn't appeared to effect VirtualBox guests and re-enables my hplip toolbox in the host to function properly. Printing was working anyway, even when hp-toolbox was reporting device communication errors and its services weren't available. KDE was using the printer fine from the hp:// device uri.
On my host's /etc/fstab I still have the line:
none /proc/bus/usb usbfs auto,busgid=1001,busmode=0775,devgid=1001,devmode=0664 0 0
That's what made USB work within guests in VirtualBox on my Debian Lenny host before and it still appears to work regardless of whatever the USB changes were in VirtualBox 2.1.2.
Perhaps due to that bug report this vboxdrv.rules issue will be looked into and adjusted to play more nicely with host USB devices such as those using hplip.
For now, deleting that file hasn't appeared to effect VirtualBox guests and re-enables my hplip toolbox in the host to function properly. Printing was working anyway, even when hp-toolbox was reporting device communication errors and its services weren't available. KDE was using the printer fine from the hp:// device uri.
-
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: PUEL
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
If you needed that, you are not in the proper groups to access the USB system. Are you in the vboxusers group? When I execute id from a terminal, I get this output. Compare it with yours.retabell wrote:same with VirtualBox 2.1.4 on Debian-Etch
with usb-printer when printing via hplip
changing in 10-vboxdrv.rules the two lines with subsytem MODE="664" change to "666"
fixed it for me.
Code: Select all
uid=1000(sasquatch) gid=1000(sasquatch) groups=4(adm),24(cdrom),29(audio),30(dip),44(video),46(plugdev),102(netdev),105(scanner),108(fuse),115(lpadmin),118(admin),121(gdm),122(sambashare),124(pulse),125(pulse-access),126(pulse-rt),127(vboxusers),130(floppy),1000(sasquatch)
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
yes, here is th id outputAre you in the vboxusers group?
Code: Select all
uid=1000(holger) gid=1000(holger) Gruppen=20(dialout),21(fax),22(voice),24(cdrom),25(floppy),
26(tape),27(sudo),29(audio),30(dip),44(video),46(plugdev),
60(games),100(users),106(usb),113(scanner),115(camera),
116(umlnet),117(fuse),118(powerdev),123(netdev),
1000(holger),1003(vboxusers)
with Ubuntu-Kernel 2.6.28-8-generic