KVM permission error 'unable to set user and group to '64055

New to Debian (Or Linux in general)? Ask your questions here!

KVM permission error 'unable to set user and group to '64055

Postby Chiefahol2 » 2018-03-27 00:59

I'm trying to use KVM with the virt-manager GUI on regular Debian 9, but i get this error when i click 'Begin Installation':

Code: Select all
Unable to complete install: 'unable to set user and group to '64055:64055' on '/home/user/folder/VMs/debian9.qcow2': Permission denied'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2288, in _do_async_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 461, in start_install
    doboot, transient)
  File "/usr/share/virt-manager/virtinst/guest.py", line 396, in _create_guest
    self.domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3523, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: unable to set user and group to '64055:64055' on '/home/user/folder/VMs/debian9.qcow2': Permission denied


Note that the qcow2 file is located on a CIFS mount. I'm also using apparmor. Anyone know how to fix this?
User avatar
Chiefahol2
 
Posts: 53
Joined: 2016-08-06 22:49

Re: KVM permission error 'unable to set user and group to '6

Postby Head_on_a_Stick » 2018-03-27 06:26

Is your user in the libvirt & libvirt-qemu groups?

https://wiki.debian.org/KVM#Installation
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7647
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: KVM permission error 'unable to set user and group to '6

Postby Chiefahol2 » 2018-04-01 02:16

Head_on_a_Stick wrote:Is your user in the libvirt & libvirt-qemu groups?

https://wiki.debian.org/KVM#Installation


Yes:

$ sudo adduser username libvirt
The user `username' is already a member of `libvirt'.
$ sudo adduser username libvirt-qemu
The user `username' is already a member of `libvirt-qemu'.

Note that the user i'm running it on is not a sudo user.
User avatar
Chiefahol2
 
Posts: 53
Joined: 2016-08-06 22:49

Re: KVM permission error 'unable to set user and group to '6

Postby Chiefahol2 » 2018-04-02 14:17

I tried adjusting these permissions as root without any luck:

Code: Select all
# chown 64055:64055 ./deb9.qcow2
chown: changing ownership of './deb9.qcow2': Permission denied


Strange that root cannot do this, i thought root could do anything! :o
User avatar
Chiefahol2
 
Posts: 53
Joined: 2016-08-06 22:49

Re: KVM permission error 'unable to set user and group to '6

Postby Head_on_a_Stick » 2018-04-02 20:43

Sorry but I don't use virt-manager, can you run the VM directly with the `kvm` command?
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7647
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: KVM permission error 'unable to set user and group to '6

Postby Chiefahol2 » 2018-04-04 11:40

I'm not sure how to do that, any good guides for noobs?

I tried with virt-manager again and it's produced a different error:

Code: Select all
Unable to complete install: 'missing target information for device /home/username/MediaHubExt/VMs/deb9-2.qcow2'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2288, in _do_async_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 461, in start_install
    doboot, transient)
  File "/usr/share/virt-manager/virtinst/guest.py", line 396, in _create_guest
    self.domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3523, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: missing target information for device /home/username/MediaHubExt/VMs/deb9-2.qcow2


Very confusing, virtmanager package seems broken to be honest.
Last edited by Chiefahol2 on 2018-04-04 11:43, edited 1 time in total.
User avatar
Chiefahol2
 
Posts: 53
Joined: 2016-08-06 22:49

Re: KVM permission error 'unable to set user and group to '6

Postby Chiefahol2 » 2018-04-04 11:42

Here is the fstab, showing how the volume with the VMs is mounted:

Code: Select all
//69.69.69.3/WDshare /home/username/MediaHubExt cifs credentials=/home/username/.smbcredentials,uid=1001,gid=1001,noexec 0 0


Maybe it's the 'noexec' that it hates?
User avatar
Chiefahol2
 
Posts: 53
Joined: 2016-08-06 22:49


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable