[libvirt] [PATCH] lxc: support <interface type='ethernet'>

Vasiliy Tolstov v.tolstov at selfip.ru
Wed May 25 21:01:06 UTC 2016


2016-05-25 21:51 GMT+03:00 Laine Stump <laine at laine.org>:
> How does it gather than config? With a qemu hook script?


No, libvirit send event when domain starts, i catch it and get domain
xml from libvirt via binding. Parse xml element with address and
answer to dhcp queries from vm.
Also i use this method because libvirt now does not have ability to
use netfilter with ethernet devices (i have hand-made patch to remove
physdev from default iptables rules, but this is ugly hack).

-- 
Vasiliy Tolstov,
e-mail: v.tolstov at yoctocloud.net




More information about the libvir-list mailing list