Hi,
I am trying to start a node using libvirt on ESX hypervisor. Before starting I am performing the following steps:
1) vol-create datastore1 /local/new_volume.xml (Creating a volume in pool)
2) define /local/esxdomain.xml (Defining a node)
3) start MyNode (Starting a node)
I tried to get the status of my node and it is showing running 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.
Any help is appreciated... :)
new_volume.xml:
<volume>
<name>test/MyNode.vmdk</name>
<allocation>0</allocation>
<capacity unit='G'>3</capacity>
<target>
<path>/local/vmdk/MyNode.vmdk</path>
<format type='vmdk'/>
</target>
</volume>
esxdomain.xml:
<domain type='vmware'>
<name>test</name>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<console>/dev/console</console>
<os>
<type arch='x86_64'>hvm</type>
</os>
<devices>
<disk type='file' device='disk'>
<source file='[datastore1] test/MyNode.vmdk'/>
<target dev='sda' bus='scsi'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='scsi' index='0' model='lsilogic'/>
<!--controller type='scsi' index='0'/-->
<interface type='bridge'>
<mac address='00:50:56:0f:01:01'/>
<source bridge='VM Network'/>
</interface>
<interface type='bridge'>
<mac address='00:50:56:0f:01:02'/>
<source bridge='dummyPortGroup1'/>
</interface>
<interface type='bridge'>
<mac address='00:50:56:0f:01:03'/>
<source bridge='dummyPortGroup2'/>
</interface>
</devices>
</domain>
Regards,
Varun