LXC: add CONSOLE_AUTOLOGIN option for root autologin on the Proxmox console
This commit is contained in:
+4
-2
@@ -30,11 +30,13 @@ It downloads the Debian 13 template if needed and creates an unprivileged contai
|
||||
It then installs everything and prints the container's address. Optional settings: `CTID`, `CT_HOSTNAME`, `STORAGE`
|
||||
(`local-lvm`), `TEMPLATE_STORAGE` (`local`), `BRIDGE` (`vmbr0`), `IP` (`dhcp` or `192.168.1.50/24`), `GATEWAY`,
|
||||
`VLAN`, `CORES` (1), `MEMORY` (512 MB), `DISK` (4 GB), `PORT` (3000), `SITE_NAME`, `DIGEST_HOUR`, `TZ` (defaults to
|
||||
the host's), `ROOT_PASSWORD`, `SSH_PUBLIC_KEYS` (a file of keys for root), and
|
||||
the host's), `ROOT_PASSWORD`, `SSH_PUBLIC_KEYS` (a file of keys for root), `CONSOLE_AUTOLOGIN` (0), and
|
||||
`SMTP_HOST`/`SMTP_PORT`/`SMTP_USER`/`SMTP_PASS`/`SMTP_SECURE` instead of `SMTP_URL`.
|
||||
|
||||
`ADMIN_PASSWORD` is only for the web `/admin` page, not the container's root account. To log in at the Proxmox
|
||||
console, set `ROOT_PASSWORD`. Without it, get a shell with `pct enter <ctid>` on the host. The console's login screen
|
||||
console, set `ROOT_PASSWORD`, or set `CONSOLE_AUTOLOGIN=1` to have the console log in as root with no password.
|
||||
Anyone who can open the container's console in Proxmox then gets root in it; SSH still can't log in as root without a
|
||||
key. Without either, get a shell with `pct enter <ctid>` on the host. The console's login screen
|
||||
shows the container's address and the `/admin` URL.
|
||||
|
||||
Then point your reverse proxy (HTTPS) at the container's port 3000, open `/admin`, and sign in.
|
||||
|
||||
Reference in New Issue
Block a user