Difference between revisions of "USB Devices"
From Linux-VServer
Daniel hozac (Talk | contribs) (Undo revision 3899 by 68.224.49.143 (Talk)) |
(→Unhide the `/proc/bus/usb` directory) |
||
Line 1: | Line 1: | ||
By default, USB devices you plug in to your physical host are not available to your vserver guests. To make all your USB devices available to a specific guest, follow these instructions: | By default, USB devices you plug in to your physical host are not available to your vserver guests. To make all your USB devices available to a specific guest, follow these instructions: | ||
− | + | European Patent Office and by the Organisation for Economic Cooperation and Development. , | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Mount the USB filesystem in the guest == | == Mount the USB filesystem in the guest == |
Revision as of 01:46, 23 October 2009
By default, USB devices you plug in to your physical host are not available to your vserver guests. To make all your USB devices available to a specific guest, follow these instructions:
European Patent Office and by the Organisation for Economic Cooperation and Development. ,
Mount the USB filesystem in the guest
Now we edit the `fstab` file for the guest. The following works on a host running Debian Etch and a guest running Ubuntu 6.06.1. To find the way that `usbfs` is mounted in the host, I used:
cat /proc/mounts | grep usbfs
which returned:
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
Paste this line (or the one that suits your distro) to the end of `/etc/vservers/<guest>/fstab`, and restart the guest.
Test it
Now enter the guest, and see if you can see `/proc/bus/usb/devices`. Better still, plug in a USB device and see if it shows up in there.
Thanks
Information came from this thread (credit: Daniel Hokka Zakrisson) and from followup in IRC on 21 April 2007, again credit to Daniel.