foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.6k stars 1.14k forks source link

virtual machine manager -> macOS-Simple-KVM - Storage access error #439

Open stromal opened 3 years ago

stromal commented 3 years ago

I am trying to make macos simple kvm (Mojave) with my old GTX 650 - I have installed the new gpu bios that support UEFI. When I just start the QUEMU with ./basic.sh it run but the gpu pas-thru not working aliases with the screen + it the setting/ graphic it does not shows the gpu. I use this guide - https://passthroughpo.st/mac-os-vm-guide-part-2-gpu-passthrough-and-tweaks/ But wan I try to start it from virtual machine manager but I get the following error Error starting domain: Cannot access storage file '/home/aa/macOS-Simple-KVM/ESP.qcow2' (as uid:65534, gid:992): Permission denied

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, 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 1329, in startup
    self._backend.create()
  File "/usr/lib/python3.9/site-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: Cannot access storage file '/home/aa/macOS-Simple-KVM/ESP.qcow2' (as uid:65534, gid:992): Permission denied

Tried

hg commented 3 years ago

With basic.sh you're running qemu under your own user, so it has access to your home directory.

When starting qemu from libvirt, it appears to be running under nobody.

You have multiple options:

If you're running Fedora and want to keep files in your home directory, you might also have to configure SELinux (or disable it.)

stromal commented 3 years ago

I use Manjaro (Arch like commands are applied).