Hi All,<br><br>To follow up, I've made good progress actually getting a USB wifi stick to work with a VirtualBox guest.  Whether this works or not appears to be dependent on both your OS and the brand/model of USB wifi adapter.<br>


<br>Thus far, I've verified this works.  Or at least that the guest VM correctly identifies the USB wifi and loads a driver for it:<br><br>VBox host: Ubuntu v11.10 on 32bit x86<br>VBox version v4.2.4 r81684 (downloaded from <a href="http://virtualbox.org" target="_blank">virtualbox.org</a>)<br>


VBox extension pack v4.2.4 r81684<br>Cisco/Linksys WUSB54GC v3 (aka Ralink rt2870)<br>... with VBox guest Ubuntu v12.10<br>... with VBox guest Windows XP<br><i>... with VBox guest Commotion OpenWRT</i> (using rt2800usb kernel model)<br>


<br>On the other hand, my SMCWUSB-N2 (Atheros AR9170 chip) USB adapter does not work with the VirtualBox USB gateway, regardless of guest OS, which appears to be specific to this adapter.<br><br>Beside Dan's suggestion of AWUS036NEH and TP-Link TL-WN821N, this URL seems to suggest the TP-Link USB sticks (which are Atheros based) do work for guests under VirtualBox.  So I'm a gonna get me a couple.<br>
<a href="http://top-hat-sec.com/forum/index.php?topic=960.0">http://top-hat-sec.com/forum/index.php?topic=960.0</a><br><br>Finally, the meshconfig tool doesn't support USB wifu adapters, unsurprisingly, but I am assuming that modifying it to support such would be less effort-intensive that modifying mac80211_hwsim.<br>

<br>This should hopefully streamline Commotion testing dramatically, since it would permit a VM node to mesh directly with physical nodes.<br><br><div class="gmail_quote">
On Tue, Dec 11, 2012 at 4:36 PM, Ben West <span dir="ltr"><<a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi All,<br><br>Part of the envisioned testing procedure Commotion involves simulating multiple nodes (OpenWRT or otherwise) bound together via a virtual mesh under one VirtualBox host.  Although the mac80211_hwsim library does show some promise for simulating wireless networks, that library as-is does not support a single (virtual) radio broadcasting both the adhoc mesh and the APs.  I instead had been instantiated multiple virtual radios for each (B)SSID and bridging that radio with a virtual wired interface.<br>



<br>This works, but the Commotion auto-configuration tool doesn't support it, requiring manual configuration of the nodes, which ultimately reduces the usefulness of the test procedure.<br><br>Other the other hand, VirtualBox is claimed to support connecting USB peripherals directly to VMs, which opens up the possibility of connecting USB wifi adapters, i.e. physical radios, to virtual nodes.  I.e. multiple USB wifi adapters hanging off extension cables plugged into a hub, with each radio turned down to minimum tx power.<br>



<br>Does anyone on the list happen to have good experience with a particular brand/model inexpensive USB wifi stick based on Atheros AR72xx?  I happen to have a single such stick sitting around, brand SMC, but I thus far found the carl9170 driver that Ubuntu selects for that device kinda crappy.<span><font color="#888888"><br clear="all">



<br>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br><a href="tel:314-246-9434" value="+13142469434" target="_blank">314-246-9434</a><br>


</div><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Ben West<div><a href="http://gowasabi.net" target="_blank">http://gowasabi.net</a><br><a href="mailto:ben@gowasabi.net" target="_blank">ben@gowasabi.net</a><br>
314-246-9434<br></div><br>