KVM/QEMU - can't restart an existing machine after update

I’m trying to restart a Win11 machine built using KVM/QEMU a few years ago, but I’m getting this error msg: "Unable to find any master var store for loader: /usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.4m.fd.?

Actually, at first I was getting the error referenced by taogi in this forum post:

So I followed the guidance shown in that thread. But now I’m getting error about “unable to fine master var store” shown above.
Have you heard of this?
Your thoughts welcome.
thx

Check nvram settings in your vm’s xml file:

$ sudo grep nvram -R /etc/libvirt/qemu
/etc/libvirt/qemu/arch.xml:    <nvram template='/usr/share/edk2/x64/OVMF_VARS.4m.fd'>/var/lib/libvirt/qemu/nvram/arch.fd</nvram>

In my arch vm example here there is a template given as /usr/share/edk2/x64/OVMF_VARS.4m.fd and the actual file for the vm vars as /var/lib/libvirt/qemu/nvram/arch.fd.
Are both files (for your vm!) existing on your machine?

1 Like

Hi freggel.doe -
Thx for the reply.
I executed the grep command and got this response:

/etc/libvirt/qemu/win10b.xml:    <nvram format='raw'>/var/lib/libvirt/qemu/nvram/win10b_VARS.4m.fd</nvram>

To me, that’s just one file.

This is the contents of /usr/share/edk2/x64

rsv2@reid-galagopro:~$ ls -l /usr/share/edk2/x64
total 15856
-rw-r--r-- 1 root root 4194304 Nov 28 06:05 MICROVM.4m.fd
-rw-r--r-- 1 root root 4194304 Nov 28 06:05 OVMF.4m.fd
-rw-r--r-- 1 root root 3653632 Nov 28 06:05 OVMF_CODE.4m.fd
-rw-r--r-- 1 root root 3653632 Nov 28 06:05 OVMF_CODE.secboot.4m.fd
-rw-r--r-- 1 root root  540672 Nov 28 06:05 OVMF_VARS.4m.fd
rsv2@reid-galagopro:~$ 
rsv2@reid-galagopro:~$ 

I assume this file exists?
Does the vm start if you move it out of the way?

Hey freggel.doe
many thanks for that. There was an incorrectly named file, which I corrected, and it boots now.
So I can understand the purpose of those files, do you happen know where I can find the documentation that explains those files?

I don’t have a documentation link at hand but AFAIK those files are needed to save some uefi settings for the vm, the boot entries for example.

OK, got it.
And thx again

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.