[one-users] OpenNebula VMWare LCM_State BOOT

Tino Vazquez tinova at fdi.ucm.es
Wed Apr 28 06:56:36 PDT 2010


Hi Yih,

That is interesting, I've opened a ticket [1] to fix the tm_delete.sh
bug, please feel free to annotate your patch in the ticket comments.

Regarding the malfunction of the "one_vmm_vmware", can you check the
log of vmware server to see if the connection is attempted? Is the
port 443 accessible from the OpenNebula server (you may want to try
telnet into it).

Best regards,

-Tino

[1] http://dev.opennebula.org/issues/225
--
Constantino Vázquez, Grid & Virtualization Technology
Engineer/Researcher: http://www.dsa-research.org/tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



On Tue, Apr 27, 2010 at 12:30 PM, Yih Leong, Sun. <yihleong at gmail.com> wrote:
> With regards to the tm_delete.sh, there seems to be a bug in the script.
> tm_delete.sh: Executed "rm -rf
> /vmware/store/one-yl-desktop.besc.ac.uk:/var/lib/one/21/images".
>
> in tm_delete.sh, it tried to grep the VM_ID=`echo $1 | sed -e
> 's/.*\/\([0-9]\+\)\/images\/.*/\1/'`
> However, $1 is passed in as
> /vmware/store/one-yl-desktop.besc.ac.uk:/var/lib/one/21/images without
> trailing slash.
> So the sed is not succeeded. I have modifed the tm_delete.sh to exclude the
> trailing slash so there is no problem on tm_delete.sh anymore.
>
> However, it still doesn't solve my problem. The vm is still in boot state.
>
>> $ONE_LOCATION/lib/mads/one_vmm_vmware --username <username> --password
>> <password>
> MONITOR 0 <fqdn-vmware-server>
>
> This doesn't return anything. Nothing happened.
> It seems like ONE is not communicating with vmware server.
> The vmware server is setup using default configuration.
>
>
> On Tue, Apr 27, 2010 at 11:21 AM, Yih Leong, Sun. <yihleong at gmail.com>
> wrote:
>>
>> > $ONE_LOCATION/lib/mads/one_vmm_vmware --username <username> --password
>> > <password>
>> MONITOR 0 <fqdn-vmware-server>
>>
>> It shows nothing. Nothing happen.
>> It seems like ONE is not communicating with vmware server.
>> The vmware server is setup using default configuration.
>>
>>
>>
>>
>> On Tue, Apr 27, 2010 at 11:09 AM, Tino Vazquez <tinova at fdi.ucm.es> wrote:
>>>
>>> Hi Yih,
>>>
>>> Strange, I just can't figure out how you can have the
>>>
>>> ---
>>> tm_delete.sh: Executed "rm -rf
>>> /vmware/store/one-yl-desktop.besc.ac.uk:/var/lib/one/21/images".
>>> ---
>>>
>>> log message with the DATASTORE_PATH set to "/vmware/store/"? Take a
>>> look at etc/tm_vmware/tm_vwmare.conf to ensure you are running the
>>> right tm_delete.sh.
>>>
>>> Also, I am wary about the connection of the drivers to the VMware
>>> server. Let's try the monitoring mad by hand, the driver will expect
>>> an input from stdin, like:
>>>
>>> > $ONE_LOCATION/lib/mads/one_vmm_vmware --username <username> --password
>>> > <password>
>>> MONITOR 0 <fqdn-vmware-server>
>>>
>>>
>>> You should receive a MONITOR SUCESS <mon_information>.
>>>
>>> Best regards,
>>>
>>> -Tino
>>>
>>> --
>>> Constantino Vázquez, Grid & Virtualization Technology
>>> Engineer/Researcher: http://www.dsa-research.org/tinova
>>> DSA Research Group: http://dsa-research.org
>>> Globus GridWay Metascheduler: http://www.GridWay.org
>>> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>>
>>>
>>>
>>> On Fri, Apr 23, 2010 at 9:36 AM, Yih Leong, Sun. <yihleong at gmail.com>
>>> wrote:
>>> > Yes. that's what i've set it to.
>>> >
>>> >
>>> > On Thu, Apr 22, 2010 at 4:36 PM, Tino Vazquez <tinova at fdi.ucm.es>
>>> > wrote:
>>> >>
>>> >> Oops, my mistake, i meant "/vmware/store/"
>>> >>
>>> >> --
>>> >> Constantino Vázquez, Grid & Virtualization Technology
>>> >> Engineer/Researcher: http://www.dsa-research.org/tinova
>>> >> DSA Research Group: http://dsa-research.org
>>> >> Globus GridWay Metascheduler: http://www.GridWay.org
>>> >> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>> >>
>>> >>
>>> >>
>>> >> On Thu, Apr 22, 2010 at 5:26 PM, Yih Leong, Sun. <yihleong at gmail.com>
>>> >> wrote:
>>> >> > No.
>>> >> > one-21, the "21" is the vm id generated by the opennebula.
>>> >> >
>>> >> >
>>> >> > On Thu, Apr 22, 2010 at 3:52 PM, Tino Vazquez <tinova at fdi.ucm.es>
>>> >> > wrote:
>>> >> >>
>>> >> >> The tm_delete.sh from the vmware tm scripts suite tries to
>>> >> >>
>>> >> >> ---8<----
>>> >> >> exec_and_log "rm -rf $DATASTORE_PATH/one-$VM_ID"
>>> >> >> --->8----
>>> >> >>
>>> >> >> From the info provided, seems like the $DATASTORE_PATH should be
>>> >> >> set
>>> >> >> to "/vmware/store/one-21"
>>> >> >>
>>> >> >> Best,
>>> >> >>
>>> >> >> -Tino
>>> >> >>
>>> >> >> --
>>> >> >> Constantino Vázquez, Grid & Virtualization Technology
>>> >> >> Engineer/Researcher: http://www.dsa-research.org/tinova
>>> >> >> DSA Research Group: http://dsa-research.org
>>> >> >> Globus GridWay Metascheduler: http://www.GridWay.org
>>> >> >> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> On Thu, Apr 22, 2010 at 3:32 PM, Yih Leong, Sun.
>>> >> >> <yihleong at gmail.com>
>>> >> >> wrote:
>>> >> >> > What i can see is that "one-21" folder is created in the
>>> >> >> > datastore
>>> >> >> > which
>>> >> >> > contains all the vmx files.
>>> >> >> > i.e. /vmware/store/one-21.
>>> >> >> >
>>> >> >> > It is not the one in the tm_delete.sh:
>>> >> >> > /vmware/store/one-yl-desktop.besc.ac.uk:/var/lib/one/21/images
>>> >> >> >
>>> >> >> > On Thu, Apr 22, 2010 at 2:24 PM, Tino Vazquez <tinova at fdi.ucm.es>
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> Hi Yih,
>>> >> >> >>
>>> >> >> >> It creates the image file to the $DATASTORE_PATH, which is
>>> >> >> >> supposed
>>> >> >> >> to
>>> >> >> >> be a NFS or VMFS share exported by the OpenNebula fornt-end to
>>> >> >> >> the
>>> >> >> >> nodes holding the hypervisors. This variable is set in
>>> >> >> >> $ONE_LOCATIONtm_vmware/tm_vmwarerc.
>>> >> >> >>
>>> >> >> >> Regards,
>>> >> >> >>
>>> >> >> >> -Tino
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> Constantino Vázquez, Grid & Virtualization Technology
>>> >> >> >> Engineer/Researcher: http://www.dsa-research.org/tinova
>>> >> >> >> DSA Research Group: http://dsa-research.org
>>> >> >> >> Globus GridWay Metascheduler: http://www.GridWay.org
>>> >> >> >> OpenNebula Virtual Infrastructure Engine:
>>> >> >> >> http://www.OpenNebula.org
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Thu, Apr 22, 2010 at 3:04 PM, Yih Leong, Sun.
>>> >> >> >> <yihleong at gmail.com>
>>> >> >> >> wrote:
>>> >> >> >> > Is it suppose to create any image files?
>>> >> >> >> > When i delete the vm, the logs shows:
>>> >> >> >> > tm_delete.sh: Executed "rm -rf
>>> >> >> >> >
>>> >> >> >> > /vmware/store/one-yl-desktop.besc.ac.uk:/var/lib/one/21/images".
>>> >> >> >> >
>>> >> >> >> > However, I can't find any file/folders
>>> >> >> >> >
>>> >> >> >> > "/vmware/store/one-yl-desktop.besc.ac.uk:/var/lib/one/21/images"
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >> > On Thu, Apr 22, 2010 at 1:41 PM, Yih Leong, Sun.
>>> >> >> >> > <yihleong at gmail.com>
>>> >> >> >> > wrote:
>>> >> >> >> >>
>>> >> >> >> >> I have tried both FQDN and non-FQDN and still the same
>>> >> >> >> >> result.
>>> >> >> >> >> The LCM_STATE still remains "BOOT".
>>> >> >> >> >>
>>> >> >> >> >> onehost show 1:
>>> >> >> >> >> ID                    : 1
>>> >> >> >> >> NAME                  : yl-desktop.besc.ac.uk
>>> >> >> >> >> STATE                 : MONITORING
>>> >> >> >> >> IM_MAD                : im_vmware
>>> >> >> >> >> VM_MAD                : vmm_vmware
>>> >> >> >> >> TM_MAD                : tm_vmware
>>> >> >> >> >>
>>> >> >> >> >> HOST SHARES
>>> >> >> >> >> MAX MEM               : 0
>>> >> >> >> >> USED MEM (REAL)       : 0
>>> >> >> >> >> USED MEM (ALLOCATED)  : 524288
>>> >> >> >> >> MAX CPU               : 0
>>> >> >> >> >> USED CPU (REAL)       : 0
>>> >> >> >> >> USED CPU (ALLOCATED)  : 100
>>> >> >> >> >> RUNNING VMS           : 1
>>> >> >> >> >>
>>> >> >> >> >> On Thu, Apr 22, 2010 at 1:04 PM, Tino Vazquez
>>> >> >> >> >> <tinova at fdi.ucm.es>
>>> >> >> >> >> wrote:
>>> >> >> >> >>>
>>> >> >> >> >>> Hi,
>>> >> >> >> >>>
>>> >> >> >> >>> Do you get the host monitorized with "onehost"? It seems
>>> >> >> >> >>> like
>>> >> >> >> >>> the
>>> >> >> >> >>> connection to the server is never made, are you using the
>>> >> >> >> >>> FQDN?
>>> >> >> >> >>>
>>> >> >> >> >>> Regards,
>>> >> >> >> >>>
>>> >> >> >> >>> -Tino
>>> >> >> >> >>>
>>> >> >> >> >>> --
>>> >> >> >> >>> Constantino Vázquez, Grid & Virtualization Technology
>>> >> >> >> >>> Engineer/Researcher: http://www.dsa-research.org/tinova
>>> >> >> >> >>> DSA Research Group: http://dsa-research.org
>>> >> >> >> >>> Globus GridWay Metascheduler: http://www.GridWay.org
>>> >> >> >> >>> OpenNebula Virtual Infrastructure Engine:
>>> >> >> >> >>> http://www.OpenNebula.org
>>> >> >> >> >>>
>>> >> >> >> >>>
>>> >> >> >> >>>
>>> >> >> >> >>> On Thu, Apr 22, 2010 at 1:47 PM, Yih Leong, Sun.
>>> >> >> >> >>> <yihleong at gmail.com>
>>> >> >> >> >>> wrote:
>>> >> >> >> >>> > Nope. I'm not getting File<..> not found error.
>>> >> >> >> >>> > And there is no other <one-*> folder in the datastore.
>>> >> >> >> >>> >
>>> >> >> >> >>> > This is how i create and deploy the vm.
>>> >> >> >> >>> > 1. onevm create vmware.template
>>> >> >> >> >>> > 2. onevm deploy <vid> <hid>
>>> >> >> >> >>> >
>>> >> >> >> >>> > The oned.log shows that the vm cloning is successful.
>>> >> >> >> >>> > And i can see that it is renaming the vmx file to
>>> >> >> >> >>> > one-<ID>.vmx.
>>> >> >> >> >>> > Both the vmm_vmware.log and im_vmware.log only shows INIT
>>> >> >> >> >>> > SUCCESS
>>> >> >> >> >>> > and
>>> >> >> >> >>> > nothing else.
>>> >> >> >> >>> >
>>> >> >> >> >>> > The <ID>.log shows the following:
>>> >> >> >> >>> > Thu Apr 22 12:29:37 2010 [DiM][I]: New VM state is ACTIVE.
>>> >> >> >> >>> > Thu Apr 22 12:29:37 2010 [LCM][I]: New VM state is PROLOG.
>>> >> >> >> >>> > Thu Apr 22 12:29:37 2010 [VM][I]: Virtual Machine has no
>>> >> >> >> >>> > context
>>> >> >> >> >>> > Thu Apr 22 12:31:47 2010 [TM][I]: tm_clone.sh:
>>> >> >> >> >>> > yl-desktop:/vmware/store/ubuntu_template
>>> >> >> >> >>> > yl.desktop:/var/lib/one/17/images/disk.0
>>> >> >> >> >>> > Thu Apr 22 12:31:47 2010 [TM][I]: tm_clone.sh: Cloning
>>> >> >> >> >>> > yl-desktop:/vmware/store/ubuntu_template
>>> >> >> >> >>> > Thu Apr 22 12:31:47 2010 [LCM][I]: New VM state is BOOT
>>> >> >> >> >>> > Thu Apr 22 12:31:47 2010 [VMM][I]: Generating deployment
>>> >> >> >> >>> > file:
>>> >> >> >> >>> > /var/lib/one/17/deployment.0
>>> >> >> >> >>> >
>>> >> >> >> >>> > The process stop here and nothing else happen, and the VM
>>> >> >> >> >>> > info
>>> >> >> >> >>> > shows
>>> >> >> >> >>> > LCM_STATE as BOOT.
>>> >> >> >> >>> > It seems like the vm doesn't get kick start at all.
>>> >> >> >> >>> >
>>> >> >> >> >>> > ID             : 17
>>> >> >> >> >>> > NAME           : VMwareVM
>>> >> >> >> >>> > STATE          : ACTIVE
>>> >> >> >> >>> > LCM_STATE      : BOOT
>>> >> >> >> >>> > START TIME     : 04/22 12:29:30
>>> >> >> >> >>> > END TIME       : -
>>> >> >> >> >>> > DEPLOY ID:     :
>>> >> >> >> >>> >
>>> >> >> >> >>> > VIRTUAL MACHINE TEMPLATE
>>> >> >> >> >>> > CPU=1
>>> >> >> >> >>> > DISK=[
>>> >> >> >> >>> >   CLONE=yes,
>>> >> >> >> >>> >   SAVE=no,
>>> >> >> >> >>> >   SOURCE=/vmware/store/ubuntu_template ]
>>> >> >> >> >>> > MEMORY=1024
>>> >> >> >> >>> > NAME=VMwareVM
>>> >> >> >> >>> > NIC=[
>>> >> >> >> >>> >   BRIDGE=vbr0,
>>> >> >> >> >>> >   IP=192.168.0.1,
>>> >> >> >> >>> >   MAC=00:03:c0:a8:00:01,
>>> >> >> >> >>> >   NETWORK=VMWareNet,
>>> >> >> >> >>> >   VNID=0 ]
>>> >> >> >> >>> > VMID=17
>>> >> >> >> >>> >
>>> >> >> >> >>> >
>>> >> >> >> >>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>> >> >> >> >>> > Hi,
>>> >> >> >> >>> >
>>> >> >> >> >>> > Are you getting a File<unspecifiedfilename>not found error
>>> >> >> >> >>> > in
>>> >> >> >> >>> > your
>>> >> >> >> >>> > VI
>>> >> >> >> >>> > client?
>>> >> >> >> >>> >
>>> >> >> >> >>> > In that case, try removing in the shared datastore all the
>>> >> >> >> >>> >  <one-*>
>>> >> >> >> >>> > folders.
>>> >> >> >> >>> >
>>> >> >> >> >>> > Regards,
>>> >> >> >> >>> >
>>> >> >> >> >>> > -Tino
>>> >> >> >> >>> >
>>> >> >> >> >>> > On Wed, Apr 21, 2010 at 10:45 AM, Yih Leong, Sun.
>>> >> >> >> >>> > <yihleong at gmail.com>
>>> >> >> >> >>> > wrote:
>>> >> >> >> >>> >>
>>> >> >> >> >>> >> Nope. I can't see the vm from the vmware host
>>> >> >> >> >>> >> (http://localhost:8222/ui).
>>> >> >> >> >>> >> It is not registered at all.
>>> >> >> >> >>> >> I'm using VMWare Server 2.0.
>>> >> >> >> >>> >> However, I can see the vmware template is already copied.
>>> >> >> >> >>> >> And
>>> >> >> >> >>> >> I
>>> >> >> >> >>> >> can
>>> >> >> >> >>> >> run
>>> >> >> >> >>> >> register and start this one-13 from the vmware console.
>>> >> >> >> >>> >> But not from the OpenNebula.
>>> >> >> >> >>> >>
>>> >> >> >> >>> >> On Wed, Apr 21, 2010 at 10:28 AM, Tino Vazquez
>>> >> >> >> >>> >> <tinova at fdi.ucm.es>
>>> >> >> >> >>> >> wrote:
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>> Hi Sun,
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>> If you connect to the VMware host, can you see the
>>> >> >> >> >>> >>> machine
>>> >> >> >> >>> >>> running?
>>> >> >> >> >>> >>> Or
>>> >> >> >> >>> >>> is it registered at least (you should see a one-13
>>> >> >> >> >>> >>> machine)?
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>> Regards,
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>> -Tino
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>> --
>>> >> >> >> >>> >>> Constantino Vázquez, Grid & Virtualization Technology
>>> >> >> >> >>> >>> Engineer/Researcher: http://www.dsa-research.org/tinova
>>> >> >> >> >>> >>> DSA Research Group: http://dsa-research.org
>>> >> >> >> >>> >>> Globus GridWay Metascheduler: http://www.GridWay.org
>>> >> >> >> >>> >>> OpenNebula Virtual Infrastructure Engine:
>>> >> >> >> >>> >>> http://www.OpenNebula.org
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>>
>>> >> >> >> >>> >>> On Mon, Apr 19, 2010 at 2:27 PM, Sun <ssysun at gmail.com>
>>> >> >> >> >>> >>> wrote:
>>> >> >> >> >>> >>> > Unable to deploy/start vmware using OpenNebula.
>>> >> >> >> >>> >>> > The LCM state stopped at BOOT state.
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>> > Mon Apr 19 12:46:42 2010 [DiM][I]: New VM state is
>>> >> >> >> >>> >>> > ACTIVE.
>>> >> >> >> >>> >>> > Mon Apr 19 12:46:42 2010 [LCM][I]: New VM state is
>>> >> >> >> >>> >>> > PROLOG.
>>> >> >> >> >>> >>> > Mon Apr 19 12:46:42 2010 [VM][I]: Virtual Machine has
>>> >> >> >> >>> >>> > no
>>> >> >> >> >>> >>> > context
>>> >> >> >> >>> >>> > Mon Apr 19 12:49:12 2010 [TM][I]: tm_clone.sh: Cloning
>>> >> >> >> >>> >>> > my-desktop:/vmware/store/
>>> >> >> >> >>> >>> > ubuntu
>>> >> >> >> >>> >>> > Mon Apr 19 12:49:12 2010 [LCM][I]: New VM state is
>>> >> >> >> >>> >>> > BOOT
>>> >> >> >> >>> >>> > Mon Apr 19 12:49:12 2010 [VMM][I]: Generating
>>> >> >> >> >>> >>> > deployment
>>> >> >> >> >>> >>> > file:
>>> >> >> >> >>> >>> > /var/lib/one/13/deployment.0
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>> > It stop here and VM never go into active state.
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>> > VIRTUAL MACHINE 13 INFORMATION
>>> >> >> >> >>> >>> > ID             : 13
>>> >> >> >> >>> >>> > NAME           : VMwareVM
>>> >> >> >> >>> >>> > STATE          : ACTIVE
>>> >> >> >> >>> >>> > LCM_STATE      : BOOT
>>> >> >> >> >>> >>> > START TIME     : 04/19 12:46:36
>>> >> >> >> >>> >>> > END TIME       : -
>>> >> >> >> >>> >>> > DEPLOY ID:     :
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>> > VIRTUAL MACHINE TEMPLATE
>>> >> >> >> >>> >>> > CPU=1
>>> >> >> >> >>> >>> > DISK=[
>>> >> >> >> >>> >>> >   CLONE=yes,
>>> >> >> >> >>> >>> >   SAVE=no,
>>> >> >> >> >>> >>> >   SOURCE=/vmware/store/ubuntu ]
>>> >> >> >> >>> >>> > MEMORY=1024
>>> >> >> >> >>> >>> > NAME=VMwareVM
>>> >> >> >> >>> >>> > NIC=[
>>> >> >> >> >>> >>> >   BRIDGE=vbr0,
>>> >> >> >> >>> >>> >   IP=192.168.0.2,
>>> >> >> >> >>> >>> >   MAC=00:03:c0:a8:00:02,
>>> >> >> >> >>> >>> >   NETWORK=VMWareNet,
>>> >> >> >> >>> >>> >   VNID=0 ]
>>> >> >> >> >>> >>> > VMID=13
>>> >> >> >> >>> >>> > _______________________________________________
>>> >> >> >> >>> >>> > Users mailing list
>>> >> >> >> >>> >>> > Users at lists.opennebula.org
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>> >
>>> >> >> >> >>> >>
>>> >> >> >> >>> >
>>> >> >> >> >>> >
>>> >> >> >> >>
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >
>>> >> >
>>> >
>>> >
>>
>
>



More information about the Users mailing list