[SOLVED] PVE logins fail for privileged CT

gsfjohnson

New Member
Dec 11, 2019
2
0
1
46
When creating a privileged container on PVE 6.1, using centos-7-default_20190926_amd64 template: web logins through the pve webui seem to consistently fail. And since ssh is not yet enabled, the container appears to be inaccessible. Thinking it was a finger fumble, tried recreating. No luck, even after many tries.

Found this workaround:
  1. Create an unprivileged container - which allows login
  2. Add lxc/tty1 and lxc/tty2 to /etc/securetty
  3. (Optional) Enable SSH.
  4. Back up the container (stopping it)
  5. Destroy the container
  6. Copy the backup into the template directory (via the CLI)
  7. Recreate container as privileged, using the new template.
Is the privileged container login issue impacting anyone else?

Thanks
 
hi,

it seems like the lxc/tty[n] entries aren't getting into /etc/securetty during setup. will take a look at fixing it.

in the meantime, a simpler workaround:
Code:
pct enter CTID
for i in {1..11}; do echo "lxc/tty${i}" >> /etc/securetty; done

should also survive a container reboot.
 
  • Like
Reactions: gsfjohnson

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!