This is an upgraded KDEneon install from 18.04, currently based on 24.04.
I was deleting a VM using libvirt KVM GUI and for some reason that I could not glean, it would let me delete the VM but not the storage image, claiming I didn't have permission. The VM itself was Kubuntu 24.10 I created a while ago. Looking into the images folder and all the files there are root:root owned and permissions the same. So I deleted the image file manually. Testing with other VMs, no problem deleting any of the other image files from KVM.
Anyway, this lead me to dig a bit deeper to see what I had messed up. I have mucked about with QEMU/KVM a bit in the past but have no recollection of what I changed except to move all the folders out of /var to a separate EXT4 partition so I could avoid using NoCOW and to make the installation file system more compact. I range from 10 to 20 or so VMs off and on, so it uses a lot of drive space.
What I discovered - and the point of this post - is quite a few of the folders and files in the virtual machine storage are set with group 991 but this group doesn't exist on my system. Additionally, there is a libvirt group in my groups but it's group number is 135. Preliminary web searches show that RedHat uses group 991 for libvert.
It seems probable that libvert as group 135 was already on my system before I mucked about with it and somehow along the way, KVM is configured to use 991.
I ran a "find" command to see if any files or folders on my system are group 135 and could find none.
I'm wondering if any other QEMU/KVM users on here are seeing the same as I am. Odd thing is I've had no problem using KVM until this deletion thing today.
I'm thinking I'm going to change the libvirt group number to 991 and adjust my user account if needed.
I was deleting a VM using libvirt KVM GUI and for some reason that I could not glean, it would let me delete the VM but not the storage image, claiming I didn't have permission. The VM itself was Kubuntu 24.10 I created a while ago. Looking into the images folder and all the files there are root:root owned and permissions the same. So I deleted the image file manually. Testing with other VMs, no problem deleting any of the other image files from KVM.
Anyway, this lead me to dig a bit deeper to see what I had messed up. I have mucked about with QEMU/KVM a bit in the past but have no recollection of what I changed except to move all the folders out of /var to a separate EXT4 partition so I could avoid using NoCOW and to make the installation file system more compact. I range from 10 to 20 or so VMs off and on, so it uses a lot of drive space.
What I discovered - and the point of this post - is quite a few of the folders and files in the virtual machine storage are set with group 991 but this group doesn't exist on my system. Additionally, there is a libvirt group in my groups but it's group number is 135. Preliminary web searches show that RedHat uses group 991 for libvert.
It seems probable that libvert as group 135 was already on my system before I mucked about with it and somehow along the way, KVM is configured to use 991.
I ran a "find" command to see if any files or folders on my system are group 135 and could find none.
I'm wondering if any other QEMU/KVM users on here are seeing the same as I am. Odd thing is I've had no problem using KVM until this deletion thing today.
I'm thinking I'm going to change the libvirt group number to 991 and adjust my user account if needed.



