解决VirtualBox不识别USB的问题方法---正确安装VirtualBox
原文摘自:http://www.thelinuxdaily.com/201 ... x-3-2-on-fedora-13/
本人使用的是64位版的 Fedora 13 操作系统,但是由于一些操作离不开 IE 或 Windows ,所以我安装了VirtualBox,并在VirtualBox中虚拟了XP;前几天我准备在“XP”中使用网银,可是当我插上“U盾 或 网盾”后,发现VirtualBox识别不了,无法使用网银交易,故我开始在网上寻找解决之法;最后我找到了一个“老外”写的文章How To: Install VirtualBox 3.2 on Fedora 13,感觉好像是我安装的有问题,我在没有卸载原有VirtualBox的基础上,重新按照“老外”网友的文章安装了一遍VirtualBox,重启电脑,打开 VirtualBox一看,VirtualBox不能识别USB的问题解决了,现在我已经能在VirtualBox的虚拟机中进行网银操作了,故写出此文与大家分享!!!
第一步:下载,复制,编辑库文件(Download, Copy, and Edit Repository File)
下面这行命令能一次性执行下载,复制和编辑库文件的操作。
(This is a one-liner command that will download, copy, and edit the VirtualBox repository file at once)。
命令: su -c 'wget http://download.virtualbox.org/v ... ora/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo; sed -i "s,enabled=0,enabled=1,g" /etc/yum.repos.d/virtualbox.repo'
第二步: 升级库并安装VirtualBox-3.2.X(Update Repository and Install VirtualBox-3.2.X)
这条命令将VirtualBox的库文件安装到yum的库文件中,并分析依赖关系安装最新版的VirtualBox。
(This command will update yum repositories to include the new VirtualBox repository file we copied in the last step and then it will attempt to install VirtualBox-3.2 with dependencies)。
命令: su -c 'yum update; yum install -y VirtualBox-3.2 dkms gcc'
第三步: 运行VirtualBox 配置脚本(Run VirtualBox Setup Script)
执行这条命令将运行VirtualBox的驱动配置脚本。
(This command will run the VirtualBox driver setup script)。
命令: su -c '/etc/init.d/vboxdrv setup'
执行以上操作后,如果还有问题,建议你安装“kernel-PAE-devel” or “kernel-devel”再试试。
(If you’re having issues, try installing “kernel-PAE-devel” or “kernel-devel”)。
第四步: 设置VirtualBox的组成员(Setup Groups for VirtualBox Access)
将当前用户添加到VirtualBox组中,用当前用户名替换“username”,可以用“whoami”命令来查询当前用户名。
(This command will add you to the vboxusers group. Replace “username” with your actual username found by using the whoami command)。
命令: su -c 'usermod -G vboxusers -a username'
如果你发现SELinux提示有问题或错误,你可以执行以下命令将VirtualBox.so添加到例外中。
(If you find that you’re getting SELinux errors or denials, try adding VirtualBox.so as an exception with this command):
命令:su -c 'chcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so'
第五步: 运行VirtualBox(Run VirtualBox)
最后,运行VirtualBox并享受VirtualBox给您带来的无限乐趣吧。
(Finally, run VirtualBox and have fun with it)!
命令: VirtualBox
最后,根据您的硬件配置和实际需求来修改VirtualBox的配置方案,这样才能让VirtualBox更好地为您工作!
正确安装VirtualBox
最新推荐文章于 2023-07-05 00:03:42 发布