Hello @all,
I’ve been using lxd with cloudinit for many months.
Today I noticed that there is currently an unexpected side effect.
I reduced my profile to a minimum:
config:
user.user-data: |
#cloud-config
description: Connect container to public bridge br0.
devices:
eth0:
nictype: bridged
parent: br0
type: nic
roots:
paths: /
pool: btrfs
type: disc
name: devpublicbridge
used_by: []
When I create an instance:
$ lxc launch ubuntu:21.10 lab-kubuntu -p devpublicbridge
Then the container is created and started:
| lab-kubuntu | RUNNING | | | CONTAINERS |
If I do a restart now:
$ lxc restart lab-kubuntu
Error: Failed unmounting instance: In use
Trylxc info --show-log lab-kubuntu
for more info
But the most important thing is that the container is no longer started:
| lab-kubuntu | STOPPED | | | CONTAINERS |
However, when I start the container by hand, it works as usual.
I get the following output in the log:
$ lxc info --show-log lab-kubuntu
Name: lab-kubuntu
Status: STOPPED
Type: containers
Architecture: x86_64
Location: gramophone
Created: 2022/04/10 21:14 UTC
Last Used: 2022/04/10 21:14 UTC
Log:
lxc lab-kubuntu 20220410211451.145 WARN conf - conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc lab-kubuntu 20220410211451.145 WARN conf - conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc lab-kubuntu 20220410211451.147 WARN conf - conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc lab-kubuntu 20220410211451.147 WARN conf - conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc lab-kubuntu 20220410211515.770 WARN conf - conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc lab-kubuntu 20220410211515.770 WARN conf - conf.c:lxc_map_ids:3598 - newgidmap binary is missing
I tryed ubuntu 20.04, too. I have the same issue.
So I think it is a lxd specific problem.
Thanks con