<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:users-bounces@openvz.org">users-bounces@openvz.org</a>&gt; on behalf of Björn Lindgren &lt;<a href="mailto:bjorn.lindgren@clearit.se">bjorn.lindgren@clearit.se</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>OpenVZ users &lt;<a href="mailto:users@openvz.org">users@openvz.org</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Tuesday 26 April 2016 16:59<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:users@openvz.org">users@openvz.org</a>&quot; &lt;<a href="mailto:users@openvz.org">users@openvz.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[Users] VZ veth interface name limitations<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>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.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Could this be fixed?</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>Linux applies 15 chars limitation on a network device names. So, the only fix we could do here &#8211; 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.</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Dmitry.</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div>
<div>vzctl set 1604261536 --save --netif_add eth0,00:16:04:26:15:36,veth1604261536.0,66:c6:54:1d:cb:af</div>
<div>Bad parameter for --netif_add: eth0,00:16:04:26:15:36,veth1604261536.0,66:c6:54:1d:cb:af</div>
</div>
<div><br>
</div>
<div>
<div>vzctl set 1604261536 --save --netif_add eth0,00:16:04:26:15:36,veth604261536.0,66:c6:54:1d:cb:af</div>
<div>CT configuration saved to /etc/vz/conf/1604261536.conf</div>
</div>
</div>
</div>
</blockquote>
</span><span id="OLK_SRC_BODY_SECTION">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div><br>
</div>
<div><br>
</div>
<div>
<div># cat /etc/redhat-release&nbsp;</div>
<div>CentOS release 6.7 (Final)</div>
</div>
<div><br>
</div>
<div>
<div># rpm -qa | grep ^vz</div>
<div>vzstats-0.5.3-1.noarch</div>
<div>vzctl-core-4.9.4-1.x86_64</div>
<div>vzctl-4.9.4-1.x86_64</div>
<div>vzkernel-2.6.32-042stab113.21.x86_64</div>
<div>e2fsprogs-resize2fs-static-1.42.11-1.ovz.x86_64</div>
<div>vzquota-3.1-1.x86_64</div>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Björn</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>