为virtualbox开启usb设备支持

Kvm、VMware、Virtualbox、Xen、Qemu 等
kuailegeini
帖子: 7
注册时间: 2009-08-16 20:24

Re: 为virtualbox开启usb设备支持

#16

帖子 kuailegeini » 2009-10-09 21:59

VirtualBox Command Line Management Interface Version 3.0.8
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Host USB Devices:

UUID: 4862a963-99b0-42a5-8f90-ae0e391a69f3
VendorId: 0x0951 (0951)
ProductId: 0x160b (160B)
Revision: 1.0 (0100)
Manufacturer: Kingston
Product: DataTraveler 2.0
SerialNumber: 0910031956270
Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4//device:/dev/bus/usb/001/004
Current State: Unavailable



该怎么办
kuailegeini
帖子: 7
注册时间: 2009-08-16 20:24

Re: 为virtualbox开启usb设备支持

#17

帖子 kuailegeini » 2009-10-09 22:12

yuanheng@yuanheng-desktop:~$ sudo groupadd usbfs
groupadd:usbfs 组已存在
yuanheng@yuanheng-desktop:~$ sudo adduser yuanheng usbfs
用户“yuanheng”已经属于 usbfs 组。
yuanheng@yuanheng-desktop:~$ cat /etc/group | grep usbfs
usbfs:x:1001:yuanheng
yuanheng@yuanheng-desktop:~$ sudo gedit /etc/fstab
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7

GTK Panel of SCIM 1.4.7

GTK Panel of SCIM 1.4.7

yuanheng@yuanheng-desktop:~$ sudo chmod 777 /proc/bus/usb
yuanheng@yuanheng-desktop:~$ sudo chown yuanheng /proc/bus/usb
yuanheng@yuanheng-desktop:~$
yuanheng@yuanheng-desktop:~$
yuanheng@yuanheng-desktop:~$
yuanheng@yuanheng-desktop:~$ VBoxManage list usbhost
VirtualBox Command Line Management Interface Version 3.0.8
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Host USB Devices:

UUID: fec2f151-7c14-4a56-990d-3e9d77127362
VendorId: 0x0951 (0951)
ProductId: 0x160b (160B)
Revision: 1.0 (0100)
Manufacturer: Kingston
Product: DataTraveler 2.0
SerialNumber: 0910031956270
Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4//device:/dev/bus/usb/001/004
Current State: Unavailable

yuanheng@yuanheng-desktop:~$



# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=a65bffbf-ea05-4342-a15e-d121b294563f / ext3 relatime,errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=503b82db-e968-408b-8c31-9772dba65bf1 /boot ext3 relatime 0 2
# /home was on /dev/sda6 during installation
UUID=1a59e830-fb77-4b98-abba-75bd3f14913e /home ext3 relatime 0 2
# swap was on /dev/sda2 during installation
UUID=a0e733e9-b824-4cde-b593-564269de934b none swap sw 0 0

none /proc/bus/usb usbfs devgid=1001,devmode=664 0 0


在虚拟机里面显示灰色
头像
devin
帖子: 189
注册时间: 2008-08-26 22:57
来自: 长沙

Re: 为virtualbox开启usb设备支持

#18

帖子 devin » 2009-10-10 7:30

3.0.8的新问题,要加个环境变量,见:

viewtopic.php?f=65&t=93405
i7 2630QM+ 4G ram + 500g hd + arch
11.04装新机器上死机,只好换arch了
ineverstop
帖子: 22
注册时间: 2009-08-20 0:19

Re: 为virtualbox开启usb设备支持

#19

帖子 ineverstop » 2009-10-18 0:53

viewtopic.php?f=65&t=143142
[分享]关于VirtualBox版本与USB问题的重要补充!!!!!
帖子发表于 : 2008-08-16 13:43
1 楼 linuxdev
注册: 2008-08-06 23:28
帖子: 2
看了N篇网文,做了N次尝试, 做了多次重启... VirtualBox 就是死活不认USB设备,virtualbox的界面上连USB图标的影子都没看见,都快绝望了,无意中google 到了一篇帖子,终于恍然大悟,原来是virtualbox的版本问题,归纳如下:

首先确认你装的virtualbox版本不是开源版本(ose版):
从新立得里安装的virtualbox-ose版本,该版本安装之后在启动菜单中显示为"Virtualbox-OSE",此ose版本不支持USB

要使用USB,必须装上virtualbox的闭源版本http://www.virtualbox.org/wiki/Downloads
若仍不能使用USB, 自己google 一下

参考:http://fwolfcn.blogspot.com/2008/03/virtualboxusb.html
ineverstop
帖子: 22
注册时间: 2009-08-20 0:19

