[one-users] Cannot clone persistent image

Javier Fontan jfontan at opennebula.org
Thu Apr 25 02:34:29 PDT 2013


>From the log file I'm seeing that you are using shred drivers and I
suppose you are using kvm. Can you check that in
/var/lib/one/var/datastores/1 there are images that belong to oneadmin
and other images which the owner is root?

If this is the case check that your libvirt configuration has
dynamic_ownership set to 0 and the correct user/group [1]:

$ grep -vE '^($|#)' /etc/libvirt/qemu.conf
user = "oneadmin"
group = "oneadmin"
dynamic_ownership = 0


[1] http://opennebula.org/documentation:rel3.8:kvmg#kvm_configuration

On Thu, Apr 25, 2013 at 3:16 AM, Mohammad Fazli Ahmat Jalaluddin
<fazli.mmu at gmail.com> wrote:
> Hi,
>
> I am new to OpenNebula. Currently the version of OpenNebula I am using is
> 3.8.3
> I have some question regarding cloning persistent image:
>
> Why I cannot clone any persistent image (READY) and if I change the
> persistent image back to non-persistent, I still cannot clone it.
>
> Also, If I want to deploy a VM using a non-persistent image that was
> previously a persistent image, it FAILED with this error message:
>
> Error executing image transfer script: Error copying
> hpc-workstation1:/var/lib/one/
> var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae to
> onevmhost:/var/lib/one/var//datastores/0/116/disk.0
>
> VM Log:
>
> Thu Apr 25 09:02:35 2013 [DiM][I]: New VM state is ACTIVE.
> Thu Apr 25 09:02:35 2013 [LCM][I]: New VM state is PROLOG.
> Thu Apr 25 09:02:36 2013 [TM][I]: Command execution fail:
> /var/lib/one/var/remotes/tm/shared/clone
> hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
> onevmhost:/var/lib/one/var//datastores/0/116/disk.0 116 1
> Thu Apr 25 09:02:36 2013 [TM][I]: clone: Cloning
> /var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae in
> onevmhost:/var/lib/one/var//datastores/0/116/disk.0
> Thu Apr 25 09:02:36 2013 [TM][E]: clone: Command "cd
> /var/lib/one/var/datastores/0/116; cp -r
> /var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
> /var/lib/one/var/datastores/0/116/disk.0" failed: cp: cannot open
> `/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae' for
> reading: Permission denied
> Thu Apr 25 09:02:36 2013 [TM][E]: Error copying
> hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
> to onevmhost:/var/lib/one/var//datastores/0/116/disk.0
> Thu Apr 25 09:02:36 2013 [TM][I]: ExitCode: 1
> Thu Apr 25 09:02:36 2013 [TM][E]: Error executing image transfer script:
> Error copying
> hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae
> to onevmhost:/var/lib/one/var//datastores/0/116/disk.0
> Thu Apr 25 09:02:36 2013 [DiM][I]: New VM state is FAILED
>
>
> Regards,
> Fazli
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list