Hello Bharat,<div><br></div><div> "Mon Oct 17 14:01:44 2011 [TM][I]: COMMAND not found: CONTEXT /var/lib/one/var/13/context.sh ESXI:/var/lib/one/var/images/13/images/disk.1."</div><div><br></div><div>About the above error, a little bit of theory first. Each transfer manager has its configuration stored in /etc/one/tm_(TransferManagerName)/tm_(TransferManagerName).conf. For example the shared transfer manager stores its configuration file in /etc/one/tm_shared/tm_shared.conf, the ssh one in /etc/one/tm_ssh/tm_ssh.conf. In that configuration file there is the variable CONTEXT which points to a shell script that actually does the work of creating the contextualization iso.</div>
<div><br></div><div>You'll notice, for example at tm_shared driver that the CONTEXT variable points to "shared/tm_context.sh". The place where you find the actual script depends on your installation type - self contained or system wide. If it's self contained you'll find the script in $ONE_LOCATION/lib/tm_commands/$CONTEXT. If it's system wide you can find it in /usr/lib/one/tm_commands/$CONTEXT.</div>
<div><br></div><div>Depending on your Transfer Manager driver, take a look at that script and see what it does and why does it fail.</div><div><br></div><div>Anyway, something similar happened to me a few weeks ago, when I've first installed ONe3.0 and started to use the contextualization method. My install is on Debian Squeeze and it seems that the package mkisofs changed it's name into genisoimage. With this change the binary name changed also from mkisofs to genisoimage. The contextualization feature was failing because it couldn't find the mkisofs binary. Making a symlink of mkisofs to genisoimage solved my problem. Ohh and by the way, if your system doesn't provide mkisofs/genisoimage you have to install it. Debian standard install doesn't have mkisofs installed.</div>
<div><br></div><div>Note to developers: If mkisofs changed name and all Linux distro are now providing only genisoimage package wouldn't be nice to change the MKISOFS variable from /usr/lib/one/sh/scripts_common.sh to the new name of the binary - genisoimage. Yes, I know we can do that by our selfs after installation, or make a symlink, but I think this thing could ease the life of a ONe newcomer :).</div>
<div><br></div><div>Have a great day,</div><div>v </div><div><br><div class="gmail_quote">On Mon, Oct 17, 2011 at 12:13 PM, Bharat Bagai <span dir="ltr"><<a href="mailto:bagai_bharat@hotmail.com">bagai_bharat@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">
Hi Tino<br><br>Few days back, I write following query in this forum & you advised me to upgrade with OpenNebula ver. 3.0. Now, i had upgraded to stable version of OpenNebula ver. 3.0 but when i tried the following scenario passing CONTEXT Values with VMware, still i am getting following error.<br>
<br><b>one.vm<br></b><br>NAME = ttylinux-vm-05<br>VCPU = 1<br>MEMORY = 512<br>DISK = [ IMAGE_ID="4" ]<br>NIC = [ NETWORK_ID=0 ]<br>CONTEXT = [<br>hostname = "testcentos",<br>ip_private = 172.168.0.4,<br>
dns = 172.168.0.1<br> ]<br><br><b>VM.log</b><br><br>tail -f /var/lib/one/var/13/vm.log<br>Mon Oct 17 14:01:13 2011 [DiM][I]: New VM state is ACTIVE.<br>Mon Oct 17 14:01:13 2011 [LCM][I]: New VM state is PROLOG.<br>
Mon Oct 17 14:01:44 2011 [TM][D]: tm_clone.sh: FrontEND:/var/lib/one/var/images/ae2ecc9113497f5e7ca34d0f6ce39591 ESXI:/var/lib/one/var/images/13/images/disk.0<br>Mon Oct 17 14:01:44 2011 [TM][D]: tm_clone.sh: DST: /var/lib/one/var/images/13/images/disk.0<br>
Mon Oct 17 14:01:44 2011 [TM][I]: tm_clone.sh: Creating directory /var/lib/one/var/images/13/images<br>Mon Oct 17 14:01:44 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /var/lib/one/var/images/13/images".<br>Mon Oct 17 14:01:44 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /var/lib/one/var/images/13/images".<br>
Mon Oct 17 14:01:44 2011 [TM][I]: tm_clone.sh: Cloning /var/lib/one/var/images/ae2ecc9113497f5e7ca34d0f6ce39591/images<br>Mon Oct 17 14:01:44 2011 [TM][I]: tm_clone.sh: Executed "cp -r /var/lib/one/var/images/ae2ecc9113497f5e7ca34d0f6ce39591 /var/lib/one/var/images/13/images/disk.0".<br>
Mon Oct 17 14:01:44 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /var/lib/one/var/images/13/images/disk.0".<br>Mon Oct 17 14:01:44 2011 [TM][I]: ExitCode: 0<br>Mon Oct 17 14:01:44 2011 [TM][I]: COMMAND not found: CONTEXT /var/lib/one/var/13/context.sh ESXI:/var/lib/one/var/images/13/images/disk.1.<br>
Mon Oct 17 14:01:44 2011 [TM][E]: Error excuting image transfer script: COMMAND not found: CONTEXT /var/lib/one/var/13/context.sh ESXI:/var/lib/one/var/images/13/images/disk.1.<br>Mon Oct 17 14:01:44 2011 [DiM][I]: New VM state is FAILED<br>
<br><br>Rest of the scenario is same. Still needs any more information, pls let me know.<br><br><br>(Bharat)<br><br><br><div>> From: <a href="mailto:tinova79@gmail.com" target="_blank">tinova79@gmail.com</a><br>> Date: Mon, 19 Sep 2011 12:12:44 +0200<br>
> Subject: Re: [one-users] CONTEXT Issue with Vmware<br>> To: <a href="mailto:bagai_bharat@hotmail.com" target="_blank">bagai_bharat@hotmail.com</a><br>> CC: <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a><div>
<div></div><div class="h5"><br>> <br>> Dear Bharat,<br>> <br>> OpenNebula 2.2 doesn't have support for contextualization for VMware.<br>> I suggest you upgrade to 3.0Beta2 and download the VMware 3.0Beta1<br>
> drivers.<br>> <br>> Regards,<br>> <br>> -Tino<br>> <br>> --<br>> Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova" target="_blank">dsa-research.org/tinova</a><br>> Virtualization Technology Engineer / Researcher<br>
> OpenNebula Toolkit | <a href="http://opennebula.org" target="_blank">opennebula.org</a><br>> <br>> <br>> <br>> On Mon, Sep 19, 2011 at 9:00 AM, Bharat Bagai <<a href="mailto:bagai_bharat@hotmail.com" target="_blank">bagai_bharat@hotmail.com</a>> wrote:<br>
> > Hi All<br>> ><br>> ><br>> ><br>> > I have facing an issue while passing CONTEXT value to VM on ESXI thru<br>> > OpenNebula. My environment contains ESXI with VMWARE Hypervisor, Front End<br>
> > Machine & shared NFS folder on other machine that are connected to both<br>> > machines. I am able to deploy machine with vmdk disk without passing context<br>> > value. Now, I am trying to implement a scenario with iso file. I am using<br>
> > OPennebula 2.2 ( on RHEL) with ESXI 4.1<br>> ><br>> ><br>> ><br>> > The following are files<br>> ><br>> ><br>> ><br>> > ut.img<br>> ><br>> > -------------------------------------------------------<br>
> ><br>> > NAME="ttyiso"<br>> ><br>> > DESCRIPTION="ttyiso i686 bits"<br>> ><br>> > PATH = "/srv/cloud/one/var/images/iso/ut-ttylinux-i686-12.6.iso"<br>> ><br>
> > TYPE = OS<br>> ><br>> > -------------------------------------------------------<br>> ><br>> ><br>> ><br>> > ut.vm<br>> ><br>> > ----------------------------------------------------------------------<br>
> ><br>> > NAME = "ttyiso"<br>> ><br>> > VCPU = 1<br>> ><br>> > MEMORY = 256<br>> ><br>> > OS = [ARCH = i686, BOOT = CDROM]<br>> ><br>> ><br>> ><br>
> > DISK = [ IMAGE = "ttyiso"]<br>> ><br>> ><br>> ><br>> > #DISK = [ IMAGE = "Empty Datablock" ]<br>> ><br>> > DISK = [ TYPE = fs,<br>> ><br>> > SIZE = 2048,<br>
> ><br>> > FORMAT = ext3,<br>> ><br>> > SAVE = yes,<br>> ><br>> > TARGET = hda ]<br>> ><br>> ><br>> ><br>> > DISK = [ TYPE = swap,<br>
> ><br>> > SIZE = 512,<br>> ><br>> > READONLY = "no" ]<br>> ><br>> ><br>> ><br>> > DISK = [ TYPE = cdrom,<br>> ><br>> > SOURCE = /srv/cloud/one/var/images/iso/ut-ttylinux-i686-12.6.iso,<br>
> ><br>> > READONLY = yes]<br>> ><br>> ><br>> ><br>> > NIC = [ NETWORK_ID=0 ]<br>> ><br>> > REQUIREMENTS = "HYPERVISOR=\"vmware\""<br>> ><br>
> > CONTEXT = [<br>> ><br>> > hostname = "$NAME-$VMID",<br>> ><br>> > ip_public = "$NIC[IP,NETWORK=\"eth0\"]",<br>> ><br>> > dns = "192.168.0.1"<br>
> ><br>> > files = "/srv/cloud/one/.ssh/id_rsa.pub /srv/cloud/one/init.sh"<br>> ><br>> > ]<br>> ><br>> > -------------------------------------------------------------------------<br>
> ><br>> ><br>> ><br>> > First I register this image thru onevmware command<br>> ><br>> > # oneimage register ut.img<br>> ><br>> > # onevm create ut.vm<br>> ><br>> ><br>
> ><br>> > After creating VM, it starts deploying on last host & following are the<br>> > logs. As cloning is done fine but gives error while deploying CONTEXT<br>> ><br>> ><br>> ><br>
> > ----------------------------------------------------------------------------------------<br>> ><br>> > Mon Sep 19 10:54:36 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw<br>> > /srv/cloud/one/var/imag<br>
> ><br>> > es/33/images/disk.3".<br>> ><br>> > Mon Sep 19 10:54:36 2011 [TM][I]: COMMAND not found: CONTEXT<br>> > /srv/cloud/one/var/33/context.<br>> ><br>> > sh host12:/srv/cloud/one/var/images/33/images/disk.4.<br>
> ><br>> > Mon Sep 19 10:54:36 2011 [TM][E]: Error excuting image transfer script:<br>> > COMMAND not found:<br>> ><br>> > CONTEXT /srv/cloud/one/var/33/context.sh<br>> > host12:/srv/cloud/one/var/images/33/images/disk.4.<br>
> ><br>> > Mon Sep 19 10:54:36 2011 [DiM][I]: New VM state is FAILED<br>> ><br>> > Mon Sep 19 10:54:36 2011 [TM][W]: Ignored: LOG - 33 tm_delete.sh: Deleting<br>> > /srv/cloud/one/v<br>> ><br>
> > ar/33/images<br>> ><br>> ><br>> ><br>> > Mon Sep 19 10:54:36 2011 [TM][W]: Ignored: LOG - 33 tm_delete.sh: Executed<br>> > "rm -rf /srv/clo<br>> ><br>> > ud/one/var/33/images".<br>
> ><br>> ><br>> ><br>> > Mon Sep 19 10:54:36 2011 [TM][W]: Ignored: TRANSFER SUCCESS 33 -<br>> ><br>> > ---------------------------------------------------------------------------------------------------<br>
> ><br>> > The following are files ……<br>> ><br>> > bash-3.2$ ls -l /srv/cloud/one/var/32/<br>> ><br>> > total 16<br>> ><br>> > -rw-r--r-- 1 oneadmin cloud 109 Sep 19 10:46 context.sh<br>
> ><br>> > -rw-r--r-- 1 oneadmin cloud 50 Sep 19 10:46 transfer.0.delete<br>> ><br>> > -rw-r--r-- 1 oneadmin cloud 505 Sep 19 10:46 transfer.0.prolog<br>> ><br>> > -rw-r--r-- 1 oneadmin cloud 2824 Sep 19 10:53 vm.log<br>
> ><br>> ><br>> ><br>> > Thanks in advance<br>> ><br>> > _______________________________________________<br>> > Users mailing list<br>> > <a href="mailto:Users@lists.opennebula.org" target="_blank">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></div></div></div> </div>
</div>
<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></blockquote></div><br><br clear="all"><div><br></div>-- <br>network warrior<br>
</div>