例:Debian 12 (bookworm)をインストール
# lxc-create -n name -t debian -- -r bookworm
他のバージョンをインストールする場合、上記の青字の部分を下のcode nameに置換する。
version | code name |
10 | buster |
11 | bullseye |
12 | bookworm |
[付録] 初期状態のでプロセス
Debain 10
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:53 ? 00:00:00 /sbin/init
root 39 1 0 18:53 ? 00:00:00 /lib/systemd/systemd-journald
root 63 1 0 18:53 ? 00:00:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
root 85 1 0 18:54 ? 00:00:00 /usr/sbin/sshd -D
root 86 1 0 18:54 pts/0 00:00:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 vt220
Debian 11
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:55 ? 00:00:00 /sbin/init
root 38 1 0 18:55 ? 00:00:00 /lib/systemd/systemd-journald
root 63 1 0 18:55 ? 00:00:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
root 89 1 0 18:55 pts/0 00:00:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 vt220
root 90 1 0 18:55 ? 00:00:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
Debian 12
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:59 ? 00:00:00 /sbin/init
root 38 1 0 18:59 ? 00:00:00 /lib/systemd/systemd-journald
root 70 1 0 18:59 ? 00:00:00 dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.le
root 97 1 0 18:59 pts/0 00:00:00 /sbin/agetty -o -p -- \u --noclear --keep-baud - 115200,38400,9600 vt220
root 98 1 0 18:59 ? 00:00:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
参考
LXCの記事一覧
0 件のコメント:
コメントを投稿