1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Incus: Arch Linux を使う

Posted at

インストール

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

参考ページ

LXD で Arch Linux を使う

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?