[Users] VZ veth interface name limitations

Dmitry Mishin dim at virtuozzo.com
Wed Apr 27 00:15:56 PDT 2016



From: <users-bounces at openvz.org<mailto:users-bounces at openvz.org>> on behalf of Björn Lindgren <bjorn.lindgren at clearit.se<mailto:bjorn.lindgren at clearit.se>>
Reply-To: OpenVZ users <users at openvz.org<mailto:users at openvz.org>>
Date: Tuesday 26 April 2016 16:59
To: "users at openvz.org<mailto:users at openvz.org>" <users at openvz.org<mailto:users at openvz.org>>
Subject: [Users] VZ veth interface name limitations

OpenVZ it self allows creation of container id with 10 chars. But it doesn't allow the ctid to be used in the interface name.

Is this a known limitation? I seams inconsistent to me to allow CTID of 10 chars but not to be fully supported in the veth support of VZ.

Could this be fixed?

Linux applies 15 chars limitation on a network device names. So, the only fix we could do here - is to prohibit 10 chars for CTID and permit only 9 chars. But due to backward compatibility reasons, I doubt it worths to do now.

Thank you,
Dmitry.


vzctl set 1604261536 --save --netif_add eth0,00:16:04:26:15:36,veth1604261536.0,66:c6:54:1d:cb:af
Bad parameter for --netif_add: eth0,00:16:04:26:15:36,veth1604261536.0,66:c6:54:1d:cb:af

vzctl set 1604261536 --save --netif_add eth0,00:16:04:26:15:36,veth604261536.0,66:c6:54:1d:cb:af
CT configuration saved to /etc/vz/conf/1604261536.conf


# cat /etc/redhat-release
CentOS release 6.7 (Final)

# rpm -qa | grep ^vz
vzstats-0.5.3-1.noarch
vzctl-core-4.9.4-1.x86_64
vzctl-4.9.4-1.x86_64
vzkernel-2.6.32-042stab113.21.x86_64
e2fsprogs-resize2fs-static-1.42.11-1.ovz.x86_64
vzquota-3.1-1.x86_64

Regards,
Björn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20160427/063638ef/attachment.html>


More information about the Users mailing list