varun bhatnagar
2013-Aug-15 14:30 UTC
[libvirt-users] Error while adding volume through virsh
Hi, I was trying to add volume...I got one xml snippet and I modified it according to my node configuration: < volume> <name>testNode/cluster.vmdk </name> <allocation>0 </allocation> <capacity unit='G'>2<capacity> </volume> Now when I executed "virsh vol-create datastore1 /local/new_volume.xml" one error message came saying: "Error: Failed to create volume from /local/new_volume.xml" Error: internal error: Creation of raw volumes is not supported" Can anyone tell me what is going wrong here? Regards, Varun
Eric Blake
2013-Aug-15 14:57 UTC
Re: [libvirt-users] Error while adding volume through virsh
On 08/15/2013 08:30 AM, varun bhatnagar wrote:> Hi, > > I was trying to add volume...I got one xml snippet and I modified it > according to my node configuration: > > < volume> > <name>testNode/cluster.vmdk </name> > <allocation>0 </allocation> > <capacity unit='G'>2<capacity> > </volume> > > Now when I executed "virsh vol-create datastore1 /local/new_volume.xml" one > error message came saying: > > "Error: Failed to create volume from /local/new_volume.xml" > Error: internal error: Creation of raw volumes is not supported"What type of pool are you trying to add this volume to? This may be a case of no one having implemented the volume creation for your particular pool backend yet. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Matthias Bolte
2013-Aug-15 15:00 UTC
Re: [libvirt-users] Error while adding volume through virsh
2013/8/15 varun bhatnagar <varun292006@gmail.com>:> Hi, > > I was trying to add volume...I got one xml snippet and I modified it > according to my node configuration: > > < volume> > <name>testNode/cluster.vmdk </name> > <allocation>0 </allocation> > <capacity unit='G'>2<capacity> > </volume> > > Now when I executed "virsh vol-create datastore1 /local/new_volume.xml" one > error message came saying: > > "Error: Failed to create volume from /local/new_volume.xml" > Error: internal error: Creation of raw volumes is not supported" > > Can anyone tell me what is going wrong here?virsh vol-create without -c option might connecto to the wrong hypervisor. Try specifing the connection uri. -- Matthias Bolte http://photron.blogspot.com
varun bhatnagar
2013-Aug-15 15:36 UTC
Re: [libvirt-users] Error while adding volume through virsh
I am trying to add this volume to ESX pool. I have ESX server and got connected to it. When I listed the pool the data store of ESX server was getting listed down. So I was adding this volume to that. I want to create a domain but for that Matthias replied that I have to add volume which will put my .vmdk fole there. On 15 Aug 2013 20:27, "Eric Blake" <eblake@redhat.com> wrote:> On 08/15/2013 08:30 AM, varun bhatnagar wrote: > > Hi, > > > > I was trying to add volume...I got one xml snippet and I modified it > > according to my node configuration: > > > > < volume> > > <name>testNode/cluster.vmdk </name> > > <allocation>0 </allocation> > > <capacity unit='G'>2<capacity> > > </volume> > > > > Now when I executed "virsh vol-create datastore1 /local/new_volume.xml" > one > > error message came saying: > > > > "Error: Failed to create volume from /local/new_volume.xml" > > Error: internal error: Creation of raw volumes is not supported" > > What type of pool are you trying to add this volume to? This may be a > case of no one having implemented the volume creation for your > particular pool backend yet. > > -- > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org > >
varun bhatnagar
2013-Aug-15 15:38 UTC
Re: [libvirt-users] Error while adding volume through virsh
Yes Matthias I am connecting to ESX uri first and then I am adding volume to my ESX data store. On 15 Aug 2013 20:30, "Matthias Bolte" <matthias.bolte@googlemail.com> wrote:> 2013/8/15 varun bhatnagar <varun292006@gmail.com>: > > Hi, > > > > I was trying to add volume...I got one xml snippet and I modified it > > according to my node configuration: > > > > < volume> > > <name>testNode/cluster.vmdk </name> > > <allocation>0 </allocation> > > <capacity unit='G'>2<capacity> > > </volume> > > > > Now when I executed "virsh vol-create datastore1 /local/new_volume.xml" > one > > error message came saying: > > > > "Error: Failed to create volume from /local/new_volume.xml" > > Error: internal error: Creation of raw volumes is not supported" > > > > Can anyone tell me what is going wrong here? > > virsh vol-create without -c option might connecto to the wrong > hypervisor. Try specifing the connection uri. > > -- > Matthias Bolte > http://photron.blogspot.com >
Ján Tomko
2013-Aug-15 15:46 UTC
Re: [libvirt-users] Error while adding volume through virsh
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
varun bhatnagar
2013-Aug-16 06:13 UTC
Re: [libvirt-users] Error while adding volume through virsh
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@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 > >