[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 12:26:24 CET 2020
On 3/17/20 11:48 AM, Wolfgang Bumiller wrote:
> On 3/17/20 7:35 AM, Thomas Lamprecht wrote:
>> Else some newer system do not see the interface as up and refuse to
>> manage it..
>
> Where do you run into that actually? I can get my arch container to behave normally with just adding `lxc.mount.auto = sys:mixed` to /etc/pve/lxc/$vmid.conf atm. without this patch.
> Or did you use the [testing] pacman repo or something?
>
Not sure anymore, had an issue during checking this out - some errors
with "no carrier" and this helped to advance, but not sure anymore..
>>
>> 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});
>>
>
More information about the pve-devel
mailing list