Virtualbox USB ? [SOLVED]

Questions about applications and software
Forum rules
Before you post please read how to get help

Virtualbox USB ? [SOLVED]

Postby hairybiker on Sun Nov 09, 2008 11:15 am

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 hairybiker on Fri Nov 14, 2008 1:22 pm, edited 1 time in total.
hairybiker
Level 3
Level 3
 
Posts: 161
Joined: Mon Nov 03, 2008 12:16 pm

Linux Mint is funded by ads and donations.
 

Re: Virtualbox USB ?

Postby Fornhamfred on Sun Nov 09, 2008 1:27 pm

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.
Fornhamfred
Level 6
Level 6
 
Posts: 1134
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox USB ?

Postby PuterT on Sun Nov 09, 2008 3:18 pm

I have usb working on a vista guest, on mint 5 amd64 host following this http://paulsiu.wordpress.com/2007/11/20/tips-on-running-innotek-virtualbox/
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
PuterT
Level 1
Level 1
 
Posts: 2
Joined: Fri Jan 18, 2008 9:45 am

Re: Virtualbox USB ?

Postby Guest on Mon Nov 10, 2008 5:26 am

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 ?

Postby Guest on Mon Nov 10, 2008 5:36 am

PuterT wrote:I have usb working on a vista guest, on mint 5 amd64 host following this http://paulsiu.wordpress.com/2007/11/20/tips-on-running-innotek-virtualbox/
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?
Guest
 

Re: Virtualbox USB ?

Postby hairybiker on Mon Nov 10, 2008 5:42 am

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 3
Level 3
 
Posts: 161
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ?

Postby hairybiker on Wed Nov 12, 2008 3:18 pm

Nobody have any solutions?
hairybiker
Level 3
Level 3
 
Posts: 161
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ?

Postby Fornhamfred on Wed Nov 12, 2008 3:35 pm

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.
Fornhamfred
Level 6
Level 6
 
Posts: 1134
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox USB ?

Postby hairybiker on Thu Nov 13, 2008 6:36 am

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
hairybiker
Level 3
Level 3
 
Posts: 161
Joined: Mon Nov 03, 2008 12:16 pm

Re: Virtualbox USB ?

Postby Fornhamfred on Thu Nov 13, 2008 2:17 pm

Sorry my mistake.

I'm out of my depth here, have you tried putting a request on the virtualbox forum and the ubuntu forum?
Fornhamfred
Level 6
Level 6
 
Posts: 1134
Joined: Wed Oct 31, 2007 3:38 pm
Location: Suffolk UK

Re: Virtualbox USB ?

Postby hairybiker on Fri Nov 14, 2008 6:24 am

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

Re: Virtualbox USB ? [SOLVED]

Postby hairybiker on Fri Nov 14, 2008 1:10 pm

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...
hairybiker
Level 3
Level 3
 
Posts: 161
Joined: Mon Nov 03, 2008 12:16 pm

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 21 guests