<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><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: tinova79@gmail.com<br>> Date: Mon, 19 Sep 2011 12:12:44 +0200<br>> Subject: Re: [one-users] CONTEXT Issue with Vmware<br>> To: bagai_bharat@hotmail.com<br>> CC: users@lists.opennebula.org<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 | dsa-research.org/tinova<br>> Virtualization Technology Engineer / Researcher<br>> OpenNebula Toolkit | opennebula.org<br>> <br>> <br>> <br>> On Mon, Sep 19, 2011 at 9:00 AM, Bharat Bagai <bagai_bharat@hotmail.com> 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>> > Users@lists.opennebula.org<br>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br>> ><br>> ><br></div> </div></body>
</html>