Soo… Apologies if this is in the wrong place. Still new and unfamiliar to Lemmy. 😊 I could not find a specific vm community, so chat is hopefully ok? Posting this with Jerboa on iusearchlinux.fyi (hopefully?)

I have an issue with booting a windows vm from a physical drive and I hope this community might be able to help.

I run arch on my desktop where I have 2 nvme drives. One with Linux and the other with win10. This us the first time I am using systemd-boot for dual boot setup. I normally use grub but this I went with systemd. Possibly a mistake…

I have used these drives and the win10 install with several Linux installs over the years on this motherboard. Both as a dual boot, but also for vfio virtual machine. This works like a charm. But not this time… Dual boot works great, but the vm boot is not working atm.

I normally pass the entire windows drive to qemu, pass the spare Nvidia card and if we go. Usually controlled with looking-glass. It’s sweet and work like a charm.

But for some reason I cannot boot the windows drive like this anymore. I suspect systemd-boot does something but I am not familiar enough to tell for sure.

Anyone with a similar setup with a success story to share? Is this possible with systemd? Or is my best bet to go back to grub?

Cheers all!

  • Flaky@iusearchlinux.fyi
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    While I don’t have that much experience with EFI Shell, that doesn’t look out of place. It’s showing the partitions just fine. Though seeing as you keep getting landed in the shell, it’s like it can’t see the contents of the ESP or something like that.

    Did you install Windows or set up the VM with Secure Boot? I think I had this or something very similar when I installed Windows on OVMF firmware that had Secure Boot.

    • Alfaspyke@iusearchlinux.fyiOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I will have to check if secure boot is involved somehow. It’s not activated on purpose but who knows.

      The uefi shell shows no files or directories in any of the partitions available so you might be correct.

      • Flaky@iusearchlinux.fyi
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Try browsing your Windows EFI partition on the Linux host, you should be able to with the VM switched off. If it’s blanked out or Linux complains, it might be an issue with the partition itself.

        • Alfaspyke@iusearchlinux.fyiOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          A breakthrough!! I could not find the efi information on the partition it should be on the windows disk This is a major hint. The efi partition on this disk was empty. The efi partition lives on the Linux disk and will happily boot both Linux and windows. I cannot recall moving it from the windows disk manually. So there is still something to dig into here.

          No wonder my virtual machine could not boot properly…

          Thank you very much for sparring with me in this topic. It is solved now, sort of. I still need to actually fix it, but the solution is ready.

          Check your partitions folks! They might not be where you think they are.

          🥳

          • Flaky@iusearchlinux.fyi
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Yay! Glad to see the issue’s solved. You actually reminded me - yeah, Windows and I believe macOS too will just leech off whatever EFI partition it can find. I’ve had EFI partitions on data drives for whatever reason that they’ll just use. Part of why when I’ll install an OS on bare metal, I’ll disable everything but the drive being used (granted that’s probably harder on some motherboards).