Openvz+opennebula vm boot failure

Hello, everyone.

I am shouting for help!

I created my own cloud via this guide (for opennebula 4.2) https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home , but i used opennebula 4.10.1 version.
I’ve got a trouble with my VM after creation.
The trouble is - VM can’t boot:

Mon Jan 26 01:37:29 2015 [Z0][DiM][I]: New VM state is ACTIVE.
Mon Jan 26 01:37:29 2015 [Z0][LCM][I]: New VM state is PROLOG.
Mon Jan 26 01:37:43 2015 [Z0][LCM][I]: New VM state is BOOT
Mon Jan 26 01:37:43 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/8/deployment.0
Mon Jan 26 01:37:43 2015 [Z0][VMM][I]: ExitCode: 0
Mon Jan 26 01:37:43 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: Command execution fail: cat << EOT | /vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/8/deployment.0' 'vm175.jinr.ru' 8 vm175.jinr.ru
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.10.0/lib/xml/mapping/base.rb:683:in `xml_to_obj': no value, and no default value: Attribute vmid not set (XXPathError: path not found: VMID) (XML::MappingError)
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.10.0/lib/xml/mapping/base.rb:186:in `fill_from_xml'
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.10.0/lib/xml/mapping/base.rb:185:in `each'
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.10.0/lib/xml/mapping/base.rb:185:in `fill_from_xml'
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.10.0/lib/xml/mapping/base.rb:362:in `load_from_xml'
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: from /vz/one/scripts/vmm/ovz/open_vz_data.rb:28:in `load_from_stream'
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: from /vz/one/scripts/vmm/ovz/open_vz_data.rb:75:in `new'
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: from /vz/one/scripts/vmm/ovz/deploy:24
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: ExitCode: 1
Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon Jan 26 01:38:31 2015 [Z0][VMM][E]: Error deploying virtual machine
Mon Jan 26 01:38:31 2015 [Z0][DiM][I]: New VM state is FAILED

The next string looks really strange:

Mon Jan 26 01:38:31 2015 [Z0][VMM][I]: /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.10.0/lib/xml/mapping/base.rb:683:in `xml_to_obj': no value, and no default value: Attribute vmid not set (XXPathError: path not found: VMID) (XML::MappingError)

I don’t understand why opennebula can’t read VMID field, it isn’t empty:

[root@vm127 one]# onevm show 8 | tail -1
VMID="8"

What am i supposed to do?

I am not familiar with the ovz driver so this answer could not be right.

The template structure changed a bit from version 4.2. It’s possible that the driver is trying to get some info from an xml path that no longer exists. I believe the driver is not compatible with 4.10.

Works fine on 4.10.2. But there’s a mess in the repository, probably forgot to change the branch to the right one (the default branch is outdated).