Hello,
I am planning to implement (beautiful) Opennebula in our existing Vmware 6.5 environment and created a small lab to test the functionality. I am aware that 5.4 is not released so I just share my experience.
If I try to import an existing template with a NIC connected to a distributed switch I receive the following error and the import fails:
-
VM Template found:
- Name : Win2012R2base
- Cluster : OneLab_HA
- Location : Templates
Import this VM template (y/[n])? y
For faster deployment operations and lower disk usage, OpenNebula can create new VMs as linked clones.
Would you like to use Linked Clones with VMs based on this template (y/[n])? nDo you want to specify a folder where the deployed VMs based on this template will appear in vSphere’s VM and Templates section?
If no path is set, VMs will be placed in the same location where the template lives.
Please specify a path using slashes to separate folders e.g /Management/VMs or press Enter to use defaults: /ACMEThe existing disks and networks in the template are being imported, please be patient…
There was an error trying to import a vcenter template: undefined methodeach' for nil:NilClass/ ["/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:471:in
import_vcenter_nics’", “/usr/lib/one/ruby/vcenter_driver/importer.rb:437:inblock (2 levels) in import_templates'", "/usr/lib/one/ruby/vcenter_driver/importer.rb:285:in
each’”, “/usr/lib/one/ruby/vcenter_driver/importer.rb:285:inblock in import_templates'", "/usr/lib/one/ruby/vcenter_driver/importer.rb:273:in
each’”, “/usr/lib/one/ruby/vcenter_driver/importer.rb:273:inimport_templates'", "/usr/bin/onevcenter:128:in
block (2 levels) in '”, “/usr/lib/one/ruby/cli/command_parser.rb:449:inrun'", "/usr/lib/one/ruby/cli/command_parser.rb:76:in
initialize’”, “/usr/bin/onevcenter:57:innew'", "/usr/bin/onevcenter:57:in
'”]
More findings:
The same template with a NIC configured to a standard switch works just fine.
Attaching a Port from a Distributed switch while creating a new VM within Opennebula works also.
Best Regards
Uli