Hi,<br><br>I am also experiencing the same challenge in 2.2 RC1. I commented out "fix_dst_path" in /usr/lib/one/tm_commands/nfs/tm_ln.sh and that "fixed it" so that it created the links in the right directory (/srv/cloud) on the kvm nodes.<br>
<br>Best regards,<br>Oscar Elfving<br><br><div class="gmail_quote">On Fri, Mar 18, 2011 at 10:44 AM, Tino Vazquez <span dir="ltr"><<a href="mailto:tinova@opennebula.org">tinova@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Please try commenting out the VM_DIR section, restart the oned daemon<br>
and launch again the VM.<br>
<br>
VM_DIR is only needed if the mount point of the nfs share is different<br>
between the front-end and the nodes.<br>
<br>
Best regards.<br>
<br>
-Tino<br>
<font color="#888888"><br>
--<br>
Constantino Vázquez Blanco, MSc<br>
OpenNebula Major Contributor<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Mar 17, 2011 at 7:59 PM, Ryan Aydelott <<a href="mailto:ryan.aydelott@vibes.com">ryan.aydelott@vibes.com</a>> wrote:<br>
> Hello, first time opennebula user here and I am having an issue with onevm creation, files don't seem to link/write to the right server - perhaps I just need a hint? I'm certain that I am missing something fairly obvious:<br>
><br>
> Environment:<br>
> opennebula 2.1.80 on centos 5.5 rpm install<br>
> xen hypervisor<br>
> both share nfsmount /srv/cloud/<br>
><br>
> Here are the relevant paths in oned.conf:<br>
><br>
> VM_DIR=/srv/cloud/one/var<br>
> SCRIPTS_REMOTE_DIR=/var/tmp/one<br>
> IMAGE_REPOSITORY_PATH = /srv/cloud/var/images<br>
><br>
><br>
> A quick sanity check:<br>
><br>
> [oneadmin@binaryfinary 32]$ onehost list<br>
> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT<br>
> 4 xen01 default 0 800 800 800 32G 30.7G on<br>
><br>
> [oneadmin@binaryfinary 32]$ oneimage list<br>
> ID USER NAME TYPE REGTIME PUB PER STAT #VMS<br>
> 1 oneadmin gentoobase OS Mar 15, 2011 23:08 No Yes rdy 0<br>
><br>
> I try to create the VM:<br>
><br>
> [oneadmin@binaryfinary images]$ onevm create gentoobase.one<br>
><br>
> I check, it fails:<br>
><br>
> [oneadmin@binaryfinary images]$ onevm list<br>
> ID USER NAME STAT CPU MEM HOSTNAME TIME<br>
> 33 oneadmin gentooba fail 0 0K xen01 00 00:00:03<br>
><br>
> Output from oned.log:<br>
><br>
> Thu Mar 17 13:55:00 2011 [DiM][D]: Deploying VM 33<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Creating directory /var/lib/one/33/images<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Executed "mkdir -p /var/lib/one/33/images".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Executed "chmod a+w /var/lib/one/33/images".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Link /srv/cloud/var/images/64c39c5ba5e9aa60c93613f9bf9ab41714dfb1db<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Executed "ln -s /srv/cloud/var/images/64c39c5ba5e9aa60c93613f9bf9ab41714dfb1db /var/lib/one/33/images/disk.0".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Creating directory /var/lib/one/33/images<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "mkdir -p /var/lib/one/33/images".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "chmod a+w /var/lib/one/33/images".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Creating 4096Mb image in /var/lib/one/33/images/disk.1<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "/bin/dd if=/dev/zero of=/var/lib/one/33/images/disk.1 bs=1 count=1 seek=4096M".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Initializing swap space<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "/sbin/mkswap /var/lib/one/33/images/disk.1".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "chmod a+w /var/lib/one/33/images/disk.1".<br>
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: TRANSFER SUCCESS 33 -<br>
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 Command execution fail: 'if [ -x "/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy /srv/cloud/one/var/33/images/deployment.0; else exit 42; fi'<br>
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 STDERR follows.<br>
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 Error: Device 768 (tap) could not be connected. /srv/cloud/one/var/33/images/disk.0 does not exist<br>
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 ExitCode: 1<br>
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: DEPLOY FAILURE 33 Error: Device 768 (tap) could not be connected. /srv/cloud/one/var/33/images/disk.0 does not exist<br>
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: ExitCode: 1<br>
> Thu Mar 17 13:55:02 2011 [TM][D]: Message received: LOG - 33 tm_delete.sh: Deleting /var/lib/one/33/images<br>
> Thu Mar 17 13:55:02 2011 [TM][D]: Message received: LOG - 33 tm_delete.sh: Executed "rm -rf /var/lib/one/33/images".<br>
> Thu Mar 17 13:55:02 2011 [TM][D]: Message received: TRANSFER SUCCESS 33 -<br>
><br>
> In the VM Dir:<br>
><br>
> [oneadmin@binaryfinary 33]$ pwd<br>
> /var/lib/one/33<br>
> [oneadmin@binaryfinary 33]$ ls<br>
> deployment.0 transfer.0.delete transfer.0.prolog<br>
><br>
> [oneadmin@binaryfinary 33]$ cat deployment.0<br>
> name = 'one-33'<br>
> #O CPU_CREDITS = 1024<br>
> memory = '2048'<br>
> kernel = '/srv/cloud/var/images/xen-domU'<br>
> root = '/dev/hda rw'<br>
> extra = 'ro console=hvc0 xencons=hvc0'<br>
> disk = [<br>
> 'tap:aio:/srv/cloud/one/var/33/images/disk.0,hda,w',<br>
> 'tap:aio:/srv/cloud/one/var/33/images/disk.1,hdb,w',<br>
> ]<br>
> vif = [<br>
> ' mac=02:00:ac:14:5a:96,ip=172.20.90.150,bridge=xenbr0',<br>
> ]<br>
><br>
> [oneadmin@binaryfinary 33]$ cat transfer.0.prolog<br>
> LN binaryfinary.vibes.local:/srv/cloud/var/images/64c39c5ba5e9aa60c93613f9bf9ab41714dfb1db xen01:/srv/cloud/one/var/33/images/disk.0<br>
> MKSWAP 4096 xen01:/srv/cloud/one/var/33/images/disk.1<br>
><br>
> [oneadmin@binaryfinary 33]$ cat transfer.0.delete<br>
> DELETE xen01:/srv/cloud/one/var/33/images<br>
><br>
><br>
> So what am I missing?<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br>