"enp3s0f0np0.1718" is wrong: "name" too long

V.k

New Member
Oct 3, 2018
1
0
1
35
cannot start machine due that problem. Attaching vlan to vmbr causing this :
Code:
Error: argument "enp3s0f0np0.1718" is wrong: "name" too long

can't add vlan tag 1718 to interface enp3s0f0np0
kvm: -netdev type=tap,id=net0,ifname=tap198i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on: network script /var/lib/qemu-server/pve-bridge failed with status 512
TASK ERROR: start failed: command '/usr/bin/kvm -id 198 -chardev 'socket,id=qmp,path=/var/run/qemu-server/198.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/198.pid -daemonize -smbios 'type=1,uuid=ca36ffaf-842f-420e-9775-314ad452dfce' -name vesta.hostit.se -smp '8,sockets=1,cores=8,maxcpus=8' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/198.vnc,x509,password -cpu host,+kvm_pv_unhalt,+kvm_pv_eoi -m 8192 -k en-gb -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -chardev 'socket,id=serial0,path=/var/run/qemu-server/198.serial0,server,nowait' -device 'isa-serial,chardev=serial0' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:38ad67715acd' -drive 'file=/mnt/pve/hostit.nfs/images/198/vm-198-disk-1.qcow2,if=none,id=drive-virtio0,format=qcow2,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -drive 'file=/mnt/pve/backup/images/198/vm-198-disk-2.qcow2,if=none,id=drive-virtio1,format=qcow2,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio1,id=virtio1,bus=pci.0,addr=0xb' -netdev 'type=tap,id=net0,ifname=tap198i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=96:9D:F0:E6:0D:1E,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -netdev 'type=tap,id=net1,ifname=tap198i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=A6:7B:D9:F1:F6:30,netdev=net1,bus=pci.0,addr=0x13,id=net1,bootindex=301'' failed: exit code 1
 
You are running into the IFNAMSIZ limit of 16 characters here. There are two possibilities to get to a lower length:

One easy one might be going with three digit vlan IDs here (because it's only a single character that you are too long).

Or to tweak the network interface name. See the manpage of systemd.link(5) which explains how you can adjust the interface name itself and disable the naming schema in this case.

Hope that helps!
Rhonda