Repository

Looks good to me!

User Tools

Site Tools


kb:intranet:platforms:proxmox:lxc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
kb:intranet:platforms:proxmox:lxc [4 months ago (26 November 2024)] justinkb:intranet:platforms:proxmox:lxc [2 weeks ago (24 February 2025)] (current) – [Others] justin
Line 52: Line 52:
  
   * LXC containers [[https://www.reddit.com/r/ProxmoxQA/comments/1gzalwf/passwordless_lxc_container_login/|do not need passwords]], since user already authenticated on host. Enter root shell using ''lxc-attach <ID>'' or ''pct enter <ID>''   * LXC containers [[https://www.reddit.com/r/ProxmoxQA/comments/1gzalwf/passwordless_lxc_container_login/|do not need passwords]], since user already authenticated on host. Enter root shell using ''lxc-attach <ID>'' or ''pct enter <ID>''
 +  * Script provided by [[https://github.com/tteck/Proxmox/discussions/2558|tteck]] himself to disable password authentication. Not tested.
 +    * Alternatively, remove the password with ''bash -c "passwd -d root"''.
 +
 +<code>
 +GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
 +mkdir -p $(dirname $GETTY_OVERRIDE)
 +cat <<EOF >$GETTY_OVERRIDE
 +[Service]
 +ExecStart=
 +ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
 +EOF
 +systemctl daemon-reload
 +systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
 +</code>
kb/intranet/platforms/proxmox/lxc.txt · Last modified: 2 weeks ago (24 February 2025) by justin