<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rajaseelan.com &#187; usb</title>
	<atom:link href="http://rajaseelan.com/tag/usb/feed/" rel="self" type="application/rss+xml" />
	<link>http://rajaseelan.com</link>
	<description>junk food for the brain ...</description>
	<lastBuildDate>Tue, 28 Jul 2009 16:37:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to enable USB Devices for VirtualBox Guests in Fedora 11</title>
		<link>http://rajaseelan.com/2009/07/06/how-to-enable-usb-devices-for-virtualbox-guests-in-fedora-11/</link>
		<comments>http://rajaseelan.com/2009/07/06/how-to-enable-usb-devices-for-virtualbox-guests-in-fedora-11/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 17:44:06 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 11]]></category>
		<category><![CDATA[linux liferea howto]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=160</guid>
		<description><![CDATA[By default, guest hosts running in VirtualBox on Fedora 11 cannot mount or see usb devices plugged into your machine. A few tweaks are necessary for USB support to work.

Edit your /etc/rc.sysinit file, change line no 26 from


mount -n -t usbfs /proc/bus/usb /proc/bus/usb


to


mount -t usbfs -o remount,devgid=$(awk -F: '/^vboxusers:/{print $3}' /etc/gr    oup),devmode=664 [...]]]></description>
			<content:encoded><![CDATA[<p>By default, guest hosts running in VirtualBox on Fedora 11 cannot mount or see usb devices plugged into your machine. A few tweaks are necessary for USB support to work.</p>
<ol>
<li>Edit your /etc/rc.sysinit file, change line no 26 from
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">mount -n -t usbfs /proc/bus/usb /proc/bus/usb</pre>
</div>
</div>
<p>to</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">mount -t usbfs -o remount,devgid=$(awk -F: '/^vboxusers:/{print $3}' /etc/gr    oup),devmode=664 /proc/bus/usb /proc/bus/usb</pre>
</div>
</div>
<p>So, your <code>/etc/rc.sysinit</code> should change from:</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"> <span style="color: #000000;">23</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
 <span style="color: #000000;">24</span>         modprobe usbcore <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-t</span> usbfs <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb     <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb
 <span style="color: #000000;">25</span> <span style="color: #000000; font-weight: bold;">else</span>
 <span style="color: #000000;">26</span>        <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-t</span> usbfs <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb
 <span style="color: #000000;">27</span> <span style="color: #000000; font-weight: bold;">fi</span></pre>
</div>
</div>
<p>to</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"> <span style="color: #000000;">24</span>         modprobe usbcore <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-t</span> usbfs <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb     <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb
 <span style="color: #000000;">25</span> <span style="color: #000000; font-weight: bold;">else</span>
 <span style="color: #000000;">26</span> <span style="color: #666666; font-style: italic;">#       mount -n -t usbfs /proc/bus/usb /proc/bus/usb</span>
 <span style="color: #000000;">27</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> usbfs <span style="color: #660033;">-o</span> remount,<span style="color: #007800;">devgid</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">awk</span> -F: <span style="color: #ff0000;">'/^vboxusers:/{print $3}'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>gr    oup<span style="color: #7a0874; font-weight: bold;">&#41;</span>,<span style="color: #007800;">devmode</span>=<span style="color: #000000;">664</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb
 <span style="color: #000000;">28</span> <span style="color: #000000; font-weight: bold;">fi</span></pre>
</div>
</div>
</li>
<li>Next, edit your <code>/etc/udev/rules.d/10-vboxdrv.rules</code>. Change line number 1 from
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">KERNEL==&quot;vboxdrv&quot;, NAME=&quot;vboxdrv&quot;, OWNER=&quot;root&quot;, GROUP=&quot;root&quot;, MODE=&quot;0600&quot;</pre>
</div>
</div>
<p>to</p>
<div class="wp_syntax">
<div class="code">
<pre class="text" style="font-family:monospace;">KERNEL==&quot;vboxdrv&quot;, NAME=&quot;vboxdrv&quot;, OWNER=&quot;root&quot;, GROUP=&quot;root&quot;, MODE=&quot;0660&quot;</pre>
</div>
</div>
</li>
<li>Reboot your machine. You should now be able to mount you usb devices.</li>
</ol>
<p>The following screenshot shows some of the USB devices can allow my guest machine to view.</p>
<div id="attachment_164" class="wp-caption aligncenter" style="width: 310px"><img src="http://rajaseelan.com/wp-content/uploads/2009/07/virtualbox-usb-opt-300x187.jpg" alt="The USB devices available for VirtualBox Guests" title="virtualbox-usb-opt" width="300" height="187" class="size-medium wp-image-164" />
<p class="wp-caption-text">The USB devices available for VirtualBox Guests</p>
</div>
<p>Devices like my USB Flash Drive are still blurred out. In order to get them to work, I need to install the VirtualBox Guest Additions first.</p>
<p>Source:</p>
<p><a href="http://forums.virtualbox.org/viewtopic.php?f=7&#038;t=18759#p81148">VirtualBox Community Forum</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2009/07/06/how-to-enable-usb-devices-for-virtualbox-guests-in-fedora-11/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
