You are not logged in.

#1 2021-04-07 00:46:00

SpacetimeBull
Member
Registered: 2021-02-13
Posts: 11

virt-manager: Error starting domain: Cannot access storage file

I imported my macOS Big Sur KVM to virt-manager and it says that it cannot access my disk?

```Error starting domain: Cannot access storage file '/home/spacetimebull/OSX-KVM/mac_hdd_ng.img' (as uid:65534, gid:984): 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/spacetimebull/OSX-KVM/mac_hdd_ng.img' (as uid:65534, gid:984): Permission denied```

I have the mac_hdd_ng.img in a folder in my ~ directory.

Here is my /etc/libvirt/qemu.conf file under the privilege area

```spacetimebull = "root"
# The group for QEMU processes run by the system instance. It can be
# specified in a similar way to user.
group = "users"```

I don't know why it cannot access the img, I have permissions... Any help would be greatly appreciated.

Offline

Board footer

Powered by FluxBB