[pve-devel] [PATCH container 1/2] update_lxc_config: set in-CT network devices to up

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Mar 17 07:35:20 CET 2020


Else some newer system do not see the interface as up and refuse to
manage it..

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/LXC.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 0742a53..f811550 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -725,6 +725,7 @@ sub update_lxc_config {
 	my $ind = $1;
 	my $d = PVE::LXC::Config->parse_lxc_network($conf->{$k});
 	$raw .= "lxc.net.$ind.type = veth\n";
+	$raw .= "lxc.net.$ind.flags = up\n";
 	$raw .= "lxc.net.$ind.veth.pair = veth${vmid}i${ind}\n";
 	$raw .= "lxc.net.$ind.hwaddr = $d->{hwaddr}\n" if defined($d->{hwaddr});
 	$raw .= "lxc.net.$ind.name = $d->{name}\n" if defined($d->{name});
-- 
2.20.1





More information about the pve-devel mailing list