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;
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;