I try one-context 5.0.0 and 5.0.1. This bug on all Linux (Centos, Ubuntu, Debian, etc…)
If add NIC to POWER OFF VM, VN can’t start.
in log:
Mon Aug 22 17:28:02 2016 [Z0][VMM][I]: Deploy of VM 93 on host CL01 with /var/lib/one/vms/93/deployment.6 failed due to “undefined method []' for nil:NilClass" Mon Aug 22 17:28:02 2016 [Z0][VMM][I]: ExitCode: 255 Mon Aug 22 17:28:02 2016 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy. Mon Aug 22 17:28:02 2016 [Z0][VMM][E]: Error deploying virtual machine Mon Aug 22 17:28:02 2016 [Z0][VM][I]: New state is POWEROFF Mon Aug 22 17:28:02 2016 [Z0][VM][I]: New LCM state is LCM_INIT Mon Aug 22 17:28:03 2016 [Z0][VM][I]: New state is ACTIVE Mon Aug 22 17:28:03 2016 [Z0][VM][I]: New LCM state is BOOT_POWEROFF Mon Aug 22 17:28:03 2016 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/93/deployment.7 Mon Aug 22 17:28:03 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre. Mon Aug 22 17:28:04 2016 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vcenter/deploy '/var/lib/one/vms/93/deployment.7' 'CL01' 93 CL01 Mon Aug 22 17:28:04 2016 [Z0][VMM][I]: /usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/type_loader.rb:66: warning: already initialized constant RbVmomi::VIM::Datastore Mon Aug 22 17:28:04 2016 [Z0][VMM][I]: /usr/lib/one/ruby/vcenter_driver.rb:51: warning: previous definition of Datastore was here Mon Aug 22 17:28:04 2016 [Z0][VMM][I]: Deploy of VM 93 on host CL01 with /var/lib/one/vms/93/deployment.7 failed due to "undefined method[]’ for nil:NilClass”
Mon Aug 22 17:28:04 2016 [Z0][VMM][I]: ExitCode: 255
Mon Aug 22 17:28:04 2016 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon Aug 22 17:28:04 2016 [Z0][VMM][E]: Error deploying virtual machine
Mon Aug 22 17:28:04 2016 [Z0][VM][I]: New state is POWEROFF
Mon Aug 22 17:28:04 2016 [Z0][VM][I]: New LCM state is LCM_INIT
I’ve just found the last one now. Even if the context is not regenerated the drivers try to add the context again after nic-attach. The problem is that vCenter behaves differently when setting guestinfo variables with the VM powered on or powered off.
Hopefully these will be fixed in the next release. There is no easy patch, at least I don’t know of any right now.
vCenter contextualization is incompatible with OpenNebula contextualization. It won’t generate interfaces file. I’m not able to find the info in 5.0 documentation but here it is for 4.14 (there are no changes to this):
If you want to configure interfaces use standard OpenNebula contextualization.
This is caused because of “Consistent network device naming”:
Context packages disable network initialization in debian 8 as it causes a big delay on booting. If you are not using OpenNebula contextualization you can either not install context packages or change the file /etc/default/networking and set: