Post

2 followers Follow
0
Avatar

Cannot clone VM Template error during VM creation

Hi community,

When I try to deploy a VM, I always get the following error:

Mon Jul 18 15:51:30 2016 [Z0][VM][I]: New state is ACTIVE
Mon Jul 18 15:51:30 2016 [Z0][VM][I]: New LCM state is PROLOG
Mon Jul 18 15:51:30 2016 [Z0][VM][I]: New LCM state is BOOT
Mon Jul 18 15:51:30 2016 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/13/deployment.0
Mon Jul 18 15:51:30 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon Jul 18 15:51:31 2016 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vcenter/deploy '/var/lib/one/vms/13/deployment.0' 'GCH-Sun-Chassis2' 13 GCH-Sun-Chassis2
Mon Jul 18 15:51:31 2016 [Z0][VMM][I]: /usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/type_loader.rb:66: warning: already initialized constant RbVmomi::VIM::Datastore
Mon Jul 18 15:51:31 2016 [Z0][VMM][I]: /usr/lib/one/ruby/vcenter_driver.rb:51: warning: previous definition of Datastore was here
Mon Jul 18 15:51:31 2016 [Z0][VMM][I]: Deploy of VM 13 on host GCH-Sun-Chassis2 with /var/lib/one/vms/13/deployment.0 failed due to "Cannot clone VM Template: undefined method `parent' for nil:NilClass"
Mon Jul 18 15:51:31 2016 [Z0][VMM][I]: ExitCode: 255
Mon Jul 18 15:51:31 2016 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon Jul 18 15:51:31 2016 [Z0][VMM][E]: Error deploying virtual machine
Mon Jul 18 15:51:31 2016 [Z0][VM][I]: New LCM state is BOOT_FAILURE

 

I have tried to clone the VM template and the disk (without creating the VM), and, that worked.

I have also tried to change all parameters around (network, storage,...), but, I always get this error.

 

From /var/log/one/oned.log, I see more or less the same error :

Mon Jul 18 15:51:31 2016 [Z0][VMM][D]: Message received: LOG I 13 Command execution fail: /var/lib/one/remotes/vmm/vcenter/deploy '/var/lib/one/vms/13/deploy
ment.0' 'GCH-Sun-Chassis2' 13 GCH-Sun-Chassis2
Mon Jul 18 15:51:31 2016 [Z0][VMM][D]: Message received: LOG I 13 /usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/type_loader.rb:66: warning: already initialized constant RbVmomi::VIM::Datastore
Mon Jul 18 15:51:31 2016 [Z0][VMM][D]: Message received: LOG I 13 /usr/lib/one/ruby/vcenter_driver.rb:51: warning: previous definition of Datastore was here
Mon Jul 18 15:51:31 2016 [Z0][VMM][D]: Message received: LOG I 13 Deploy of VM 13 on host GCH-Sun-Chassis2 with /var/lib/one/vms/13/deployment.0 failed due to "Cannot clone VM Template: undefined method `parent' for nil:NilClass"
Mon Jul 18 15:51:31 2016 [Z0][VMM][D]: Message received: LOG I 13 ExitCode: 255
Mon Jul 18 15:51:31 2016 [Z0][VMM][D]: Message received: LOG I 13 Failed to execute virtualization driver operation: deploy.
Mon Jul 18 15:51:31 2016 [Z0][VMM][D]: Message received: DEPLOY FAILURE 13 -

 

About the infrastructure, vOneCloud is connected to a VMware vCenter 5.5 with 2 clusters of few ESXi. I have been checking the logs on vCenter side, but didn't see any error either.

Would someone have an idea about what I have done wrong ?

If no, is there some tests I could do to find the cause of this issue ?

Thanks,
Charles

Charles Benon

Please sign in to leave a comment.

3 comments

1
Avatar

It seems like vOneCloud cannot find the UUID of the vCenter VM Template.

How did you create the vOneCloud VM Template? Did you import it?

vOneCloud Support Team 1 vote
Comment actions Permalink
0
Avatar

Good catch, thanks !

The template i was using was created from OpenNebula. Following your message, I have used one from vCenter and it worked.

So, does it mean I can only use templates previously created in vCenter (on the one imported, I can see the field vCenter Template UUID) or am I missing some configuration somewhere ?

Charles Benon 0 votes
Comment actions Permalink
0
Avatar

Yes, that is correct, you can only use VM Templates pre created in vCenter.

vOneCloud Support Team 0 votes
Comment actions Permalink