[Pkg-opennebula-devel] Bug#673427: opennebula: Fails deploying VM with shared image on same host
Olivier Berger
olivier.berger at it-sudparis.eu
Fri May 18 17:36:04 UTC 2012
Hi.
On Fri, 18 May 2012 19:02:55 +0200, Olivier Berger <olivier.berger at it-sudparis.eu> wrote:
> On Fri, 18 May 2012 18:33:06 +0200, Olivier Berger <olivier.berger at it-sudparis.eu> wrote:
> > But :
> > # ls -alrt /var/lib/one/images/
> > total 1049612
> > drwxrws--T 2 oneadmin root 4096 mai 18 14:25 .
> > -rw-rw---- 1 root root 1073741824 mai 18 14:25 d378f408ef971dacbbb17af29db53f2a
> > drwxr-xr-x 37 oneadmin root 4096 mai 18 18:05 ..
> >
>
> I've tried changing the image file and containing dir's ownership to
> oneadmin:cloud before creating the VM, but there's something in the
> deployment scripts that reset these to root:root, as far as I can see.
>
> Will try and investigate which is the culprit.
>
OK, the permission changes seem to be the result of dynamic_ownership in
qemu.conf
I've proceeded with trial/error, until I've set the following in
/etc/libvirt/qemu.conf :
user = "root"
group = "cloud"
dynamic_ownership = 0
Now I can seem to be able to create a VM out of a persistent image,
destroy it, and recreate without losing changes inside the VM...
I hope this helps the maintainers figure out what needs to be done WRT
to qemu settings.
This seems like a FAQ, as :
http://www.opennebula.org/documentation:archives:rel3.2:kvmg#kvm_configuration
See also a similar report for ubuntu :
http://dev.opennebula.org/issues/1066
Hope this helps.
Best regards,
--
Olivier BERGER
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)
More information about the Pkg-opennebula-devel
mailing list