Linux Deepin11.12虚拟机不识别USB设备(已解决)
Tofloor
poster avatar
tiankuan913588
deepin
2012-01-18 05:21
Author
以前在LD 11.06.1下,虚拟机Virtualbox是无权限读取USB设备的信息,可以把系统设置中的用户与组选项把Virtualbox改到当前用户的组下,但是11.12的系统设置中,根本没有改项,使虚拟机下根本不能使用U盘,这是怎么回事?
解决方法见9楼
Reply Favorite View the author
All Replies
janpylx
deepin
2012-01-18 16:26
#1
你安装USB的那个拓展包了么?可以看看这儿~~~https://www.virtualbox.org/wiki/Downloads
VirtualBox 4.1.8 Oracle VM VirtualBox Extension Pack All platforms
Support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards. See this chapter from the User Manual for an introduction to this Extension Pack. The Extension Pack binaries are released under the VirtualBox Personal Use and Evaluation License (PUEL).
Please install the extension pack with the same version as your installed version of VirtualBox! If you are using VirtualBox 4.0.16, please download the extension pack here.
Reply View the author
tiankuan913588
deepin
2012-01-20 05:20
#2
你安装USB的那个拓展包了么?可以看看这儿~~~https://www.virtualbox.org/wiki/Downloads
VirtualBox 4.1.8 Oracle VM VirtualBox Extension Pack All platforms
Support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards. See this chapter from the User Manual for an introduction to this Extension Pack. The Extension Pack binaries are released under the VirtualBox Personal Use and Evaluation License (PUEL).
Please install the extension pack with the same version as your installed version of VirtualBox! If you are using VirtualBox 4.0.16, please download the extension pack here.

是提示了如 11.06.1时的那个提示
返回 代码:
NS_ERROR_FAILURE (0x00004005)
组件:
Host
界面:
IHost {dab4a2b8-c735-4f08-94fc-9bec84182e2f}
被召者:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}
,但是系统仍然不让虚拟机读取U盘,另外LD11.12安装的虚拟机的版本不是4.1.8,而是4.1.2,
现在虚拟机启动后,小工具栏中的USB选项仍为灰色,虚拟机根本不可能识别USB设备。
参考http://forum.ubuntu.org.cn/viewtopic.php?f=65&t=133443后,开机要按S键才能进操作界面。
Reply View the author
tiankuan913588
deepin
2012-01-24 21:26
#3
这个貌似是上游Bug!
Reply View the author
s.******[email protected]
deepin
2012-01-24 21:42
#4
以前在LD 11.06.1下,虚拟机Virtualbox是无权限读取USB设备的信息,可以把系统设置中的用户与组选项把Virtualbox改到当前用户的组下,但是11.12的系统设置中,根本没有改项,使虚拟机下根本不能使用U盘,这是怎么回事?
  1. sudo usermod -G vboxusers 你的用户名
Copy the Code
Reply View the author
tiankuan913588
deepin
2012-01-24 22:03
#5
转自:
http://forum.ubuntu.org.cn/viewtopic.ph ... 3&start=60
5,USB设备有问题:
让GUEST识别USB设备
最简单的办法如下:
$ sudo gedit /etc/fstab

在末尾加上
# the USB group
# 对所有用户开放USB设备的读写权限
none /proc/bus/usb usbfs devmode=666 0 0


然后就可以使用的USB设备了。

但是把USB设备的读写权限开放给所有用户的方式在一些情况下不太安全,更为稳妥的做法是:

增加用户组usbfs
$ sudo groupadd usbfs

查看usbfs用户组的gid
$ cat /etc/group | grep usbfs

usbfs:1002:


把当前用户增加到usbfs组
$ sudo gedit /etc/group
把 usbfs:1002:
修改为 usbfs:1002:joson

为USB设备重新设置权限,编辑/etc/fstab文件,添加下面两行,注意你的gid可能不是1002
$ sudo gedit /etc/fstab
在末尾加上
# 1002 is the USB group IDI
none /proc/bus/usb usbfs devgid=1002,devmode=774 0 0

重新启动后,应该就可以在客户机中使用USB设备了。
将joson改成你的当前用户名?
注意:该办法会启动时因 /proc/bus 下没有USB目录需按s键
实际上这个方法在Ubuntu 11.10是不行的!
Reply View the author
tiankuan913588
deepin
2012-01-24 22:55
#6
另外安装增强功能时出现下面的提示:
http://dlc.sun.com.edgesuite.net/virtua ... Ubuntu.iso.下载增强功能包失败
Error downloading http://dlc.sun.com.edgesuite.net/virtua ... Ubuntu.iso - server replied: Not Found

可以从virtualbox的镜像站下载VBoxGuestAdditions_4.1.2_Ubuntu.iso,这个问题产生的原因是甲骨文收购SUN,但是virtualbox的一些网站没有转到甲骨文下。
VBoxGuestAdditions需从软件中心或新立得安装。
Reply View the author
kimhong
deepin
2012-01-26 07:19
#7
我的主机换上了Ubuntu11.10。用qemu-kvm, 和libvirt-bin,装了五个VM,感觉很爽。
有以下一些体验,分享:
1. 在XP(32bit)的客户机上可以有声音,但在Win7下只有简单的声音可以。我去掉了apparmor。有知道如何配置apparmor的朋友,请在有空的时候跟大家分享。以上是使用的VNC连接。
2. USB Webcam还不工作。
3. USB Key 在Win7x64上没问题。

还没有在LD中试用qemu-kvm/libvirt-bin。 ;)
Reply View the author
tiankuan913588
deepin
2012-01-27 06:37
#8
该故障在LinuxDeepin 11.12 与Ubuntu 11.10相同,如下图
Reply View the author
tiankuan913588
deepin
2012-01-29 04:45
#9
先安装二楼提到的那个增强包
然后在终端中
先使用
sudo apt-get install gnome-system-tools
后使用
users-admin
之后与LD 11.06.1相同

这个是因为inux Deepin11.12使用Gnome 3,把用户与组改掉了,而且 /proc/bus下没有USB
目录,而且Virualbox本来不支持USB
在Ubuntu论坛转了很久才解决。
Reply View the author
tiankuan913588
deepin
2012-03-21 06:18
#10
先安装二楼提到的那个增强包
然后在终端中
先使用
sudo apt-get install gnome-system-tools
后使用
users-admin
之后与LD 11.06.1相同

这个属于上游Bug,因为Ubuntu 11.10把用户与组去掉了,而且 /proc/bus下没有USB
目录,而且Virualbox本来不支持USB
在Ubuntu论坛转了很久才解决。
补充一下,安装完后在“开始菜单”那里会出现名为“用户与组”项,用途与Gnome 2.38.xx一样。
Reply View the author
1710193542
deepin
2013-05-02 05:30
#11
没看明白啊
Reply View the author