[SOLVED] PVE logins fail for privileged CT

gsfjohnson

New Member
Dec 11, 2019
2
0
1
47
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