Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

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

#1 Post by Chiefahol2 »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#2 Post by Head_on_a_Stick »

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

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

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

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

#3 Post by Chiefahol2 »

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: 110
Joined: 2016-08-06 22:49

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

#4 Post by Chiefahol2 »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#5 Post by Head_on_a_Stick »

Sorry but I don't use virt-manager, can you run the VM directly with the `kvm` command?
deadbang

User avatar
Chiefahol2
Posts: 110
Joined: 2016-08-06 22:49

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

#6 Post by Chiefahol2 »

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: 110
Joined: 2016-08-06 22:49

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

#7 Post by Chiefahol2 »

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?

Post Reply