[one-users] OpenNebula 3.4 and Esxi 5.0- image cloning task throws error

Tino Vazquez tinova at opennebula.org
Mon Apr 30 04:44:49 PDT 2012


The link to the ticket: http://dev.opennebula.org/issues/1260
--
Constantino Vázquez Blanco, MSc
Project Engineer
OpenNebula - The Open-Source Solution for Data Center Virtualization
www.OpenNebula.org | @tinova79 | @OpenNebula


On Mon, Apr 30, 2012 at 1:44 PM, Tino Vazquez <tinova at opennebula.org> wrote:
> Dear Anil,
>
> You are very right, this is a bug since it is true that "sudo" doesn't
> come installed by default in ESX 5.0.
>
> A possible workaround is to use the root account in the ESX 5.0 host,
> since root permissions is needed by the vmkfstools command.
>
> I've attached in the ticket a replacement for clone that uses a "ssh
> root@<esx>" connection, and removes the use of sudo. For that you will
> need to:
>
>  * enable root access via ssh to ESX 5.0
>  * replace the clone script
>
> We will start working on a proper solution for this, it would be
> trackable from dev.opennebula.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> Project Engineer
> OpenNebula - The Open-Source Solution for Data Center Virtualization
> www.OpenNebula.org | @tinova79 | @OpenNebula
>
>
> On Sun, Apr 29, 2012 at 10:59 AM, cloud.b.lab <cloud.b.lab at zoho.com> wrote:
>> Hi,
>> I am facing some issues while using VMWare Esxi5.0 with OpenNebula 3.4,
>> especially while creating a VM.  [Esxi5.0 was working fine until OpenNebula
>> 3.2]
>>
>> As you know Esxi 5.0 does not have "sudo" it in but OpenNebula "Clone"
>> program has "sudo" written in it, which suspends the cloning process.
>>
>> Pasting the contents of vm.log for your  reference.
>>
>> oneadmin at OneHost:~/templates$ tail -n 100 ~/var/4/vm.log
>> Sun Apr 29 13:29:48 2012 [DiM][I]: New VM state is ACTIVE.
>> Sun Apr 29 13:29:48 2012 [LCM][I]: New VM state is PROLOG.
>> Sun Apr 29 13:29:48 2012 [VM][I]: Virtual Machine has no context
>> Sun Apr 29 13:29:48 2012 [TM][I]: Command execution fail:
>> /var/lib/one/var/remotes/tm/vmware/clone
>> OneHost:/var/lib/one/var/datastores/100/69da5878a2234300762a784b2ad8d85c
>> esxi01:/var/lib/one/var/datastores/0/4/disk.0
>> Sun Apr 29 13:29:48 2012 [TM][I]: clone: Cloning
>> ../../100/69da5878a2234300762a784b2ad8d85c in
>> esxi01:/var/lib/one/var/datastores/0/4/disk.0
>> Sun Apr 29 13:29:48 2012 [TM][E]: clone: Command "cd
>> /var/lib/one/var/datastores/0/4
>> Sun Apr 29 13:29:48 2012 [TM][I]: sudo /usr/sbin/vmkfstools -U
>> /var/lib/one/var/datastores/0/4/disk.0/disk.vmdk
>> Sun Apr 29 13:29:48 2012 [TM][I]: sudo /usr/sbin/vmkfstools -i
>> ../../100/69da5878a2234300762a784b2ad8d85c/disk.vmdk -d thin
>> /var/lib/one/var/datastores/0/4/disk.0/disk.vmdk" failed: sh: cd: line 1:
>> can't cd to /var/lib/one/var/datastores/0/4
>> Sun Apr 29 13:29:48 2012 [TM][I]: sh: sudo: not found
>> Sun Apr 29 13:29:48 2012 [TM][I]: sh: sudo: not found
>> Sun Apr 29 13:29:48 2012 [TM][E]: Error cloning
>> OneHost:/var/lib/one/var/datastores/100/69da5878a2234300762a784b2ad8d85c to
>> esxi01:/var/lib/one/var/datastores/0/4/disk.0
>> Sun Apr 29 13:29:48 2012 [TM][I]: ExitCode: 127
>> Sun Apr 29 13:29:48 2012 [TM][E]: Error executing image transfer script:
>> Error cloning
>> OneHost:/var/lib/one/var/datastores/100/69da5878a2234300762a784b2ad8d85c to
>> esxi01:/var/lib/one/var/datastores/0/4/disk.0
>> Sun Apr 29 13:29:48 2012 [DiM][I]: New VM state is FAILED
>> =============================================================================================================================
>>
>>
>> Kindly help to resolve this issue.
>>
>>
>> Regards,
>> Anil Kumar A.N.
>> [cloud-b-lab]
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>



More information about the Users mailing list