Header Shadow Image


Error executing image transfer script: Error copying opennebula

Small problem encountered when instantiating a virtual machine on OpenNebula ().  

PROBLEM

[oneadmin@opennebula01 .ssh]$ tail -f /var/log/one/1.log
Mon Mar 28 00:15:43 2016 [Z0][DiM][I]: New VM state is ACTIVE.
Mon Mar 28 00:15:43 2016 [Z0][LCM][I]: New VM state is PROLOG.
Mon Mar 28 00:15:43 2016 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/shared/clone opennebula01:/var/lib/one//datastores/1/ac152a0c5c61978e8448f68ade249a98 mdskvm-p01:/var/lib/one//datastores/0/1/disk.0 1 1
Mon Mar 28 00:15:43 2016 [Z0][TM][I]: clone: Cloning /var/lib/one/datastores/1/ac152a0c5c61978e8448f68ade249a98 in mdskvm-p01:/var/lib/one//datastores/0/1/disk.0
Mon Mar 28 00:15:43 2016 [Z0][TM][E]: clone: Command "cd /var/lib/one/datastores/0/1; cp /var/lib/one/datastores/1/ac152a0c5c61978e8448f68ade249a98 /var/lib/one/datastores/0/1/disk.0" failed: Warning: Permanently added 'mdskvm-p01,192.168.0.60' (ECDSA) to the list of known hosts.
Mon Mar 28 00:15:43 2016 [Z0][TM][I]: cp: cannot stat '/var/lib/one/datastores/1/ac152a0c5c61978e8448f68ade249a98': No such file or directory
Mon Mar 28 00:15:43 2016 [Z0][TM][E]: Error copying opennebula01:/var/lib/one//datastores/1/ac152a0c5c61978e8448f68ade249a98 to mdskvm-p01:/var/lib/one//datastores/0/1/disk.0
Mon Mar 28 00:15:43 2016 [Z0][TM][I]: ExitCode: 1
Mon Mar 28 00:15:43 2016 [Z0][TM][E]: Error executing image transfer script: Error copying opennebula01:/var/lib/one//datastores/1/ac152a0c5c61978e8448f68ade249a98 to mdskvm-p01:/var/lib/one//datastores/0/1/disk.0
Mon Mar 28 00:15:43 2016 [Z0][DiM][I]: New VM state is FAILED

[oneadmin@opennebula01 .ssh]$

SOLUTION

Ensure that the mount is possible and that the NFS daemon is running on OpenNebula:

/etc/fstab
192.168.0.70:/var/lib/one/  /var/lib/one/  nfs   soft,intr,rsize=8192,wsize=8192,noauto

[oneadmin@opennebula01 .ssh]$ cat /etc/exports
/var/lib/one/ *(rw,sync,no_subtree_check,root_squash)
[oneadmin@opennebula01 .ssh]$ ps -ef|grep -i nfs
oneadmin 12481  9559  0 00:22 pts/0    00:00:00 grep –color=auto -i nfs
[oneadmin@opennebula01 .ssh]$
[oneadmin@opennebula01 .ssh]$

[root@opennebula01 ~]# systemctl start nfs
[root@opennebula01 ~]#

Alos if you note above, I had used noauto in /etc/fstab.  Change to auto if you trust the NFS won't lock up your boot order getting stuck on NFS.

Cheers,
TK

 

Leave a Reply

You must be logged in to post a comment.


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License