[libvirt] OpenVZ: Still the same macs for host and domain veth devices.

Ivan Vovk ivovk at intermedia.net
Mon Dec 8 20:11:08 UTC 2008

Hi, guys.

During domain creation from xml like this:

<domain type="openvz" id="3005">
                                <filesystem type="template">
                                                <source name="altlinux-4.0"/>
                                                <target dir="/"/>
                                <interface type="bridge">
                                                <source bridge="vzrb0"/>
                                                <target dev="veth3005.0"/>
i get veth3005.0 on a HW node connected to virtual bridge vzbr0 and eth0 inside a container. So that annoying bug with confused <source> and <target> tags seems to be fixed. Thanks for that!

But mac generation still seems to be an issue, caz mac of eth0 and veth3005.0 are the same:

[root at alt-03 ~]# cat /etc/vz/conf/3005.conf | grep NETIF
So when i connect two containers via bridge they cannot "talk" to each other due to macs conflict. Can something be done to improve mac generation behaviour?

Version I use at the moment:
[root at alt-03 ~]# rpm -qa | grep libvirt
And one more not an OpenVZ-specific question: I am working on a project using python and python API bindings in libvirt. I don't see a python method for virNetworkCreateXML:
>>> dir(libvirt.virConnect.networkCreateXML)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: class virConnect has no attribute 'networkCreateXML'
There are two methods for virNetworkDefineXML and virNetworkCreate separately:

>>> dir(libvirt.virConnect.networkDefineXML)
['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__get__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'im_class', 'im_func', 'im_self']
>>> dir(libvirt.virNetwork.create)
['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__get__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'im_class', 'im_func', 'im_self']
Is networkCreateXML missed?

This message (including attachments) is private and confidential. If you have received this message in error, please notify us and remove it from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081208/8b7bfa09/attachment-0001.htm>

More information about the libvir-list mailing list