... <devices> <interface type='ethernet'/> ... <interface type='ethernet'> <target dev='vnet7'/> <script path='/etc/qemu-ifup-mynet'/> </interface> </devices> ...
On Thu, Aug 08, 2013 at 08:55:27PM -0600, Joshua McKee wrote:Ok, that's slightly different. The traditional integration with Linux
> Hi,
>
> I hope this is the right place to ask this question. I was wondering if
> there is a way to set up a KVM VM using an XML document as input into Virsh
> that uses bridged networking over a wireless card.
>
> I understand that wireless cards to not natively support, but I was able to
> find a working solution here:
> http://blog.ericwhite.ca/articles/2011/04/creating-a-wireless-bridge/.
bridge devices is doing ethernet layer bridging - so all protocols
like IPv4, IPv6, etc, etc will "just work".
What that blog describes is protocol layer bridging, which with those
instructions only works for IPv4.
Libvirt doesn't have any explicit support for the latter. Though we have
thought about implementing it in the virtual network APIs, we've never
got around to it.
You might be able to get it working using the generic ethernet config
> The issue is, I can use this bridge by calling KVM directly. However, I
> cannot figure out how to get this same configuration on an XML file that I
> input into Virsh for the creation of a VM.
>
> My understanding is that libvirt calls KVM/QEMU at some point, but I may be
> mistaken.
http://libvirt.org/formatdomain.html#elementsNICSEthernet
That setup you specify a pre-created TAP device for the VM to use.
Of course it is upto you todo the manal config steps described in
that blog, so is more tedious from an admin pov.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|