Issue with pct after exiting lxc

carlosmp

Renowned Member
Jun 2, 2010
48
1
73
Hi,

I seem to be having an issue when we exit a container (lxc). when returning to the nodes cli, it almost appears as if the echo was turned off, and no output is seen on the screen...
Code:
[root@ns3 network-scripts]# root@pve151201:/usr/share/lxc/templates# root@pve151201:/usr/share/lxc/templates# root@pve151201:/usr/share/lxc/templates# root@pve151201:/usr/share/lxc/templates# root@pve151201:/usr/share/lxc/templates# root@pve151201:/usr/share/lxc/templates# > -bash: dfdsafdcd: command not found
root@pve151201:/usr/share/lxc/templates# root@pve151201:~# root@pve151201:~# total 0

Thanks in advance,
Carlos.
 
I seem to be having an issue when we exit a container (lxc). when returning to the nodes cli, it almost appears as if the echo was turned off, and no output is seen on the screen...

How did you enter into and exit from the container?

I recommend to use lxc-attach and exit; rather then lxc-start or lxc-console.
 
I'm using pct enter <vmid>, similar to the way we did previously with vlctl enter. The problem happens when doing a reboot from within the container and wait until we get kicked. If we exit the container and issue shutdown/start commands, we do not see the issue.
 
If you blind type reset<enter> after you get kicked, you will have your tty output reconnected.

stty sane, also works after you get kicked.
 
Last edited: