Chinaunix首页 | 论坛 | 博客
  • 博客访问: 89568
  • 博文数量: 14
  • 博客积分: 386
  • 博客等级: 一等列兵
  • 技术积分: 208
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-06 10:48
文章分类

全部博文(14)

文章存档

2011年(6)

2010年(8)

我的朋友

分类: LINUX

2011-01-10 20:00:15

Mounting a USB device inside a virtual machine is often a tool that you cannot go without. If you are using Virtualbox in Ubuntu however, you need to take a few extra steps to make it work.

Install Virtualbox

The first thing you need to do is install Virtualbox from Oracle’s website. It is different than Virtualbox OSE which is included in the Ubuntu repositories because the Virtualbox from Oracle includes proprietary software which allows you to mount USB devices inside you VM among other things. If you already have Virtualbox OSE installed from the Ubuntu repositories, uninstall it before installing the .deb file from Oracle’s website.

Note: Any VMs you made with Virtualbox OSE will still work with the standard version of Virtualbox. Uninstall Virtualbox OSE before installing virtualbox from Oracle.

Set up Your Virtual Machine

Install your virtual machine and once the installation is complete install the Virtualbox guest additions into the guest OS from the devices menu.

Turn the virtual machine off and go to the settings for the VM. Click on USB on the left and check the top two boxes in the window shown.

Along the right hand side there will be a few icons to set up USB filters. These filters are where you can tell Virtualbox what USB devices you want to have available to your guest OS. Plug in your USB device and click on the second icon to view available USB devices that can be mounted into the guest OS.

Select any devices you would like to mount in the guest OS and then close out of the settings window.

Set Up Your User Account

The next thing you need to do is add your user to the vboxusers group on your system. Navigate to the System -> Administration -> Users and Groups option and click on manage groups on the left side.

Scroll down in the group settings and highlight the vboxusers group and then click properties on the right.

In most cases you probably will only have one user so check the box to include your user in the group; put in your admin password when prompted, and then restart your computer.

Mount Your USB Device

Once your computer restarts, log in and start your virtual machine. In the devices menu of the VM, select the USB device you want to mount.

Your device should show up automatically in the VM and you can use it the same way you would be able to on the host operating system.

虽然是ubuntu,但是fedora 也应该可以的.

阅读(3172) | 评论(0) | 转发(0) |
0

上一篇:linux mtd flash driver

下一篇:proc文件系统

给主人留下些什么吧!~~