Hi,<div>During the last week I repeatedly banged my head against this problem, which it seems I cannot solve on my own.</div><div>I'm actually trying to start a VM using opennebula 2.0.1 and a cluster node hosting ESXi hypervisor 4.1 (Trial edition).</div>



<div>I think that most of the issues come from a lack of documentation about the usage of these two tools together.</div><div><br></div><div>Here's an explanation of what i did till now:</div><div>I created the vmware image files (.vmdk, .vmx files and others) using vSphere client by creating a new VM and then installing the OS, which in my case is Ubuntu Server 10.4 i386.</div>



<div>After the OS intallation, I recovered the .vmdk and other files and put them in a separate folder on the opennebula frontend. Then I created the image template "ubuntu.img":</div><div><br></div><div><div><font face="'courier new', monospace">NAME<span style="white-space:pre-wrap">              </span>= "Ubuntu Server"</font></div>


<div><font face="'courier new', monospace">DESCRIPTION<span style="white-space:pre-wrap"> </span>= "Ubuntu Server 10.4 64bit"</font></div><div><br></div><div>I used the onevmware command to generate the image files for opennebula in the image repo:</div>


<div><br></div><div><font face="'courier new', monospace">onevmware register --disk-vmdk Ubuntu\ Server\ 10.4\ i386.vmdk --disk-flat Ubuntu\ Server\ 10.4\ i386-flat.vmdk ubuntu.img</font></div>
<div><br></div><div>I waited a while for openNebula to generate image files in the image repo (srv/cloud/one/var/images folder) and then I set the image to persistent mode (saves time during tests).</div>
<div><br></div><div>I created the vm template ubuntu.vm:</div><div><div><font face="'courier new', monospace">NAME<span style="white-space:pre-wrap"> </span>= "Ubuntu Server"</font></div>
<div><font face="'courier new', monospace">VCPU<span style="white-space:pre-wrap">        </span>= 1</font></div><div><font face="'courier new', monospace">MEMORY<span style="white-space:pre-wrap">     </span>= 1024</font></div>


<div><font face="'courier new', monospace">OS<span style="white-space:pre-wrap">  </span>= [ ARCH = "i686" ]</font></div><div><font face="'courier new', monospace">DISK <span style="white-space:pre-wrap">    </span>= [IMAGE="Ubuntu Server"]</font></div>


<div><font face="'courier new', monospace">NIC <span style="white-space:pre-wrap">        </span>= [NETWORK="Public LAN"]</font></div></div><div><br></div><div>the network "Public LAN" points to the default bridge for VMWare "VM NETWORK":</div>


<div><div><div><br></div><div><font face="'courier new', monospace">$onevnet show 0</font></div><div><font face="'courier new', monospace"><br></font></div>
<div><font face="'courier new', monospace">VIRTUAL NETWORK 0 INFORMATION                                                   </font></div><div><font face="'courier new', monospace">ID:       : 0                   </font></div>


<div><font face="'courier new', monospace">UID:      : 0                   </font></div><div><font face="'courier new', monospace">PUBLIC    : N                   </font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">VIRTUAL NETWORK TEMPLATE                                                        </font></div>
<div><font face="'courier new', monospace">BRIDGE=VM Network</font></div><div><font face="'courier new', monospace">NAME=Public LAN</font></div><div><font face="'courier new', monospace">NETWORK_ADDRESS=192.168.160.0</font></div>


<div><font face="'courier new', monospace">NETWORK_SIZE=C</font></div><div><font face="'courier new', monospace">TYPE=RANGED</font></div></div></div><div><br>
</div><div>After launching:</div><div><font face="'courier new', monospace">onevm create ubuntu.vm</font></div><div><br></div><div>I notice that OpenNebula generates a deployment.0 file and then hangs, the vm remains in BOOT state and I cannot find any information about what's happening by reading the logs.</div>


