[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] Libvirt ESX: Image file not getting copied to ESX server


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... :)


  <capacity unit='G'>3</capacity>
     <format type='vmdk'/>


<domain type='vmware'>
    <type arch='x86_64'>hvm</type>
    <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'/>
    <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 type='bridge'>
      <mac address='00:50:56:0f:01:02'/>
      <source bridge='dummyPortGroup1'/>
 <interface type='bridge'>
      <mac address='00:50:56:0f:01:03'/>
      <source bridge='dummyPortGroup2'/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]