Openvz maximum length of vmid

Rudi Swennen

Member
May 14, 2014
24
0
21
Heverlee, Belgium
Hello support forum,

I have to following issue. When I create a container with "pvectl create 1049273580 ..." everything is working fine.
When I add an extra network cards with:
vzctl set 1049273580 --netif_add eth0 --save
vzctl set 1049273580 --netif_add eth1 --save
vzctl set 1049273580 --netif_add eth2 --save
it adds the netwrok card without an error message (echo $? is 0), but ....

When I look in the container config file the .X (VLAN) tag isn't added to the networkinterface: (output adjusted to indicate the "error")

NETIF=
ifname=eth0,mac=00:18:51:F6:61:EA,host_ifname=veth1049273580.,host_mac=00:18:51:C5:C8:29; IT SHOULD BE host_ifname=veth1049273580.0
ifname=eth1,mac=00:18:51:31:70:E0, host_ifname=veth1049273580.,host_mac=00:18:51:06:00:08; IT SHOULD BE host_ifname=veth1049273580.1
ifname=eth2,mac=00:18:51:08:CE:F5,host_ifname=veth1049273580.,host_mac=00:18:51:39:8E:03" IT SHOULD BE host_ifname=veth1049273580.2

Is there a maximum on the host_ifname name length of 16 characters?

Kind regards,

Rudi