{"id":2818,"date":"2016-03-27T23:26:05","date_gmt":"2016-03-28T03:26:05","guid":{"rendered":"http:\/\/microdevsys.com\/wp\/?p=2818"},"modified":"2016-03-27T23:33:08","modified_gmt":"2016-03-28T03:33:08","slug":"error-executing-image-transfer-script-error-copying-opennebula","status":"publish","type":"post","link":"https:\/\/microdevsys.com\/wp\/error-executing-image-transfer-script-error-copying-opennebula\/","title":{"rendered":"Error executing image transfer script: Error copying opennebula"},"content":{"rendered":"<p>\n\tSmall problem encountered when instantiating a virtual machine on OpenNebula (). &nbsp;\n<\/p>\n<p>\n\t<strong>PROBLEM<\/strong>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t[oneadmin@opennebula01 .ssh]$ tail -f \/var\/log\/one\/1.log<br \/>\n\tMon Mar 28 00:15:43 2016 [Z0][DiM][I]: New VM state is ACTIVE.<br \/>\n\tMon Mar 28 00:15:43 2016 [Z0][LCM][I]: New VM state is PROLOG.<br \/>\n\tMon 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<br \/>\n\tMon 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<br \/>\n\tMon Mar 28 00:15:43 2016 [Z0][TM][E]: clone: Command &quot;cd \/var\/lib\/one\/datastores\/0\/1; cp \/var\/lib\/one\/datastores\/1\/ac152a0c5c61978e8448f68ade249a98 \/var\/lib\/one\/datastores\/0\/1\/disk.0&quot; failed: Warning: Permanently added &#39;mdskvm-p01,192.168.0.60&#39; (ECDSA) to the list of known hosts.<br \/>\n\tMon Mar 28 00:15:43 2016 [Z0][TM][I]: cp: cannot stat &#39;\/var\/lib\/one\/datastores\/1\/ac152a0c5c61978e8448f68ade249a98&#39;: No such file or directory<br \/>\n\tMon 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<br \/>\n\tMon Mar 28 00:15:43 2016 [Z0][TM][I]: ExitCode: 1<br \/>\n\tMon 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<br \/>\n\tMon Mar 28 00:15:43 2016 [Z0][DiM][I]: New VM state is FAILED\n<\/p>\n<p>\n\t[oneadmin@opennebula01 .ssh]$\n<\/p>\n<p>\n\t<strong>SOLUTION<\/strong>\n<\/p>\n<p>\n\tEnsure that the mount is possible and that the NFS daemon is running on OpenNebula:\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\"><span style=\"line-height: 1.6em;\"><strong>\/etc\/fstab<\/strong><br \/>\n\t192.168.0.70:\/var\/lib\/one\/ &nbsp;\/var\/lib\/one\/ &nbsp;nfs &nbsp; soft,intr,rsize=8192,wsize=8192,noauto<\/span><\/span><\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">[oneadmin@opennebula01 .ssh]<strong>$ cat \/etc\/exports<\/strong><br \/>\n\t\/var\/lib\/one\/ *(rw,sync,no_subtree_check,root_squash)<br \/>\n\t[oneadmin@opennebula01 .ssh]<strong>$ ps -ef|grep -i nfs<\/strong><br \/>\n\toneadmin 12481 &nbsp;9559 &nbsp;0 00:22 pts\/0 &nbsp; &nbsp;00:00:00 grep &#8211;color=auto -i nfs<br \/>\n\t[oneadmin@opennebula01 .ssh]$<br \/>\n\t[oneadmin@opennebula01 .ssh]$<\/span><\/span>\n<\/p>\n<p style=\"margin-left: 40px;\">\n\t<span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">[root@opennebula01 ~]# systemctl start nfs<br \/>\n\t[root@opennebula01 ~]#<\/span><\/span>\n<\/p>\n<p>\n\tAlos if you note above, I had used noauto in \/etc\/fstab. &nbsp;Change to auto if you trust the NFS won&#39;t lock up your boot order getting stuck on NFS.\n<\/p>\n<p>\n\tCheers,<br \/>\n\tTK\n<\/p>\n<p>\n\t&nbsp;<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Small problem encountered when instantiating a virtual machine on OpenNebula (). &nbsp; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2818","post","type-post","status-publish","format-standard","hentry","category-unix-linux-admin-stuff"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/2818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/comments?post=2818"}],"version-history":[{"count":3,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/2818\/revisions"}],"predecessor-version":[{"id":2821,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/posts\/2818\/revisions\/2821"}],"wp:attachment":[{"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/media?parent=2818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/categories?post=2818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microdevsys.com\/wp\/wp-json\/wp\/v2\/tags?post=2818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}