Virtualbox USB ? [SOLVED]

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

Virtualbox USB ? [SOLVED]

Post by hairybiker »

I am trying to get usb working under Mint 5 and Vbox 2.04
I have followed the instructions in the Ubuntu documentation https://help.ubuntu.com/community/VirtualBox
But my devices are not allowed when I start my vm. All it says is disabled on all of them.

The device I am trying especially to get working is my canon ip4000 printer so that I can print in high resolution.

All help gratefully received.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Fornhamfred
Level 6
Level 6
Posts: 1243
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox USB ?

Post by Fornhamfred »

Hi

I think that if you download the package thro synaptic that version does not support USB. You need to go to the virtualbox website and download the full version which in theory supports USB.

I have 2.0.4 installed and although I have USB enabled it shows no devices available even though I have usb hardware attached.

Hopefully we can help each other to resolve this problem.
PuterT

Re: Virtualbox USB ?

Post by PuterT »

I have usb working on a vista guest, on mint 5 amd64 host following this http://paulsiu.wordpress.com/2007/11/20 ... irtualbox/
Then in the machine settings, enable both usb and usb 2.0, and add a filter for the device, editing the filters remote setting to "any"
This worked for an external HDD
Guest

Re: Virtualbox USB ?

Post by Guest »

Fornhamfred wrote:Hi

I think that if you download the package thro synaptic that version does not support USB. You need to go to the virtualbox website and download the full version which in theory supports USB.

I have 2.0.4 installed and although I have USB enabled it shows no devices available even though I have usb hardware attached.

Hopefully we can help each other to resolve this problem.
Sorry I should have said I have previously had it working under Ubuntu 64bit (8.04) before I reformatted my / and tried and removed 8.10 then Mint 5 (32bit), I am using the full version from Sun.
Guest

Re: Virtualbox USB ?

Post by Guest »

PuterT wrote:I have usb working on a vista guest, on mint 5 amd64 host following this http://paulsiu.wordpress.com/2007/11/20 ... irtualbox/
Then in the machine settings, enable both usb and usb 2.0, and add a filter for the device, editing the filters remote setting to "any"
This worked for an external HDD
I don't understand why all the devices are greyed out, they used to work....
my /etc/init.d/mountdevsubfs.sh

Code: Select all

	#
	# Magic to make /proc/bus/usb work
	#
	mkdir -p /dev/bus/usb/.usbfs
	domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
	ln -s .usbfs/devices /dev/bus/usb/devices
	mount --rbind /dev/bus/usb /proc/bus/usb
}
However my /etc/udev/rules.d/40-permissions.rules looks like this

Code: Select all

# This file establishes permissions and ownership of devices according
# to Ubuntu policy.  See udev(7) for syntax.
#
# The names of the devices must not be set here, but in 20-names.rules;
# user-friendly symlinks (which need no permissions or ownership) should
# be set in 60-symlinks.rules.

# Block devices
SUBSYSTEM!="block", GOTO="block_end"
ATTRS{removable}!="1",			GROUP="disk"
ATTRS{removable}=="1",			GROUP="floppy"
SUBSYSTEMS=="usb",			GROUP="plugdev"
SUBSYSTEMS=="ieee1394",			GROUP="plugdev"
SUBSYSTEMS=="mmc",			GROUP="plugdev"
SUBSYSTEMS=="pcmcia",			GROUP="plugdev"
LABEL="block_end"

# IDE devices
ENV{ID_CDROM}=="?*",			GROUP="cdrom"
KERNEL=="ht[0-9]*",			GROUP="tape"
KERNEL=="nht[0-9]*",			GROUP="tape"

# IEEE1394 (firewire) devices
# Please note that raw1394 gives unrestricted, raw access to every single
# device on the bus and those devices may do anything as root on your system.
# Yes, I know it also happens to be the only way to rewind your video camera,
# but it's not going to be group "video", okay?
KERNEL=="raw1394",			GROUP="disk"
KERNEL=="dv1394*",			GROUP="video"
KERNEL=="video1394*",			GROUP="video"

# Packet CD devices, group under /dev/pktcdvd
KERNEL=="pktcdvd",			MODE="0644"
KERNEL=="pktcdvd[0-9]*",		GROUP="cdrom"

# Printers and Parallel devices
SUBSYSTEM=="printer",			GROUP="lp"
SUBSYSTEM=="ppdev",			GROUP="lp"
SUBSYSTEM=="usb", KERNEL=="lp[0-9]*",	GROUP="lp"
KERNEL=="pt[0-9]*",			GROUP="tape"
KERNEL=="pht[0-9]*",			GROUP="tape"

# SCSI devices
SUBSYSTEMS=="scsi", GOTO="scsi_start"
GOTO="scsi_end"
LABEL="scsi_start"
ATTRS{type}=="0",			GROUP="disk"
ATTRS{type}=="1",			GROUP="tape"
ATTRS{type}=="4",			GROUP="cdrom"
ATTRS{type}=="5",			GROUP="cdrom"
ATTRS{type}=="6",			GROUP="scanner"
ATTRS{type}=="8",			GROUP="tape"
ATTRS{type}=="3", ATTRS{vendor}=="HP",	GROUP="scanner"
ATTRS{type}=="3", ATTRS{vendor}=="Epson", GROUP="scanner"
ATTRS{type}=="3", ATTRS{vendor}=="EPSON", GROUP="scanner"
LABEL="scsi_end"

# Serial devices
SUBSYSTEM=="tty",			GROUP="dialout"
SUBSYSTEM=="capi",			GROUP="dialout"
SUBSYSTEM=="slamr",			GROUP="dialout"
SUBSYSTEM=="zaptel",			GROUP="dialout"
KERNEL=="ttyLTM[0-9]*",			GROUP="dialout", MODE="0660"

# USB serial converters
SUBSYSTEM=="usb_device", GOTO="usb_serial_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="usb_serial_start"
GOTO="usb_serial_end"
LABEL="usb_serial_start"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", \
					MODE="0660", GROUP="dialout"
LABEL="usb_serial_end"

# Sound devices
SUBSYSTEM=="sound",			GROUP="audio"

# pty devices
SUBSYSTEM=="tty", KERNEL=="pty*",	GROUP="tty", MODE="0666"

# Video devices
SUBSYSTEM=="drm",			GROUP="video"
SUBSYSTEM=="dvb",			GROUP="video"
SUBSYSTEM=="graphics",			GROUP="video"
SUBSYSTEM=="video4linux",		GROUP="video"
KERNEL=="agpgart",			GROUP="video"
KERNEL=="nvidia*",			GROUP="video"

# Other devices, by name
KERNEL=="mem",				GROUP="kmem", MODE="0640"
KERNEL=="kmem",				GROUP="kmem", MODE="0640"
KERNEL=="port",				GROUP="kmem", MODE="0640"
KERNEL=="nvram",			GROUP="nvram"
KERNEL=="rtc",				GROUP="audio"
KERNEL=="js[0-9]*",			GROUP="plugdev"
There is no

Code: Select all

# USB devices (usbfs replacement)
SUBSYSTEM==”usb_device”, MODE=”0664″
Is this a change made from Ubuntu -> Mint?
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ?

Post by hairybiker »

For some reason I wasn't logged in when I posted the 2 previous messages...
As I said I did previously have this working and have kept my /home partition, only moving the Documents and bits I wanted across not the whole home dir, in case there was any issues between 32/64bit versions.
The whole vm works appart from this one issue. I have at the moment setup cups with a raw printer to allow me to print from the vm but would like to be able to use usb in the vm.
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ?

Post by hairybiker »

Nobody have any solutions?
User avatar
Fornhamfred
Level 6
Level 6
Posts: 1243
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox USB ?

Post by Fornhamfred »

Hairybiker

You don't say where you downloaded VM from. As my previous comment the download from synaptic does not include USB support. I have PcLinux running as guest on my system and it sees my scanner but not my USB hub.
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ?

Post by hairybiker »

I said
I am using the full version from Sun.
I.e. the version that supports USB and RDP.
I had it running perfectly under Ubuntu 8.04 64 bit before I wiped the disk (keeping the home directory).
The only difference I can see is that difference under /etc/udev/rules.d/40-permissions.rules
User avatar
Fornhamfred
Level 6
Level 6
Posts: 1243
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox USB ?

Post by Fornhamfred »

Sorry my mistake.

I'm out of my depth here, have you tried putting a request on the virtualbox forum and the ubuntu forum?
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ?

Post by hairybiker »

Not yet since I have only just installed Mint I thought I would start here.
hairybiker
Level 4
Level 4
Posts: 204
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ? [SOLVED]

Post by hairybiker »

Fixed it by editing the /etc/udev/rules.d/40-permissions.rules
I replaced the

Code: Select all

# USB serial converters
SUBSYSTEM=="usb_device", GOTO="usb_serial_start"
with

Code: Select all

# USB serial converters
SUBSYSTEM=="usb_device", MODE=”0664″, GOTO="usb_serial_start"
And I can now see the usb devices.

Very strange...
Locked

Return to “Software & Applications”