Proxmox

From Alpine Linux
Revision as of 12:46, 13 March 2025 by Prabuanand (talk | contribs) (moved content created by User:Groin1655 at https://wiki.alpinelinux.org/w/index.php?title=TTY_Autologin&oldid=29236)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page documents using Alpine Linux with [proxmox.com Proxmox] Virtual Environment.

Using agetty in proxmox

Proxmox v8.3.2 host has a setup_init script for Alpine linux at /usr/share/perl5/PVE/LXC/Setup/Alpine.pm that overwrites all changes to tty lines in /etc/inittab.

Modify the script at /usr/share/perl5/PVE/LXC/Setup/Alpine.pm and add the following lines in setup_init so as not to modify the /etc/inittab file if it contains the word "agetty" as follows

Contents of /usr/share/perl5/PVE/LXC/Setup/Alpine.pm

... ... my $inittab = $self->ct_file_get_contents($filename); ---> 56: if ($inittab =~ /agetty/) { 57: return; 58: } <---- my @lines = grep { ...

After running the LXC container, Install the agetty package as above and modify this line in /etc/inittab

tty1::respawn:/sbin/agetty --autologin root --noclear 38400 tty1

After a reboot the container will perform an autologin.