Help--- LXC container problem

andrea68

Renowned Member
Jun 30, 2010
158
2
83
Hi I have one LXC container hang out.

Proxmox web interface tell me login failed.
Every LXC related command seems not work

KVM is working.

How can I regain access to my server without reboot it?
It's a single node installation....

Tnx!
 
You can not login to PVE GUI? If yes, then login to the node per SSH and change the root Password.

Make sure you select the correct realm, try it first it might be the problem.
 
Hi, the root passwd is ok.
But logging in web interface is still impossible.
I remember a similar issue involving LXC months ago, don't remember how I solved :(
 
If you have access to a root console, you can

1. determine the process ID of the hung container, eg
# ps ax | grep ctid
2. kill -9 pid

that should restore your node to normal function. if it doesnt, and the pid is zombie, you'd need to kill the node using other means- eg
echo b > /proc/sysrq-trigger
or
ipmitool power reset

if you have ipmi.
 
Tnx Alex, 'i'e managed to kill the process and restart the server. All seems back to normal. I need to delete the LXC container ...