<div><br></div><div>I get these logs:</div><div>oned.conf:</div><div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [DiM][D]: Deploying VM 35</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][D]: Message received: LOG - 35 tm_ln.sh: Creating directory /srv/cloud/one/var/35/images</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][D]: Message received: LOG - 35 tm_ln.sh: Executed "mkdir -p /srv/cloud/one/var/35/images".</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][D]: Message received: LOG - 35 tm_ln.sh: Executed "chmod a+w /srv/cloud/one/var/35/images".</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][D]: Message received: LOG - 35 tm_ln.sh: Link /srv/cloud/one/var/images/6e437b6b686a00115997267786f981704913eed4</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][D]: Message received: LOG - 35 tm_ln.sh: Executed "ln -s ../../images/6e437b6b686a00115997267786f981704913eed4 /srv/cloud/one/var/35/images/disk.0".</font></div>
</div><div><font class="Apple-style-span" size="1" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">vm.log:</font></div><div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [DiM][I]: New VM state is ACTIVE.</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [LCM][I]: New VM state is PROLOG.</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [VM][I]: Virtual Machine has no context</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][I]: tm_ln.sh: Creating directory /srv/cloud/one/var/35/images</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][I]: tm_ln.sh: Executed "mkdir -p /srv/cloud/one/var/35/images".</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][I]: tm_ln.sh: Executed "chmod a+w /srv/cloud/one/var/35/images".</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][I]: tm_ln.sh: Link /srv/cloud/one/var/images/6e437b6b686a00115997267786f981704913eed4</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [TM][I]: tm_ln.sh: Executed "ln -s ../../images/6e437b6b686a00115997267786f981704913eed4 /srv/cloud/one/var/35/images/disk.0".</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [LCM][I]: New VM state is BOOT</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Tue Feb  1 11:04:56 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/35/deployment.0</font></div>
</div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">deployment.0:</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><div>
<domain type='vmware'></div><div><span class="Apple-tab-span" style="white-space:pre">      </span><name>one-35</name></div><div><span class="Apple-tab-span" style="white-space:pre">      </span><vcpu>1</vcpu></div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span><memory>1048576</memory></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><os></div><div><span class="Apple-tab-span" style="white-space:pre">           </span><type arch='i686'>hvm</type></div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span></os></div><div><span class="Apple-tab-span" style="white-space:pre">  </span><devices></div><div><span class="Apple-tab-span" style="white-space:pre">              </span><disk type='file' device='disk'></div>
<div><span class="Apple-tab-span" style="white-space:pre">                      </span><source file='[images] 35/images/disk.0/disk.vmdk'/></div><div><span class="Apple-tab-span" style="white-space:pre">                   </span><target dev='sda'/></div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span></disk></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><interface type='bridge'></div><div><span class="Apple-tab-span" style="white-space:pre">                      </span><source bridge='VM Network'/></div>
<div><span class="Apple-tab-span" style="white-space:pre">                      </span><mac address='02:00:c0:a8:a0:01'/></div><div><span class="Apple-tab-span" style="white-space:pre">             </span></interface></div><div><span class="Apple-tab-span" style="white-space:pre">   </span></devices></div>
<div></domain></div></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">"onevm list" output:</font></div>
<div><div style="font-family: 'courier new', monospace; ">oneadmin@custom2:~/var/35$ onevm list</div><div style="font-family: 'courier new', monospace; ">   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME</div>
<div style="font-family: 'courier new', monospace; ">   35 oneadmin Ubuntu S boot   0      0K  <a href="http://custom6.sns.it">custom6.sns.it</a> 00 00:03:31</div><div style="font-family: 'courier new', monospace; ">
<br></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">That should be all for the logs.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">I think the problem is with the deployment.0 file, probably this file is not complete.</font></div>
</div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">I tried to produce an deploment xml file from the original vmx using the instruction given here:</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://libvirt.org/drvesx.html">http://libvirt.org/drvesx.html</a></font></div>
<div><br></div><div>What i got is this:</div><div><div><div><div><font class="Apple-style-span" face="'courier new', monospace"><domain type='vmware'></font></div><div><font class="Apple-style-span" face="'courier new', monospace">  <name>Ubuntu Server 10.4 i386</name></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  <uuid>564da5a4-d01e-279b-0f2d-b725311138b5</uuid></font></div><div><font class="Apple-style-span" face="'courier new', monospace">  <memory>524288</memory></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  <currentMemory>524288</currentMemory></font></div><div><font class="Apple-style-span" face="'courier new', monospace">  <vcpu>1</vcpu></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  <os></font></div><div><font class="Apple-style-span" face="'courier new', monospace">    <type arch='i686'>hvm</type></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  </os></font></div><div><font class="Apple-style-span" face="'courier new', monospace">  <clock offset='utc'/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  <on_poweroff>destroy</on_poweroff></font></div><div><font class="Apple-style-span" face="'courier new', monospace">  <on_reboot>restart</on_reboot></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  <on_crash>destroy</on_crash></font></div><div><font class="Apple-style-span" face="'courier new', monospace">  <devices></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    <disk type='file' device='disk'></font></div><div><font class="Apple-style-span" face="'courier new', monospace">      <source file='[?] ?/Ubuntu Server 10.4 i386.vmdk'/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">      <target dev='sda' bus='scsi'/></font></div><div><font class="Apple-style-span" face="'courier new', monospace">      <address type='drive' controller='0' bus='0' unit='0'/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    </disk></font></div><div><font class="Apple-style-span" face="'courier new', monospace">    <disk type='file' device='cdrom'></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">      <source file='[images] isos/ubuntu-10.04.1-server-i386.iso'/></font></div><div><font class="Apple-style-span" face="'courier new', monospace">      <target dev='hdc' bus='ide'/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">      <address type='drive' controller='0' bus='1' unit='0'/></font></div><div><font class="Apple-style-span" face="'courier new', monospace">    </disk></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    <controller type='scsi' index='0' model='lsilogic'/></font></div><div><font class="Apple-style-span" face="'courier new', monospace">    <controller type='ide' index='0'/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">    <interface type='bridge'></font></div><div><font class="Apple-style-span" face="'courier new', monospace">      <mac address='00:0c:29:11:38:b5'/></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">      <source bridge='VM Network'/></font></div><div><font class="Apple-style-span" face="'courier new', monospace">    </interface></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">  </devices></font></div><div><font class="Apple-style-span" face="'courier new', monospace"></domain></font></div></div></div>
</div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">I hope this helps because I'm really stuck with this problem. :-)</font></div>
<div>If you know some resources about the usage of vmware esxi 4.1 hypervisor and opennebula please tell me, I think that the documentation on the opennebula website is somehow incomplete on this part.</div><div><br></div>
<div>Thank you in advance</div><br>-- <br>Luigi Fortunati<br>
</div>