Re: [libvirt] [PATCH] fix creating of openvz bridge device

This behaviour contradicts with description found in docs (in which <source> tag specify interface in host, not in container). I think, the previous bridge must be specified as <interface type='bridge'> <mac address='00:16:3e:34:21:9e'/> - <source bridge='eth10'/> + <target dev='eth10'/> </interface>
You are right. It is bug.
Well, here is the patch, that fixes that behaviour.
Your patch is half of fix. It require to fix openvzReadNetworkConf() in openvz_conf.c.
P.S. Are someone going to implement <interface type='bridge'> ... <source bridge="..."> ... </interface> part of openvz driver? :)
I plan to implement it in a month. It will be fine if you are ready to develop the feature.

P.S. Are someone going to implement
<interface type='bridge'> ... <source bridge="..."> ... </interface> part of openvz driver? :)
I plan to implement it in a month. It will be fine if you are ready to develop the feature.
How we can save, say, a name of a bridge to connect to? Сan we save and use for that purpose an xml description of domain, say, /etc/libvirt/openvz/<veid>.xml? Or, more precisely, for which purposes we can use an xml description of an openvz domain? (I think, that, in general, libvirt must use /vz/conf/$veid.conf, and appeal to /etc/libvirt/openvz/<veid>.xml only in special cases, like described before.)

Anton Protopopov пишет:
P.S. Are someone going to implement <interface type='bridge'> ... <source bridge="..."> ... </interface> part of openvz driver? :)
I plan to implement it in a month. It will be fine if you are ready to develop the feature.
How we can save, say, a name of a bridge to connect to? Сan we save and use for that purpose an xml description of domain, say, /etc/libvirt/openvz/<veid>.xml? Or, more precisely, for which purposes we can use an xml description of an openvz domain? (I think, that, in general, libvirt must use /vz/conf/$veid.conf, and appeal to /etc/libvirt/openvz/<veid>.xml only in special cases, like described before.)
There was no necessity to use separate config before. libvirt read standart OpenVZ config /etc/sysconfig/vz-scripts/<veid>.conf To write something special you may use config, but write string as commented. for example [root@evg ~]# grep UUID /etc/sysconfig/vz-scripts/105.conf #UUID: 6d5affd8-86f4-0a8c-90af-cd72ecc9cf17 -- Evgeniy Sokolov Parallels
participants (2)
-
Anton Protopopov
-
Evgeniy V. Sokolov