Using USB devices in VMs under KVM fc11 or fc12

Bill Davidsen davidsen at tmr.com
Mon Dec 7 01:54:42 UTC 2009


Marko Vojinovic wrote:
> On Sunday 06 December 2009 16:11:11 Greg Woods wrote:
>> I'm guessing I could set up a VM that has a real IP address rather than
>> using NAT, but the GUIs don't generally support this and I haven't yet
>> learned how to create a VM or a virtual network from the command line.
>> If I did that I could possibly sync to a VM via wireless instead of USB,
>> but this is now wandering far from the original question.
> 
> In VirtualBox you set this up as follows:
> 
> * open VirtualBox
> * open the settings window for your VM
> * go to "network", open the appropriate "adapter" tab (typically the first 
> one)
> * set the "attached to" setting to "bridged adapter"
> * click "OK"
> 
> This sets up bridged networking for your VM --- it will behave on equal 
> footing as the host OS itself, ie. it will request an IP from your router's 
> dhcp (or whatever your host OS uses to set itself up). Depending on your ISP 
> and local network setup, it should have a real IP as much as your host does, 
> and will be visible from any other machine on your LAN.
> 
> I don't remember how to do it under KVM/QEMU and VMWare, but it should also 
> amount of choosing "bridged" networking somewhere in some settings.
> 
You can do it from cli using kvm. I'm writing this on a VM with most definitely 
it's own IP, etc. Started from cli, I was doing KVM before libvirt and friends 
and haven't converted.

-- 
Bill Davidsen <davidsen at tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot




More information about the fedora-list mailing list