systemd / mkosi

💽 Build Bespoke OS Images
https://mkosi.systemd.io/
GNU Lesser General Public License v2.1
1.14k stars 307 forks source link

Unable to log into built Ubuntu 22.04 image #2778

Closed paulmenzel closed 2 months ago

paulmenzel commented 2 months ago

mkosi commit the issue has been seen with

main

Used host distribution

Debian sid/unstable

Used target distribution

Ubuntu 22.04

Linux kernel version used

6.8.11-cloud-amd64

CPU architectures issue was seen on

None

Unexpected behaviour you saw

After entering root in the login screen on the serial console, it hangs, and I am unable to enter a password:

$ qemu-system-x86_64 -enable-kvm -name variation-collabstorage -cpu host -m 8G -smp 4 -nographic -serial stdio -drive file=variation-collabstorage.001.disk,discard=on,if=virtio -nic tap,model=virtio,mac=52:c6:11:00:00:40,fd=3 -vnc localhost:XX -serial none -chardev socket,id=mon1,path=mon.socket,server=on,wait=off -mon chardev=mon1,mode=readline -chardev socket,id=mon2,path=qmp.socket,server=on,wait=off -mon chardev=mon2,mode=control -kernel variation-collabstorage.vmlinuz -initrd variation-collabstorage.initrd -append root=/dev/vda3 debug console=ttyS0 console=tty0
Linux version 5.15.0-1060-kvm (buildd@lcy02-amd64-033) (gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #65-Ubuntu SMP Tue May 21 09:31:15 UTC 2024 (Ubuntu 5.15.0-1060.65-kvm 5)
Command line: root=/dev/vda3 debug console=ttyS0 console=tty0
BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x00000000bffdcfff] usable
BIOS-e820: [mem 0x00000000bffdd000-0x00000000bfffffff] reserved
BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
BIOS-e820: [mem 0x0000000100000000-0x000000023fffffff] usable
NX (Execute Disable) protection: active
e820: update [mem 0x007a9af0-0x007a9b1f] usable ==> usable
e820: update [mem 0x007a9af0-0x007a9b1f] usable ==> usable
extended physical RAM map:
reserve setup_data: [mem 0x0000000000000000-0x000000000009fbff] usable
reserve setup_data: [mem 0x000000000009fc00-0x000000000009ffff] reserved
reserve setup_data: [mem 0x00000000000f0000-0x00000000000fffff] reserved
reserve setup_data: [mem 0x0000000000100000-0x00000000007a9aef] usable
reserve setup_data: [mem 0x00000000007a9af0-0x00000000007a9b1f] usable
reserve setup_data: [mem 0x00000000007a9b20-0x00000000bffdcfff] usable
reserve setup_data: [mem 0x00000000bffdd000-0x00000000bfffffff] reserved
reserve setup_data: [mem 0x00000000feffc000-0x00000000feffffff] reserved
reserve setup_data: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
reserve setup_data: [mem 0x0000000100000000-0x000000023fffffff] usable
SMBIOS 2.8 present.
DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.1-0-g3208b098f51a-prebuilt.qemu.org 04/01/2014
Hypervisor detected: KVM
[…]
[  OK  ] Finished Record Runlevel Change in UTMP.

Ubuntu 22.04.4 LTS localhost ttyS0

localhost login: root

Used mkosi config

$ more mkosi.local.conf
[Distribution]
Repositories=main,universe

[Content]
Packages=dbus
         linux-image-kvm
         systemd
         systemd-repart
         systemd-sysv
         udev
         wget
         etckeeper
         ca-certificates
         grub-pc
         bash
         apt
         sudo
         ssh
         iproute2
         bash-completion
         vim
         e2fsprogs
         cloud-guest-utils
         curl
Autologin=yes
WithNetwork=true

mkosi output

No response

paulmenzel commented 2 months ago
  1. 20240612--qemu-with-built-ubuntu--output.txt
  2. 20240612--mkosi--output.txt
DaanDeMeyer commented 2 months ago

I cannot reproduce, please create a git repo with the full config and a set of steps to reproduce the issue

DaanDeMeyer commented 2 months ago

@paulmenzel Ping?

DaanDeMeyer commented 2 months ago

Closing due to lack of response