Bug #2859

Error instantiating virtual machines

Added by Marcello Lodi about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:04/30/2014
Priority:HighDue date:
Assignee:Javi Fontan% Done:

0%

Category:Drivers - VM
Target version:Release 4.6.1
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.6

Description

Scenario: worker nodes with centos 6.5 + xen (sunstone installed in one of them).

While instantiating a VM the following errors appear:
ed Apr 30 10:28:18 2014 [DiM][I]: New VM state is ACTIVE.
Wed Apr 30 10:28:18 2014 [LCM][I]: New VM state is PROLOG.
Wed Apr 30 10:28:19 2014 [LCM][I]: New VM state is BOOT
Wed Apr 30 10:28:19 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/105/deployment.0
Wed Apr 30 10:28:19 2014 [VMM][I]: ExitCode: 0
Wed Apr 30 10:28:19 2014 [VMM][I]: Successfully execute network driver operation: pre.
Wed Apr 30 10:28:19 2014 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/xen4/deploy '/var/lib/one//datastores/0/105/deployment.0' 'one-frontend' 105 one-frontend
Wed Apr 30 10:28:19 2014 [VMM][I]: /var/lib/one//datastores/0/105/deployment.0:12: config parsing error near `'type=vnc,vnclisten=0.0.0.0': lexical error
Wed Apr 30 10:28:19 2014 [VMM][I]: /var/lib/one//datastores/0/105/deployment.0:13: config parsing error near `,': syntax error, unexpected ',', expecting ']'
Wed Apr 30 10:28:19 2014 [VMM][I]: /var/lib/one//datastores/0/105/deployment.0:13: config parsing error near `']': lexical error
Wed Apr 30 10:28:19 2014 [VMM][I]: Failed to parse config: Invalid argument
Wed Apr 30 10:28:19 2014 [VMM][E]: Unable
Wed Apr 30 10:28:19 2014 [VMM][I]: ExitCode: 1
Wed Apr 30 10:28:19 2014 [VMM][I]: Failed to execute virtualization driver operation: deploy.
Wed Apr 30 10:28:19 2014 [VMM][E]: Error deploying virtual machine: Unable
Wed Apr 30 10:28:20 2014 [DiM][I]: New VM state is FAILED

Having a look at deployment.0 file it turns out that there is an error:
name = 'one-105'
#O CPU_CREDITS = 128
memory = '256'
bootloader = 'pygrub'
disk = [
'raw:/var/lib/one//datastores/0/105/disk.0,xvda,w',
'raw:/var/lib/one//datastores/0/105/disk.1,hda,r',
]
vif = [
' mac=02:00:a1:48:35:8c,ip=192.168.1.140,bridge=xenbr0',
]
vfb = ['type=vnc,vnclisten=0.0.0.0
,vncunused=0,vncdisplay=105']

After vncliste=0.0.0.0 there is a '\n' that produces a lexical error while trying to start up the VM.

Associated revisions

Revision 8c3e2057
Added by Javi Fontan about 7 years ago

bug #2859: fix VNC in Xen PV deployment file

Revision 0083cb94
Added by Javi Fontan about 7 years ago

bug #2859: fix VNC in Xen PV deployment file

(cherry picked from commit 8c3e2057c7cda417ef29ce669e1e14bf31ddbe01)

History

#1 Updated by Javi Fontan about 7 years ago

  • Status changed from Pending to Assigned
  • Assignee set to Javi Fontan
  • Priority changed from Normal to High

That's indeed a bug. Thanks for the tip. While it's not fixed can you start the VMs without VNC and use xl/xm console in case you need console access?

#2 Updated by Marcello Lodi about 7 years ago

Hi Javi,
yes of course. If I eliminate that part (i.e. the ip address 0.0.0.0), the vm can startup normally (also with sunstone).

#3 Updated by Javi Fontan about 7 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

#4 Updated by Ruben S. Montero about 7 years ago

  • Target version changed from Release 4.6 to Release 4.6.1

Also available in: Atom PDF