macOS-Simple-KVM icon indicating copy to clipboard operation
macOS-Simple-KVM copied to clipboard

virt-manager doesn't work

Open Adamekka opened this issue 2 years ago • 4 comments

basic.sh works, but virt-manager does not, below is the error, I've tried everything with permissions on that file, but it still doesn't work

image

Error starting domain: internal error: process exited while connecting to monitor: 2023-05-29T13:32:31.909401Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/mnt/mac/macOS-Simple-KVM-master/firmware/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/mnt/mac/macOS-Simple-KVM-master/firmware/OVMF_CODE.fd': Permission denied

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib64/python3.11/site-packages/libvirt.py", line 1362, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2023-05-29T13:32:31.909401Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/mnt/mac/macOS-Simple-KVM-master/firmware/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/mnt/mac/macOS-Simple-KVM-master/firmware/OVMF_CODE.fd': Permission denied

Adamekka avatar May 29 '23 13:05 Adamekka

I am having the same exact issue.

enderdude77 avatar Jun 12 '23 15:06 enderdude77

Try running using sudo

HarshNarayanJha avatar Jun 26 '23 14:06 HarshNarayanJha

As a sidenote, sudo !! will run the last command you ran with sudo if you are on bash, which it seems like you are.

scyilk avatar Jun 29 '23 04:06 scyilk

As a sidenote, sudo !! will run the last command you ran with sudo if you are on bash, which it seems like you are.

Oh Wow! Didn't know that one. Thanks

HarshNarayanJha avatar Jun 29 '23 09:06 HarshNarayanJha