linux 安装 不认usb,解决VirtualBox不识别USB的问题方法---正确安装VirtualBox

解决VirtualBox不识别USB的问题方法---正确安装VirtualBox

发布时间:2010-09-01 22:25:51来源:红联作者:longyun

[i=s] 本帖最后由 longyun 于 2010-9-4 08:18 编辑 [/i]

解决VirtualBox不识别USB的问题方法---正确安装VirtualBox

原文摘自:http://www.thelinuxdaily.com/2010/05/how-to-install-virtualbox-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/virtualbox/rpm/fedora/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更好地为您工作!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值