Issue with pct after exiting lxc

carlosmp

Renowned Member
Jun 2, 2010
46
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!