[SOLVED] Failed to start VM: failed to remove default vlan tags of tap104i0 - command '/sbin/bridge bridge vlan del dev tap104i0 vid 1-4094' failed: exit code

blackwarp

New Member
May 6, 2020
1
0
1
59
After updating latest testing PVE packages I got the following error:
Object "bridge" is unknown, try "bridge help".
failed to remove default vlan tags of tap104i0 - command '/sbin/bridge bridge vlan del dev tap104i0 vid 1-4094' failed: exit code 255

kvm: network script /var/lib/qemu-server/pve-bridge failed with status 65280
TASK ERROR: start failed: QEMU exited with code 1

Workaround:
Change the following in /usr/share/perl5/PVE/Network.pm:

root@pve:/usr/share/perl5/PVE# diff -Naur Network.pm_OLD Network.pm
--- Network.pm_OLD 2020-05-06 11:39:20.039058551 +0200
+++ Network.pm 2020-05-06 11:40:22.847797184 +0200
@@ -217,10 +217,10 @@

if ($vlan_aware) {
if ($tag) {
- eval { run_command(['/sbin/bridge', 'bridge', 'vlan', 'del', 'dev', $iface, 'vid', '1-4094']) };
+ eval { run_command(['/sbin/bridge', 'vlan', 'del', 'dev', $iface, 'vid', '1-4094']) };
die "failed to remove default vlan tags of $iface - $@\n" if $@;

- eval { run_command(['/sbin/bridge', 'bridge', 'vlan', 'add', 'dev', $iface, 'vid', $tag, 'pvid', 'untagged']) };
+ eval { run_command(['/sbin/bridge', 'vlan', 'add', 'dev', $iface, 'vid', $tag, 'pvid', 'untagged']) };
die "unable to add vlan $tag to interface $iface - $@\n" if $@;

warn "Caution: Setting VLAN ID 1 on a VLAN aware bridge may be dangerous\n" if $tag == 1;
 
indeed a bug, fix should be available soon!
 
libpve-common-perl 6.1-1 is available via pve-no-subscription and fixes the issue!
 
  • Like
Reactions: Stoiko Ivanov

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!