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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!