machine-to-proxmox-lxc-ct-converter icon indicating copy to clipboard operation
machine-to-proxmox-lxc-ct-converter copied to clipboard

No console after move to LXC

Open arheops opened this issue 10 months ago • 2 comments

I have moved opensuse to LXC. Looks all okay, except I have no console in Proxmox for this container.

I see that it is expected be tty1(when I an sending to tty1 i see output) but no login prompts.

Any idea? Apparmor already off.

arheops avatar Mar 28 '24 04:03 arheops

This could be the result of problems booting the lxc-container. Try the following, to get more insights: lxc-start -n {CONTAINER_ID} -d --logfile debug.log -l debug

my5t3ry avatar Mar 31 '24 10:03 my5t3ry

I already found issue. In current proxmox it connect to /dev/tty While for some reason in tty file it connect to lxc/console(not exists). So fix is like

sed -e 's/lxc///g' -i /usr/lib/systemd/system/[email protected]

arheops avatar Mar 31 '24 15:03 arheops