[libvirt-users] Error while adding volume through virsh

varun bhatnagar varun292006 at gmail.com
Fri Aug 16 06:13:10 UTC 2013


Hi Ján,

Thanks a lot for the suggestion. It worked and volume is added to the
datastore. Now if I try to start the node it gives an error saying:

Error: internal error: Could not start domain: FileNotFound - File
[datastore1] testNode/cluster.vmdk was not found."

But .vmdk file exist at this location. What is going wrong here can anyobe
plz suggest. Below is my xml:

<domain type='vmware'>
  <name>testNode</name>
  <uuid>50115e16-9bdc-49d7-f171-53c4d7f91710</uuid>
  <memory>1048576</memory>
  <currentMemory>1048576</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64'>hvm</type>
  </os>
  <devices>
    <disk type='file' device='disk'>
      <source file='[datastore1] testNode/cluster.vmdk'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <controller type='scsi' index='0'/>
    <interface type='bridge'>
      <mac address='00:50:56:25:48:c7'/>
      <source bridge='VM Network'/>
    </interface>
  </devices>
</domain>
On 15 Aug 2013 21:16, "Ján Tomko" <jtomko at redhat.com> wrote:

> On 08/15/2013 04:30 PM, varun bhatnagar wrote:
> > Hi,
> >
> > I was trying to add volume...I got one xml snippet and I modified it
> according
> > to my node configuration:
>
> Hi,
>
> could you try specifying the format as well?
>
> >
> > < volume>
> > <name>testNode/cluster.vmdk </name>
> > <allocation>0 </allocation>
> > <capacity unit='G'>2<capacity>
>
> <target>
>     <format type='vmdk'>
> </target>
>
> > </volume>
>
> Jan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130816/4965d880/attachment.htm>


More information about the libvirt-users mailing list