Red Hat Bugzilla – Bug 665594
ISO images changing ownerships to qemu:qemu when installing virtual machine
Last modified: 2013-01-09 18:27:06 EST
Description of problem:
When i try to install virtual machine from downloaded iso image which has my (user) ownerships KVM changes those ownerships to qemu:qemu. What leaves me with iso image in my home dir that doesn't belong to me. I mean ,yeah it's not a big deal one might say i still can remove file, but i do think it is a bug.
KVM/QEMU has no business modifying ownerships of files in my home dir.
Version-Release number of selected component (if applicable):
Fedora 14 22.214.171.124-72.fc14.x86_64
QEMU emulator version 0.13.0 (qemu-kvm-0.13.0)
Steps to Reproduce:
1. Fire up virt-manager
2. choose iso image from your disk as install source
3. begin installation. not until this point ownerships are changed.
4. you may quit installation. at this point ownerships are changed already
If any additional info required will be happy to provide it
Will any action be taken on this one? At least tell me that it's not a bug but a feature.
Doses every one besides me think that it is alright for qemu to hijack file ownership? Why it can't just read them, these files are world readable.
Reassigning this bug to Fedora 15. In F15 i have to deal with the same issue.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
qemu:///system, which is what virt-manager uses, runs libvirtd as root, and qemu processes as the qemu owner. Changing storage files to be owned by qemu:qemu prevents non authorized users from touching those files.
So this is expected behavior, it's a security mechanism of libvirt. If you want to disable it, set turn off dynamic_ownership in /etc/libvirt/libvirtd.conf and restart libvirtd.
You can try using the libvirt qemu:///session URI which auto launches a libvirtd daemon as a regular user, but the it's not as well tested so you may hit other issues.