[one-users] CONTEXT Issue with Vmware

Bharat Bagai bagai_bharat at hotmail.com
Mon Sep 19 00:00:59 PDT 2011




Hi All

 

I have facing an issue while passing CONTEXT value to VM on
ESXI thru OpenNebula.  My environment
contains ESXI with VMWARE Hypervisor, Front End Machine & shared NFS folder
on other machine that are connected to both machines. I am able to deploy
machine with vmdk disk without passing context value. Now, I am trying to
implement a scenario with iso file. I am using OPennebula 2.2 ( on RHEL) with
ESXI 4.1

 

The following are files

 

ut.img

-------------------------------------------------------

NAME="ttyiso"

DESCRIPTION="ttyiso i686 bits"

PATH =
"/srv/cloud/one/var/images/iso/ut-ttylinux-i686-12.6.iso"

TYPE = OS

-------------------------------------------------------

 

ut.vm

----------------------------------------------------------------------

NAME   =
"ttyiso"

VCPU    = 1

MEMORY = 256

OS = [ARCH = i686, BOOT = CDROM]

 

DISK   = [ IMAGE  = "ttyiso"]

 

#DISK = [ IMAGE = "Empty Datablock" ]

DISK = [ TYPE   = fs,

         SIZE   = 2048,

         FORMAT =
ext3,

         SAVE   = yes,

         TARGET = hda
]

 

DISK = [ TYPE     =
swap,

         SIZE     = 512,

         READONLY =
"no" ]

 

DISK = [ TYPE   =
cdrom,

        SOURCE =
/srv/cloud/one/var/images/iso/ut-ttylinux-i686-12.6.iso,

        READONLY =
yes]

 

NIC    = [
NETWORK_ID=0 ]

REQUIREMENTS = "HYPERVISOR=\"vmware\""

CONTEXT = [

hostname = "$NAME-$VMID",

ip_public = "$NIC[IP,NETWORK=\"eth0\"]",

dns = "192.168.0.1"

files = "/srv/cloud/one/.ssh/id_rsa.pub
/srv/cloud/one/init.sh"

]

-------------------------------------------------------------------------

 

First I register this image thru onevmware command

# oneimage register ut.img

# onevm create ut.vm

 

After creating VM, it starts deploying on last host &
following are the logs. As cloning is done fine but gives error while deploying
CONTEXT

 

----------------------------------------------------------------------------------------

Mon Sep 19 10:54:36 2011 [TM][I]: tm_clone.sh: Executed
"chmod a+rw /srv/cloud/one/var/imag

es/33/images/disk.3".

Mon Sep 19 10:54:36 2011 [TM][I]: COMMAND not found: CONTEXT
/srv/cloud/one/var/33/context.

sh host12:/srv/cloud/one/var/images/33/images/disk.4.

Mon Sep 19 10:54:36 2011 [TM][E]: Error excuting image
transfer script: COMMAND not found:

CONTEXT /srv/cloud/one/var/33/context.sh
host12:/srv/cloud/one/var/images/33/images/disk.4.

Mon Sep 19 10:54:36 2011 [DiM][I]: New VM state is FAILED

Mon Sep 19 10:54:36 2011 [TM][W]: Ignored: LOG - 33
tm_delete.sh: Deleting /srv/cloud/one/v

ar/33/images

 

Mon Sep 19 10:54:36 2011 [TM][W]: Ignored: LOG - 33
tm_delete.sh: Executed "rm -rf /srv/clo

ud/one/var/33/images".

 

Mon Sep 19 10:54:36 2011 [TM][W]: Ignored: TRANSFER SUCCESS
33 -

---------------------------------------------------------------------------------------------------

The following are files ……

bash-3.2$ ls -l /srv/cloud/one/var/32/

total 16

-rw-r--r-- 1 oneadmin cloud 
109 Sep 19 10:46 context.sh

-rw-r--r-- 1 oneadmin cloud  
50 Sep 19 10:46 transfer.0.delete

-rw-r--r-- 1 oneadmin cloud 
505 Sep 19 10:46 transfer.0.prolog

-rw-r--r-- 1 oneadmin cloud 2824 Sep 19 10:53 vm.log

 

Thanks in advance

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110919/886699fc/attachment-0002.htm>


More information about the Users mailing list