インストール
incus launch images:archlinux arch
インストールされたことを確認
$ incus list
+------------+---------+----------------------+-----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------------+---------+----------------------+-----------------------------------------------+-----------+-----------+
| arch | RUNNING | 10.158.98.226 (eth0) | fd42:16ef:86e0:dbd7:216:3eff:fe02:84ea (eth0) | CONTAINER | 0 |
+------------+---------+----------------------+-----------------------------------------------+-----------+-----------+
設定
ルートのパスワードの設定
incus exec arch bash
login
$ incus console arch
To detach from the console, press: <ctrl>+a q
arch login:
login 後のインストールと設定
ユーザー、パスワードの設定
useradd -u 1200 -m -g wheel uchida
passwd uchida
sudo のインストール
pacman -S sudo
visudo で設定
%wheel ALL=(ALL:ALL) ALL
%wheel ALL=(ALL:ALL) NOPASSWD: ALL
%sudo ALL=(ALL:ALL) ALL
sshd のインストール
sudo pacman -S openssh
sudo systemctl start sshd
sudo systemctl enable sshd
avahi のインストール
sudo pacman -S avahi
sudo systemctl start avahi-daemon
sudo systemctl enable avahi-daemon