[one-users] Error in VM deploy

Rubens Pinheiro rubens.pinheiro at argohost.net
Mon Oct 10 12:27:02 PDT 2011


Hello,
I've configured two machines, one with opennebula and another configured 
to be a host.
I've created the host in opennebula and it's all ok (status: MONITORED)

But when I try to create a vm, there is a problem in the deployment.
Here is the vm.log:

Mon Oct 10 15:15:29 2011 [DiM][I]: New VM state is ACTIVE.

Mon Oct 10 15:15:29 2011 [LCM][I]: New VM state is PROLOG.

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: argocloud:/srv/cloud/one/one-templates/ttylinux.img argohost at 192.168.2.101:/srv/cloud/one/var//5/images/disk.0

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: DST: /srv/cloud/one/var//5/images/disk.0

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//5/images

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//5/images".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//5/images".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/one/one-templates/ttylinux.img

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img /srv/cloud/one/var//5/images/disk.0".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//5/images/disk.0".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "mkdir -p /srv/cloud/one/var//5/images/isofiles".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/var/5/context.sh /srv/cloud/one/var//5/images/isofiles".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/one-templates/init.sh /srv/cloud/one/var//5/images/isofiles".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/.ssh/id_rsa.pub /srv/cloud/one/var//5/images/isofiles".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "/usr/bin/mkisofs -o /srv/cloud/one/var//5/images/disk.1 -J -R /srv/cloud/one/var//5/images/isofiles".

Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "rm -rf /srv/cloud/one/var//5/images/isofiles".

Mon Oct 10 15:15:29 2011 [LCM][I]: New VM state is BOOT

Mon Oct 10 15:15:29 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/5/deployment.0

Mon Oct 10 15:15:30 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//5/images/deployment.0; else                              exit 42; fi'

Mon Oct 10 15:15:30 2011 [VMM][I]: STDERR follows.

Mon Oct 10 15:15:30 2011 [VMM][I]: error: Failed to create domain from /srv/cloud/one/var//5/images/deployment.0

Mon Oct 10 15:15:30 2011 [VMM][I]: error: unable to set user and group to '118:131' on '/srv/cloud/one/var//5/images/disk.0': No such file or directory

Mon Oct 10 15:15:30 2011 [VMM][I]: ExitCode: 255

Mon Oct 10 15:15:30 2011 [VMM][E]: Error deploying virtual machine: error: Failed to create domain from /srv/cloud/one/var//5/images/deployment.0

Mon Oct 10 15:15:30 2011 [DiM][I]: New VM state is FAILED

Mon Oct 10 15:15:30 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Deleting /srv/cloud/one/var//5/images

Mon Oct 10 15:15:30 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Executed "rm -rf /srv/cloud/one/var//5/images".

Mon Oct 10 15:15:30 2011 [TM][W]: Ignored: TRANSFER SUCCESS 5 -

I think the error is there:

_Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//5/images/deployment.0; else_

It's a sintax error?
I'm using the opennebula-2.2.1 with ubuntu 11.04

Best regards,
Rubens Pinheiro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111010/5badae3d/attachment-0002.htm>


More information about the Users mailing list