Use CentOS with LXD
How to install and configure CentOS 8 on lxd 4.6 installed on Ubuntu 20.04.
When the installation is complete and you log in, you should see something like this:
OS installation
lxc launch images:centos/8/amd64 centos
Set root password
lxc exec centos bash
login
$ lxc console centos
To detach from the console, press: <ctrl>+a q
CentOS Linux 8 (Core)
Kernel 5.4.0-48-generic on an x86_64
centos login:
Settings after login
Add users, groups, set passwords
useradd -u 1200 -m -g wheel uchida
groupadd -g 1200 uchida
passwd uchida
Install sudo
yum install sudo
sshd
sudo yum -y install openssh-server
sudo systemctl start sshd
avahi
sudo yum -y install avahi
sudo systemctl start avahi-daemon