Re: 为virtualbox开启usb设备支持

#20

帖子 ineverstop » 2009-10-18 0:56

Xmoney

添加到筛选器列表后咋办?
USB分配菜单里已显示出各USB设备但都是灰色的。
怎么访问USB中的文件呢?
ineverstop
帖子: 22
注册时间: 2009-08-20 0:19

Re: 为virtualbox开启usb设备支持

#21

帖子 ineverstop » 2009-10-18 1:34

终于成功了
插入一个USB设备后,如U盘,右键点击虚拟机里右下脚的USB图标,选择已经识别的U盘,就可以正常使用了。
注意:(1)在客户机里使用USB设备前要先在主机里卸载。 (2)完成后重启系统
wjjs
帖子: 145
注册时间: 2007-07-08 19:21

Re: 为virtualbox开启usb设备支持

#22

帖子 wjjs » 2009-10-30 12:04

wxbl334 写了:点击“系统”--“系统管理”--“用户和组”--“管理组”--选中“vboxusers”,点“属性”,将root及你的用户名选中,就可以了使用USB了。

在VBOX里不能用USB,只是个权限的小问题。
:em01
头像
yudun1989
帖子: 75
注册时间: 2009-10-16 11:02
来自: &address
联系:

Re: 为virtualbox开启usb设备支持

#23

帖子 yudun1989 » 2009-10-31 13:09

权限问题。学习了。 :em05
hello ubuntu
头像
chenmingbao
帖子: 141
注册时间: 2009-11-06 11:24
联系:

Re: 为virtualbox开启usb设备支持

#24

帖子 chenmingbao » 2009-11-07 21:33

只要使用vi编辑器。 修改 /etc/group 这个文件。 在vboxuser最后面。加入你的当前用户名。再重启就行了。
头像
GQ-huihuang
帖子: 121
注册时间: 2009-03-05 16:35
来自: 浙江嘉兴海宁

Re: 为virtualbox开启usb设备支持

#25

帖子 GQ-huihuang » 2009-11-19 23:30

VirtualBox Command Line Management Interface Version 3.0.8_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

ERROR: Method GetUSBDevices is not implemented
Details: code NS_ERROR_NOT_IMPLEMENTED (0x80004001), component Host, interface IHost, callee nsISupports
Context: "COMGETTER(USBDevices)(ComSafeArrayAsOutParam(CollPtr))" at line 599 of file VBoxManageList.cpp
我的怎么是这样的
努力探索 决不放弃
头像
不死夜猫
帖子: 378
注册时间: 2009-06-13 18:49
来自: 山水甲天下的地方

Re: 为virtualbox开启usb设备支持

#26

帖子 不死夜猫 » 2009-11-27 23:25

14楼的正解,我的就是装了能认出usb设备,就是选不了,是灰的。折腾了好久,后来发现有个vboxusers用户组,加了自己的用户名进去,注销一次系统,然后启动vbox就搞定了。 :em05
 Hello ,GNU/Linux~!
  册》 
       ,__,
       (oo)____
       (__)____)\
         || || *
头像
tb.china
帖子: 43
注册时间: 2009-11-23 1:06

Re: 为virtualbox开启usb设备支持

#27

帖子 tb.china » 2009-11-29 11:49

wxbl334 写了:点击“系统”--“系统管理”--“用户和组”--“管理组”--选中“vboxusers”,点“属性”,将root及你的用户名选中,就可以了使用USB了。

在VBOX里不能用USB,只是个权限的小问题。
怎么在我的系统~~~“管理组”--中没有"vboxusers"组啊?
头像
GQ-huihuang
帖子: 121
注册时间: 2009-03-05 16:35
来自: 浙江嘉兴海宁

Re: 为virtualbox开启usb设备支持

#28

帖子 GQ-huihuang » 2009-11-30 14:57

不死夜猫 写了:14楼的正解,我的就是装了能认出usb设备,就是选不了,是灰的。折腾了好久,后来发现有个vboxusers用户组,加了自己的用户名进去,注销一次系统,然后启动vbox就搞定了。 :em05
我的问题就不同了 也没有vboxusers用户组
最后还是直接装了官方版的 所有问题都解决
努力探索 决不放弃
头像
wan.l
帖子: 266
注册时间: 2009-12-02 18:00
来自: GUBS

Re: 为virtualbox开启usb设备支持

#29

帖子 wan.l » 2009-12-08 11:26

支持一个~~
仙境,not so far away
lisheng
帖子: 80
注册时间: 2005-10-27 23:16

Re: 为virtualbox开启usb设备支持

#30

帖子 lisheng » 2010-05-19 20:50

14楼正解。
回复