-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fedora 25 image is not bootable (virtio hard disk drivers missing) #56
Comments
Indeed booting the image without a virtio hard disk works fine. |
In an anaconda VM install of F25 I see
This is because dracut normally auto-detects required drivers, but this doesn't work when being called in that chroot construction mode of mkosi. Even with this the image still doesn't boot with virtio, it seems EFI does not even get to the point of starting sd-boot (a bit hard to tell as sd-boot is really quiet). |
in the debian path we enable the "fat" dracut that installs all modules (although for a different reason) |
hmm, so we use "no-hostonly" mode in dracut which would mean the included kernel modules cover all kinds of hw, not just the one used locally on the host. I am pretty sure this should also include virtio stuff, and if it does not I'd assume that's a bug in dracut. @haraldh any idea? |
filed a bug about that now in dracut github: |
casync: use sha512/256 as hash function by default
Dracut really should imply that the "qemu" module is used when "nohostonly" mode is selected (which we select), but it currently does not, so deal with that. Fixes: systemd#56
A work-around fix is now waiting in #180. But I think this should be fixed in dracut anyway. |
Dracut really should imply that the "qemu" module is used when "nohostonly" mode is selected (which we select), but it currently does not, so deal with that. Fixes: systemd#56
Dracut really should imply that the "qemu" module is used when "nohostonly" mode is selected (which we select), but it currently does not, so deal with that. Fixes: systemd#56
I'm using mkosi as packaged in Fedora 25 (version 1.fc25):
Booting this in QEMU (with
-bios /usr/share/edk2/ovmf/OVMF_CODE.fd
times out waiting fordev-gpt\x2dauto\x2droot.device
Screenshot
/dev/disk/
only has a symlink forsr0
(the CD drive), there are no /sys/block/* devices other than sr0. It seems the generated initramfs is lacking the drivers for the QEMU virtio hard disks?The text was updated successfully, but these errors were encountered: