FIX ERROR – virsh: operation failed: unable to find any master var store for loader

When you try to start a virtual machine with EFI using Virsh, the following message appears:

virsh start macos-manual
error: Failed to start domain macos-manual
error: operation failed: unable to find any master var store for loader: /var/lib/libvirt/qemu/nvram/OVMF_CODE.fd
Solution:

Install the package "ovmf"

apt install ovmf

Editing QEMU configuration file

vim /etc/libvirt/qemu.conf

Add the following line:

nvram = [
    "/usr/share/OVMF/OVMF_CODE.fd:/usr/share/OVMF/OVMF_VARS.fd"
]

Restart libvirt

systemctl restart libvirt-bin
0 0 vote
Article Rating

Tagged: Tags

Подписаться
Уведомление о
guest
0 Comments
Inline Feedbacks
View all comments