Hi Scott, maybe via libvirt hooks https://libvirt.org/hooks.html and also http://libvirt.org/formatdomain.html#elementsNICSEthernet but I guess with the ifup script you have to manually add the port to OVS etc
best regards, Edouard Le lun. 16 janv. 2017 à 18:17, Scott Lowe <[email protected]> a écrit : > On 01/16/2017 09:34 AM, Benoît wrote: > > Hi, > > > > I am using ovs with virsh for VM under KVM, but I would like to > > automatically start some commands when my VM is started (to start > > mirroring for example) is there a way to do it or should I use a > > workaround like a sh script ? > > > Don't consider this a definitive answer, but I believe that you'd have > to use a shell script. I checked the Libvirt network XML page > (<http://libvirt.org/formatnetwork.html>) but didn't see any Libvirt XML > definitions that would enable you to do this. > > If you do find a way to do it via Libvirt XML, please let me know. Thanks! > > -- > Scott > > _______________________________________________ > discuss mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss >
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
