images directory has incorrect permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
uvtool |
New
|
Undecided
|
Unassigned |
Bug Description
uvt-kvm is unable to destroy a vm once it has been created (this is on xenial.
For example:
root@martian3:~# uvt-kvm destroy secondtest
uvt-kvm: error: libvirt: cannot unlink file '/var/lib/
Looking at the directory permissions:
root@martian3:~# cd /var/lib/
root@martian3:
total 8
drwxr-xr-x 2 root root 4096 Aug 1 13:42 images
drwxrwxr-x 2 root libvirtd 4096 Aug 1 13:42 metadata
Libvirt is not able to make changes to the images directory. Changing the directory permissions to the following:
root@martian3:
total 8
drwxrwxr-x 2 root libvirtd 4096 Aug 1 14:46 images
drwxrwxr-x 2 root libvirtd 4096 Aug 1 13:42 metadata
Fixes the problem.