reassign 572625 virt-manager
retitle 572625 virt-manager apparently changes ownership of disk images
thanks
Giovanni Toraldo wrote:
> Package: qemu-kvm
> Version: 0.11.1+dfsg-1
> Severity: important
>
> I cannot start a newly created VM using a vmdk image, probably by a
> permission problem.
>
> sc...@antani-deb:~/kvm$ ls -la
> totale 17258688
> drwxrwx--- 1 scorp scorp 5 5 mar 09:37 .
> drwxr-xr-x 1 scorp scorp 82 5 mar 11:18 ..
> -rw-r--r-- 1 scorp scorp 7281442816 4 mar 17:41 antani-web.vmdk
> -rw-r--r-- 1 scorp scorp 3111321600 4 mar 17:41 bncf-client.vmdk
> -rw-r--r-- 1 scorp scorp 7280132096 4 mar 09:47 home-dev.vmdk
>
> This is the error when I try to start the machine:
>
> Error starting domain: internal error unable to start guest: qemu: could not
> open disk image /media/mac/Users/scorp/Debian-Home/kvm/antani-web.vmdk
>
> Traceback (most recent call last):
> File "/usr/share/virt-manager/virtManager/engine.py", line 589, in
> run_domain
> vm.startup()
> File "/usr/share/virt-manager/virtManager/domain.py", line 1208, in startup
> self._backend.create()
> File "/usr/lib/python2.5/site-packages/libvirt.py", line 300, in create
> if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
> libvirtError: internal error unable to start guest: qemu: could not open disk
> image /media/mac/Users/scorp/Debian-Home/kvm/antani-web.vmdk
>
> Permissions are being resetted by kvm/libvirt/virt-manager?
>
> sc...@antani-deb:~/kvm$ ls -la
> totale 17258688
> drwxrwx--- 1 scorp scorp 5 5 mar 09:37 .
> drwxr-xr-x 1 scorp scorp 82 5 mar 11:18 ..
> -rw-r--r-- 1 root root 7281442816 4 mar 17:41 antani-web.vmdk
> -rw-r--r-- 1 scorp scorp 3111321600 4 mar 17:41 bncf-client.vmdk
> -rw-r--r-- 1 root root 7280132096 4 mar 09:47 home-dev.vmdk
It's not permissinos, it's ownership. Kvm/qemu/qemu-kvm does not
touch permissions and ownership of existing files.
I'm not sure if it's virt-manager or libvirt or whatever issue, since
I know nothing about that part of the game.
But to me the issue looks quite serious: starting a vm makes some
files owned by root not by user. This might well be a security
issue that needs further investigation.
Reassigning the bug to virt-manager and Cc'ing to
[email protected].
Thanks.
/mjt
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]