<div dir="ltr"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">Hi,</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">I am trying to start a node using libvirt on ESX hypervisor. Before starting I am performing the following steps:</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">1) vol-create datastore1 /local/new_volume.xml (Creating a volume in pool)</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">2) define /local/esxdomain.xml (Defining a node)</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">3) start MyNode (Starting a node)</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">I tried to get the status of my node and it is showing <i>running </i>but I am not able to ping my node (as it is in network). I later got the console of my node and found out that my node is not even getting started. It says "Operating System Not Found". I guess this is because my vmdk image file is not getting copied and the first command is just placing two files .vmdk and *-flat.vmdk (these are dummy files I guess). But it is not placing my original .vmdk files. How to place the original vmdk file in datastore. If I place it using scp command then libvirt pops out a message saying "Could not start domain: GenericVmConfigFault". How to resolve this error. I am pasting my xml files below.</span><div>
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">Any help is appreciated... :)</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><b><u>new_volume.xml:</u></b></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><i><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><volume></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <name>test/MyNode.vmdk</name></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <allocation>0</allocation></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <capacity unit='G'>3</capacity></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <target></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">     <path>/local/vmdk/MyNode.vmdk</path></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">     <format type='vmdk'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  </target></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"></volume></span></i><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><b><u><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">esxdomain.xml:</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
</u></b><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><i><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><domain type='vmware'></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <name>test</name></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <memory>1048576</memory></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <currentMemory>1048576</currentMemory></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <vcpu>1</vcpu></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <console>/dev/console</console></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <os></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">    <type arch='x86_64'>hvm</type></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  </os></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  <devices></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">    <disk type='file' device='disk'></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <source file='[datastore1] test/MyNode.vmdk'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <target dev='sda' bus='scsi'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <address type='drive' controller='0' bus='0' unit='0'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">    </disk></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">    <controller type='scsi' index='0' model='lsilogic'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">    <!--controller type='scsi' index='0'/--></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">    <interface type='bridge'></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <mac address='00:50:56:0f:01:01'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <source bridge='VM Network'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"> </interface></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"> <interface type='bridge'></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <mac address='00:50:56:0f:01:02'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <source bridge='dummyPortGroup1'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"> </interface></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"> <interface type='bridge'></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <mac address='00:50:56:0f:01:03'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">      <source bridge='dummyPortGroup2'/></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"> </interface></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">  </devices></span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"></domain></span></i><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"><span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">Regards,</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">
<span style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif">Varun</span><br style="color:rgb(0,0,0);font-family:verdana,helvetica,arial,sans-serif"></div></div>