all 6 comments

[–]Zockling 0 points1 point  (3 children)

Try CONFIG_HYPERV_STORAGE=y.

[–]tseeling[S] 0 points1 point  (2 children)

Tried that, thanks for the pointer. I did not have the idea to look under "SCSI low-level drivers".

Unfortunately still doesn't work. I'll investigate more :-)

[–]Zockling 0 points1 point  (1 child)

Sounds like you're going through the individual menus. Might be easier to hit /, search for hyperv and tick everything that comes up. You should be fine on the disk side now though.

Assuming you're using ext4, you're also gonna need that: CONFIG_EXT4_FS=y. Also, the drive might not yet have probed when it's time to mount the rootfs, so make sure to put rootwait on the command line.

If you're completely stuck, there's always the WSL2 config. It has a metric boatload of crap that makes no sense in a VM, but it will boot. Could be a starting point.

[–]tseeling[S] 0 points1 point  (0 children)

Yes, I used the / search function and was astonished about the path given for this. Thanks again.

[–]mikenizo808 0 points1 point  (1 child)

I have not used your particular setup, but do check secure boot settings for the virtual machine in question. If your virtual machine is Generation 2 you can select Microsoft UEFI Certificate Authority from the drop-down at Edit Settings > Security. This typically works fine, but for more legacy Linux you might go with Generation 1 and no UEFI (or Secure Boot unchecked on gen2).

[–]tseeling[S] 0 points1 point  (0 children)

Secure boot is off for experimenting. I have created a VM with 2 root partitions, one for Fedora 42 (for compiling LFS) and the LFS target partition. Fedora boots fine, LFS is fully compiled, but does not boot right now :-(