Skip to content

VM created for virt-manager will not run, Permission denied. #107

@jelabarre59

Description

@jelabarre59

Which operating system are you trying to install?
macOS Monterey

Describe the bug
After importing the MacVM into virsh (for virt-manager ), the domain cannot be started (Permission denied on OVMF_CODE.fd)

To Reproduce
Build VM with the setupFedora.sh script
once build is done, exit/quit the running MacOS session
run 'sudo ./make.sh --add' to create VM configuration for virsh
in virt-manager, select and run the macOS-Simple-KVM VM defined by make.sh
the job will fail immediately with a "permission denied" for OVMF_CODE.fd

Starting the VM from a command line gives the same sort of error

jelabarre@b450a-lx:~/MacVM/OneClick-macOS-Simple-KVM$ sudo virsh start macOS-Simple-KVM
error: Failed to start domain 'macOS-Simple-KVM'
error: internal error: QEMU unexpectedly closed the monitor (vm='macOS-Simple-KVM'): 2024-04-17T19:05:05.470212Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/jelabarre/MacVM/OneClick-macOS-Simple-KVM/firmware/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/home/jelabarre/MacVM/OneClick-macOS-Simple-KVM/firmware/OVMF_CODE.fd': Permission denied

Expected behavior
the imported VM will run under virsh or virt-manager

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Fedora 39 (Cinnamon Desktop)
  • Version 6.0.4-5

virt-manager 4.1.0-3
libvirt 9.7.0-3
qemu 8.1.3-4

Additional context
output of "virt-manager --debug" attached

virtmanager-debug.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions