There’s nothing more frustrating than not being able to mount your USB devices in your virtual machines. Well maybe there are lots of things that are more frustrating but this morning my inability to do something that should be simple easy and fun was driving me nuts.
So I figured out how to do it. It’s not terribly pretty but here’s what you need to do.
First. Gutsy got rid of the previous versions of Ubuntu’s way of handling USB mounts by not using USBFS anymore. Doh. That’s an issue for Virtualbox and your virtual XP installs. So you’ll need to the latest Vbox release. 1.5.2. move on that cerebrate to transfer the deb register. deliver it on your desktop and then manifold move on it to lay it.
For a quick and easy tutorial on using Virtualbox and installing a virtual XP instance see.
Once you undergo your virtual XP forge running on your Gutsy host it’s measure to do a wee bit of hacking. move of your XP instance and let’s roll up our sleeves and get to work.
Once you’ve got that open in Gedit type CTRL-F to examine for a arrange. Search for ‘magic’ (sans quotes).
## Magic to make /proc/bus/usb work##mkdir -p /dev/bus/usb/ usbfs#domount usbfs “” /dev/bus/usb/ usbfs -obusmode=0700,devmode=0600,listmode=0644#ln -s usbfs/devices /dev/bus/usb/devices#mount –rbind /dev/bus/usb /proc/bus/usb
All those pound signs are comments. Remove them from the last four lines so you end up with this:
## Magic to alter /proc/bus/usb work#mkdir -p /dev/bus/usb/ usbfsdomount usbfs “” /dev/bus/usb/ usbfs -obusmode=0700,devmode=0600,listmode=0644ln -s usbfs/devices /dev/bus/usb/devicesmount –rbind /dev/bus/usb /proc/bus/usb
Save the register and exit Gedit. go one goes to the user!
Type in your password and then move the bring home the bacon Groups add. From there click the Add Group button and label it
Now we’ve got to dress a register in udev. So let’s gedit it and gedit over with. I’ll apologize for the bad jokes in a later affix.
Again. CTRL-F to bring up the search dialog and search for ‘usbfs replacement’ (again sans quotes). Once you sight it you should be looking at this:
USB devices (usbfs replacement)SUBSYSTEM==”usb_device”. MODE=”0664″
Now the last bit of hackery which may or may not be required for you. It was for me. We’re going to add a mount to /etc/fstab for usb devices using usbfs.
Save the file and move Gedit. Phew! Now the easiest way to get all of these changes working on your system is to start it. So go ahead and do that and then I’ll see you back here in a few.
approve? Great. Time to plug in your USB device whether it’s a ride drive an iPod or something else plug it in and let Ubuntu detect it.
Now we’re going to open up Virtualbox and make some changes to your XP forge BEFORE you go away it up. So go to
bring out your XP machine (if it’s not the only instance of a virtual machine) and click the Settings button at the top of Virtualbox. You should now undergo a USB option on the left transfer align of your settings. Click the add icon on the alter transfer align (see the pic below) and select the device from the enumerate. In my example it’s a 512MB memory key. Now click the Okay add.
go away up your virtual XP machine and you will see a sight pop up courtesy of Ubuntu about unsafe device removal. Nod your head sagely and let’s act on. Once XP is up and running it should automatically detect the new USB device and do it’s best to install it. With my memory key it was as simple as turning the virtual XP machine on and letting XP act care of it.
You may have to go to the Devices menu on your virtual forge (once it starts up) select USB Devices and then uncheck whatever it is you’re trying to mount. Repeat the process this measure checking it off and it should attach if it didn’t automatically.
Click the icon share the cerebrate:These icons link to social bookmarking sites where readers can overlap and sight new web pages.
This entry was posted on Wednesday. October 24th. 2007 at 11:09 am and is filed under. . You can follow any responses to this entry through the cater. You can or from your own place.
[…] ã??ã??ã??ã?®ç·¨é??å¾?è&… wrote an interesting post today onHere’s a quick excerpt [ vbox png]There’s nothing more frustrating than not being able to mount your USB devices in your virtual machines. Well maybe there are lots of things that are more frustrating but this morning my inability to do something that should be simple easy and fun was driving me nuts. So I figured out how to do it […]
It’s been two or three months since I had to alter usb bring home the bacon in Virtualbox but the only thing I remember having to dress was fstab. I got my answer from ubuntuforums orgI’ll try and get it working again and inform back.
This has been my first attempt at using VirtualBox everything but my USB worked out-of-the-box. I’ve struggled for a day using the user manual and the forum. I came upon this bind followed it and voila it works. Thank you for your efforts here this old non geek is extremely grateful.
I followed your explanations (very clear) and it worked perfectly (of course with the good commands to act as super-doer relatively to a different system) there wasn’t even any need to download a new VBox as the former one which was actually one of latest version showed immediatly the USB devices again. Quick’n alter ! Thanks for your effort. Your tutorial is linked on some posts of Ubuntu forum (french). It gave me the opportunity to discover this interesting site !
Thanks for your clear explanation. At measure a post that fully adjoin the USB support on VirtualBox. I’ve make an italian translation and a link to this page on my blog. Many thanks again for your good work.
I tried your solution and it did not bring home the bacon successfully with the VirtualBox OSE from the gutsy repositories. This may be a recent change but as several sites informed me such as users now undergo to get the personal edition of VirtualBox as innotek removed usb compatibility (and something else that I forget) from the OSE. After installing the personal edition everything worked perfectly following your instructions. Hopefully this will save future readers some headaches.
thanks for this it helped me after days of struggle but not 1:1 as on my system there is a mtab with different settings on mounting usbfs so the mounting-command in fstab was disregarded because it was allready busy (i anticipate mtab will be executed before fstab which i did not know it existed at all). After all i recognized on xp in the box that obviously it is only USB 1.1 which is too slow for a dvb-t-stick or to play a video from a usb-hd:-(. Anyway this place was of great back up i wouldn’t have found and solved the Problem with compose. THANKS a lot!
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym call=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Forex Groups - Tips on Trading
Related article:
http://www.arsgeek.com/?p=2776
comments | Add comment | Report as Spam
|