[Users] [User] why VM image owner change to root after stop the vm

Dan Kenigsberg danken at redhat.com
Wed Jul 25 19:48:11 UTC 2012


On Wed, Jul 25, 2012 at 04:58:48PM +0200, Martin Kletzander wrote:
> Thanks, I just wanted to make sure it's not libvirt that does this.

Pardon me, I still suspect libvirt... Which version thereof do you have
installed?

Which storage is used for the vm image - local fs, right?

would you
  strace -p `<libvirtpid>` -e chown -ff

and start another VM just to prove me wrong?
You could do the same with <vdsmpid> to find the culprit.

> 
> On 07/25/2012 04:44 PM, T-Sinjon wrote:
> > both engine and node dynamic_ownership are 0
> > 
> > On 25 Jul, 2012, at 5:56 PM, Martin Kletzander wrote:
> > 
> >> On 07/25/2012 10:36 AM, T-Sinjon wrote:
> >>>
> >>> Dear everyone:
> >>>
> >>> Description
> >>> When i create a vm , the vm owner is vdsm:kvm(36:36)
> >>>
> >>> when i start a vm , the vm owner change to qemu:qemu(107:107)
> >>> -rw-rw----. 1 qemu qemu 107374182400 Jul 25  2012 d1e6b671-6b48-4964-9c56-22847e9b83df
> >>> -rw-r--r--. 1 vdsm kvm           269 Jul 25  2012 d1e6b671-6b48-4964-9c56-22847e9b83df.meta
> >>>
> >>> then i stop the vm , the vm owner change to root:root
> >>> -rw-rw----. 1 root root 107374182400 Jul 25  2012 d1e6b671-6b48-4964-9c56-22847e9b83df
> >>> -rw-r--r--. 1 vdsm kvm           269 Jul 25  2012 d1e6b671-6b48-4964-9c56-22847e9b83df.meta
> >>>
> >>> then , i cannot start the vm , on the web logs event:
> >>>
> >>
> >> Just out of curiosity (it won't probably won't be the cause of the
> >> problem), do you have dynamic_ownership=0 in /etc/libvirt/qemu.conf ?



More information about the Users mailing list