You are not logged in.

#1 2021-03-26 21:44:57

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

KVM and uefi

I have (what I though) is a uefi booting Arch. (I've used legacy bios for all my time til now with linux)

I recently starting playing with KVM and when I selected UEFI as a boot option, I get dropped into a rescue shell. The Guest is Windows 7.

When installing arch, I created a Fat32 boot partition and did:

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB /dev/nvme0n1

/boot has an EFI directory containing a GRUB  subdirectory which houses grubx64.efi.

I have ovmf installed and have selected it as the boot option for the VM.

What am I doing wrong? And is there a way to verify that my host is indeed booted into UEFI?

Offline

#2 2021-03-26 22:31:33

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: KVM and uefi

Your host OS and any guest OS's are completely separate systems.

You can choose either BIOS or UEFI firmware options for your guests no matter how you are booting the host OS.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-03-27 09:26:20

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: KVM and uefi

Why is it that when I try to make a Windows VM with UEFI, I get dropped into a recovery shell? I am trying to achieve GPU passthrough and it is my understanding that the guest needs to boot in UEFI mode for that to happen.

Offline

#4 2021-03-27 15:37:05

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,351

Re: KVM and uefi

Is that an existing windows 7 VM or a newly created one ?

If a new one, what version is the windows7 installation image for ?


Are you using a gui frontend for qemu/kvm and if so which one.

Last edited by Lone_Wolf (2021-03-27 15:37:59)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2021-03-27 16:38:16

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: KVM and uefi

This is a newly created Windows 7 Ultimate Home Edition VM. I am using virt-manager to create the VM.

Offline

#6 2021-03-27 23:46:37

lazarys
Member
Registered: 2020-08-30
Posts: 15

Re: KVM and uefi

I don't know how you can do that easily with already installed Win7.

As for new vm's, to boot guest in uefi mode using virt-manager, during creation, after you setup install media, cpu/ram, storage, at the last window before starting installation, you have a checkbox "Customize configuration before install".

If checked, once you choose Finish you will have under Overview to choose firmware.

Change it from BIOS to UEFI x86_64: /usr/share/edk2-ovmf/x64/OVMF_CODE.fd

If you have edk2-ovmf installed it should be there.

Install...

Offline

Board footer

Powered by FluxBB