[one-users] Getting errors trying to execute demo VM.

Carlos Martín Sánchez cmartin at opennebula.org
Fri Jul 27 02:11:07 PDT 2012


Hi,

On Fri, Jul 27, 2012 at 2:02 AM, Jason Fairfield <pegasusjf at siu.edu> wrote:

>  First, what is the 3.6 equivalent for this command (from the Open Nebula
> Book):
>
> *onehost create host09 im_kvm vmm_kvm tm_ssh dummy*
>
> Trying to follow the man page as closely as possible I'm using this:
> onehost create host09 -i im_kvm -v vmm_kvm -n dummy
>

Since OpenNebula 3.4 the transfer manager is not set for each Host, but
rather for each Datastore [1]. The command you used is the right one.

It's possible that the ttylinux demo vm given by the book is obsolete.
> Also, I tried to change the setup from shared to ssh (though I forget
> exactly how) but that did not help.
>

The latest ttylinux example documentation can be found here [2].
To change the Transfer Manager driver, follow the Storage guides [3]


> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG E 5 clone: Command
> "cd /srv/cloud/one01/var/datastores/0/5; cp -r
> ../../1/d6b8087d48a73ac946e1780aefc4d964
> /srv/cloud/one01/var/datastores/0/5/disk.0" failed: cd: 1: can't cd to
> /srv/cloud/one01/var/datastores/0/5
>
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG I 5 cp: cannot
> stat `../../1/d6b8087d48a73ac946e1780aefc4d964': No such file or directory
>

The shared TM driver requires the datastore location to be exported to the
hosts. You should check that is it properly mounted, and that the
permissions allow oneadmin to use it.

Regards

[1] http://opennebula.org/documentation:archives:rel3.4:compatibility
[2]
http://opennebula.org/documentation:rel3.6:cong#exampleusing_context_in_a_vm
[3] http://opennebula.org/documentation:rel3.6:sm

--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>



On Fri, Jul 27, 2012 at 2:02 AM, Jason Fairfield <pegasusjf at siu.edu> wrote:

>  First, what is the 3.6 equivalent for this command (from the Open Nebula
> Book):
>
> *onehost create host09 im_kvm vmm_kvm tm_ssh dummy*
>
> Trying to follow the man page as closely as possible I'm using this:
> onehost create host09 -i im_kvm -v vmm_kvm -n dummy
>
> But trying to run that basic vm image from chapter 5 is apparently getting
> transfer errors.
>
> ssh is passwordless, oneadmin is set for no password sudo.  There seems to
> be transfer issues, but I'm at a loss what could be causing them.
>
> It's possible that the ttylinux demo vm given by the book is obsolete.
> Also, I tried to change the setup from shared to ssh (though I forget
> exactly how) but that did not help.
>
>
> my commands
>
>  ID NAME            CLUSTER   RVM TCPU FCPU ACPU    TMEM    FMEM    AMEM
> STAT
>    1 host09          -           0  200  200  200    3.8G    3.5G    3.8G
> on
> oneadmin at cloudadmin-OptiPlex-380:/tmp/ttylinux$ onevnet create
> small_network.netID: 2
> oneadmin at cloudadmin-OptiPlex-380:/tmp/ttylinux$ oneimage create image.one
> Datastore to save the image is mandatory:
>      -d datastore_id
> oneadmin at cloudadmin-OptiPlex-380:/tmp/ttylinux$ oneimage create image.one
> -d default
> ID: 3
> oneadmin at cloudadmin-OptiPlex-380:/tmp/ttylinux$ onevm create ttylinux.one
> ID: 5
> oneadmin at cloudadmin-OptiPlex-380:/tmp/ttylinux$ onevm list
>     ID USER     GROUP    NAME            STAT UCPU    UMEM
> HOST             TIME
>      5 oneadmin oneadmin ttylinux        pend    0      0K              0d
> 00h00
> oneadmin at cloudadmin-OptiPlex-380:/tmp/ttylinux$
>
>
> from oned.log
>
> Thu Jul 26 01:49:53 2012 [DiM][D]: Deploying VM 5
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG I 5 Command
> execution fail: /srv/cloud/one01/var/remotes/tm/shared/clone
> cloudadmin-OptiPlex-380:/srv/cloud/one01/var/datastores/1/d6b8087d48a73ac946e1780aefc4d964
> host09:/srv/cloud/one01/var//datastores/0/5/disk.0 5 1
>
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG I 5 clone: Cloning
> ../../1/d6b8087d48a73ac946e1780aefc4d964 in
> host09:/srv/cloud/one01/var//datastores/0/5/disk.0
>
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG E 5 clone: Command
> "cd /srv/cloud/one01/var/datastores/0/5; cp -r
> ../../1/d6b8087d48a73ac946e1780aefc4d964
> /srv/cloud/one01/var/datastores/0/5/disk.0" failed: cd: 1: can't cd to
> /srv/cloud/one01/var/datastores/0/5
>
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG I 5 cp: cannot
> stat `../../1/d6b8087d48a73ac946e1780aefc4d964': No such file or directory
>
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG E 5 Error copying
> cloudadmin-OptiPlex-380:/srv/cloud/one01/var/datastores/1/d6b8087d48a73ac946e1780aefc4d964
> to host09:/srv/cloud/one01/var//datastores/0/5/disk.0
>
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: LOG I 5 ExitCode: 1
>
> Thu Jul 26 01:49:54 2012 [TM][D]: Message received: TRANSFER FAILURE 5
> Error copying
> cloudadmin-OptiPlex-380:/srv/cloud/one01/var/datastores/1/d6b8087d48a73ac946e1780aefc4d964
> to host09:/srv/cloud/one01/var//datastores/0/5/disk.0
>
> Thu Jul 26 01:49:54 2012 [ReM][D]: VirtualMachineAction method invoked
> Thu Jul 26 01:49:55 2012 [HKM][D]: Message received: LOG I 5 ExitCode: 0
>
> Thu Jul 26 01:49:55 2012 [HKM][D]: Message received: EXECUTE SUCCESS 5
> on_failure_resubmit:
>
> Thu Jul 26 01:49:55 2012 [TM][D]: Message received: LOG I 5 ExitCode: 0
>
> Thu Jul 26 01:49:55 2012 [TM][D]: Message received: LOG I 5 delete:
> Deleting /srv/cloud/one01/var/datastores/0/5
>
> Thu Jul 26 01:49:55 2012 [TM][D]: Message received: LOG I 5 ExitCode: 0
>
> Thu Jul 26 01:49:55 2012 [TM][D]: Message received: TRANSFER SUCCESS 5 -
>
> Thu Jul 26 01:50:08 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Jul 26 01:50:22 2012 [ReM][D]: HostPoolInfo method invoked
> Thu Jul 26 01:50:22 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Jul 26 01:50:22 2012 [ReM][D]: AclInfo method invoked
> Thu Jul 26 01:50:22 2012 [ReM][D]: VirtualMachineDeploy method invoked
> Thu Jul 26 01:50:23 2012 [DiM][D]: Deploying VM 5
> Thu Jul 26 01:50:23 2012 [TM][D]: Message received: LOG I 5 Command
> execution fail: /srv/cloud/one01/var/remotes/tm/shared/clone
> cloudadmin-OptiPlex-380:/srv/cloud/one01/var/datastores/1/d6b8087d48a73ac946e1780aefc4d964
> host09:/srv/cloud/one01/var//datastores/0/5/disk.0 5 1
>
>
> from the vm.log
>
> Thu Jul 26 01:49:53 2012 [VM][I]: Virtual Machine has no context
> Thu Jul 26 01:49:54 2012 [TM][I]: Command execution fail:
> /srv/cloud/one01/var/remotes/tm/shared/clone
> cloudadmin-OptiPlex-380:/srv/cloud/one01/var/datastores/1/d6b8087d48a73ac946e1780aefc4d964
> host09:/srv/cloud/one01/var//datastores/0/5/disk.0 5 1
> Thu Jul 26 01:49:54 2012 [TM][I]: clone: Cloning
> ../../1/d6b8087d48a73ac946e1780aefc4d964 in
> host09:/srv/cloud/one01/var//datastores/0/5/disk.0
> Thu Jul 26 01:49:54 2012 [TM][E]: clone: Command "cd
> /srv/cloud/one01/var/datastores/0/5; cp -r
> ../../1/d6b8087d48a73ac946e1780aefc4d964
> /srv/cloud/one01/var/datastores/0/5/disk.0" failed: cd: 1: can't cd to
> /srv/cloud/one01/var/datastores/0/5
> Thu Jul 26 01:49:54 2012 [TM][I]: cp: cannot stat
> `../../1/d6b8087d48a73ac946e1780aefc4d964': No such file or directory
> Thu Jul 26 01:49:54 2012 [TM][E]: Error copying
> cloudadmin-OptiPlex-380:/srv/cloud/one01/var/datastores/1/d6b8087d48a73ac946e1780aefc4d964
> to host09:/srv/cloud/one01/var//datastores/0/5/disk.0
> Thu Jul 26 01:49:54 2012 [TM][I]: ExitCode: 1
> Thu Jul 26 01:49:54 2012 [TM][E]: Error executing image transfer script:
> Error copying
> cloudadmin-OptiPlex-380:/srv/cloud/one01/var/datastores/1/d6b8087d48a73ac946e1780aefc4d964
> to host09:/srv/cloud/one01/var//datastores/0/5/disk.0
> Thu Jul 26 01:49:54 2012 [DiM][I]: New VM state is FAILED
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120727/11e42ebe/attachment-0003.htm>


More information about the Users mailing list