pmem / run_qemu

A script to create bootable OS images, and run qemu with a locally built kernel.
Creative Commons Zero v1.0 Universal
57 stars 22 forks source link

run_qemu.sh on top of linux kernel fails #52

Open SeiDPierre opened 1 month ago

SeiDPierre commented 1 month ago

Hello, I'm trying to get used to run_qemu script in order to later manage multiple vm. Following instructions from the readme, run_qemu.sh fails at some points:

debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
update-initramfs: deferring update (trigger activated)
Processing triggers for dracut (059-4) ...
dracut: Generating /boot/initrd.img-6.1.0-22-amd64
/usr/bin/dracut: line 1056: /sys/module/firmware_class/parameters/path: No such file or directory
dracut: Generating /boot/initrd.img-6.9.9
/usr/bin/dracut: line 1056: /sys/module/firmware_class/parameters/path: No such file or directory
Failed to create '/var/tmp/mkosi-e6ogcm3s/root/run/host/unix-export': File exists
‣ Error: Workspace command kernel-install add 6.9.9 /boot/vmlinuz-6.9.9 returned non-zero exit code 1.

I've compiled a 6.9.9 linux kernel, with by default option, (make menuconfig && make) The only lines I've modified are distro=debian and rev=bookworm at the beginning of the script. run_qemu.sh is not run as root

Versions: I was using mkosi 14, and switch to latest stable release: 23 dracut :102-3 qemu : 9.0.1 I'm under Debian 12

stellarhopper commented 1 month ago

@SeiDPierre I don't run Debian, so don't have insights on what might be going on.

@miguelinux since you did some work recently with Debian support, do you have any ideas?