Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jelabarre59 opened this issue Apr 17, 2024 · 1 comment
Open

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

jelabarre59 opened this issue Apr 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jelabarre59
Copy link

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

@jelabarre59 jelabarre59 added the bug Something isn't working label Apr 17, 2024
@notAperson535
Copy link
Owner

Is this after updating to the latest version of the repo? If so, please try this file instead:
https://github.com/notAperson535/OneClick-macOS-Simple-KVM/raw/70b1475c8d15c2f355a36644307ecacf595daa85/firmware/OVMF_CODE.fd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants