-1

Running lxc on my Debian 8 system. Container stopped responding to ssh. lxc-console and lxc-stop were both unresponsive.

/etc/init.d/lxc stop 

was unresponsive. Fine, time to reboot.

shutdown -r now has no effect.

Ok...now what? How do I reboot this thing? I have no physical access to the system.

  • sudo shutdown -r now That is assuming you belong to the group sudoers. – fd0 Jul 26 '15 at 21:52
  • Like I said, shutdown -r now has no effect. All commands run as root of course. – cat pants Jul 26 '15 at 22:04
  • sudo shutdown -P -h now doesn't work either? – fantasia Jul 26 '15 at 22:20
  • shutdown -P -h now does not work either. – cat pants Jul 26 '15 at 22:43
2

You might be able to reboot such a Linux server relatively safely with the specific Magic SysRq key sequence: REISUB explained in the Wikipedia article.

For remote servers, if you still have an active remote session with root privilege, you can invoke the same SysRq function by echoing each of the characters above to /proc/sysrq-trigger. But don't issue R E I on remote servers, since R is meaningless, E and I also kill sshd you are conntecting to.

# echo s >/proc/sysrq-trigger
# echo u >/proc/sysrq-trigger
# echo b >/proc/sysrq-trigger

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.