run kvm with virtio block and net

 level@ThinkStation:~/zbuild$ cat virt-blk-sda6-linux.sh

KERNEL=fedora-40/vmlinuz-6.10.9-200.fc40.x86_64

INITRD=fedora-40/initramfs-6.10.9-200.fc40.x86_64.img


qemu-system-x86_64 -machine accel=kvm -nographic -smp 4 -m 8192M \

        -net nic,model=virtio-net-pci -net user,hostfwd=tcp::5023-:22 \

        -kernel $KERNEL \

        -initrd $INITRD \

        -append "root=UUID=2b67c2d5-a92f-43bd-8cc1-f43b6a7ac39d console=ttyS0" \

        -device virtio-blk-pci,drive=drive0,id=virtblk0,num-queues=4 \

        -drive file=/dev/sda6,if=none,id=drive0


fedora 39 new kernel not found in bootloader

I’m running the F36 beta, but I can’t seem to boot its (5.17.3) kernel or any of the 5.17.x line.
They don’t appear as options in bootloaders (I’ve tried both GRUB and rEFInd), and they don’t have /boot/vmlinuz-/boot/initramfs-, or /boot/config- files.

I’ve tried dnf reinstall kernel-core, but the files still don’t get created.
It does seem to create (according to strace) files in /boot/efi/<machine id>/5.17.3...., though.



Try the reinstall as dnf reinstall kernel*5.17* so it reinstalls all the various kernel packages. You may also try dnf reinstall grub*

Then if you desire you can also run dracut --force to ensure all the pieces in /boot are properly rebuilt (although that is run with the kernel install and should not be needed).

Comments

Popular Posts