lxc で起動したらコンソールにつなぎたい
console は完全に virsh っぽい。
lxc stop vps lxc start --console vps
ちゃんと起動ログを確認できる、
takuya@raspi-ubuntu:~$ lxc start d12 --console To detach from the console, press: <ctrl>+a q Queued start job for default target Graphical Interface. [ OK ] Created slice system-getty.slice. [ OK ] Created slice system-modprobe.slice. [ OK ] Created slice User and Session Slice. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Started Forward Password Requests to Wall Directory Watch. [UNSUPP] Starting of Arbitrary Executable Fi…tem Automount Point not supported. [ OK ] Reached target Local Encrypted Volumes. [ OK ] Reached target Paths. [ OK ] Reached target Remote File Systems. [ OK ] Reached target Slices. [ OK ] Reached target Swap. [ OK ] Listening on initctl Compatibility Named Pipe. [ OK ] Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket. [ OK ] Listening on Network Service Netlink Socket. [ OK ] Listening on udev Control Socket. [ OK ] Listening on udev Kernel Socket. Debian GNU/Linux 11 d12 console d12 login: takuya Password:
切断
切断は、 ctrl a q
です。
ctrl a は gnu screen とかぶるので注意が必要
コンソールにだけ接続する
コンソールにだけ接続する
lxc console d12
注意。
私の環境ではmconsole 付きで起動した場合 lxc shell が壊れることがあったので注意