On Sun, Aug 14, 2016 at 1:52 PM, Yaniv Dary <ydary(a)redhat.com> wrote:
You should only use the management to keep changes.
We added network filtering options in 4.0.
There is also a option of VDSM hook for things that are not supported via
the manager.
Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra'anana, Israel 4350109
Tel : +972 (9) 7692306
8272306
Email: ydary(a)redhat.com
IRC : ydary
On Sat, Aug 13, 2016 at 12:15 AM, Bill Bill <jax2568(a)outlook.com> wrote:
> It seems like when starting the VM through the oVirt dashboard, it’s
> either overwriting or removing those values.
>
>
>
> *From: *Bill Bill <jax2568(a)outlook.com>
> *Sent: *Friday, August 12, 2016 3:04 PM
> *To: *users(a)ovirt.org
> *Subject: *xml config file being used in ovirt different from virsh?
>
>
>
> I have a VM with network filtering enabled, specifically the
> clean-traffic filter.
>
>
>
> Through virsh, I modify the configuration to reflect changes like this:
>
>
>
> <filterref filter='clean-traffic'>
>
> <parameter name='IP' value='192.168.10.10.'/>
>
> <parameter name='IP' value='192.168.10.11'/>
>
> </filterref>
>
>
>
> This only allows those two specified IP’s to communicate on the VM. I’ve
> defined the xml through virsh.
>
>
>
> Now, if I start the VM directly through virsh, those rules apply and work
> correctly. I can add any other random IP from the same subnet and it does
> not work, as expected. Only the two Ip’s specified above will respond.
>
>
>
> This unfortunately, makes the VM appear to be down from with the ovirt
> dashboard if it’s started manually through virsh.
>
>
>
> If I edit the machine through virsh but do not start it and then go onto
> oVirt to start the VM, it seems the configuration is not loaded – does
> oVirt load a different configuration file other than
> /etc/libvirt/qemu/machine.xml?
>
>
oVirt uses VDSM to build the VM/s configuration file (Domain XML).
The only way to control its content from 'outside' is though the hooks:
http://www.ovirt.org/develop/developer-guide/vdsm/hooks/
You could use some usage examples from the code base.
Thanks,
Edy.