Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-27 Thread Paolo Bonzini
Il 27/05/2013 15:41, Deepak C Shetty ha scritto: >> > > Tried putting the above nbdxml usign virsh edit as an addnl > disk and domain booted fine > It throws the same error if u add format=qcow2 under ... > > So looks like the right way to use NBD is *not* to specify format and > let QEMU autose

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-27 Thread Deepak C Shetty
On 05/27/2013 04:41 PM, Paolo Bonzini wrote: Il 27/05/2013 12:46, Deepak C Shetty ha scritto: On 05/27/2013 02:00 PM, Paolo Bonzini wrote: Il 26/05/2013 15:54, Deepak C Shetty ha scritto: 3) In nbdxml, i tried removing port="".. it didn't give any error with regards to port beign mandatory

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-27 Thread Paolo Bonzini
Il 27/05/2013 12:46, Deepak C Shetty ha scritto: > On 05/27/2013 02:00 PM, Paolo Bonzini wrote: >> Il 26/05/2013 15:54, Deepak C Shetty ha scritto: >>> 3) In nbdxml, i tried removing port="".. it didn't give any error >>> with regards to port beign mandatory.. which si good.. but the attach >>>

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-27 Thread Deepak C Shetty
On 05/27/2013 02:00 PM, Paolo Bonzini wrote: Il 26/05/2013 15:54, Deepak C Shetty ha scritto: 3) In nbdxml, i tried removing port="".. it didn't give any error with regards to port beign mandatory.. which si good.. but the attach device still gives the same error as above Is the `nbdxml` I

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-27 Thread Paolo Bonzini
Il 26/05/2013 15:54, Deepak C Shetty ha scritto: > 3) In nbdxml, i tried removing port="".. it didn't give any error > with regards to port beign mandatory.. which si good.. but the attach > device still gives the same error as above > > Is the `nbdxml` I am using for attachign a qemu-nbd expo

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-26 Thread Deepak C Shetty
On 05/25/2013 02:04 AM, Paolo Bonzini wrote: Il 24/05/2013 10:01, Deepak C Shetty ha scritto: Il 24/05/2013 06:59, Deepak C Shetty ha scritto: What version of libvirt is this? It should work starting from 1.0.4. Ah, thats what I seem to have missed. I was using the distro provided libvirt.. wh

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-24 Thread Paolo Bonzini
Il 24/05/2013 10:01, Deepak C Shetty ha scritto: > >> Il 24/05/2013 06:59, Deepak C Shetty ha scritto: >> What version of libvirt is this? It should work starting from 1.0.4. > > Ah, thats what I seem to have missed. I was using the distro provided > libvirt.. which seems to be old (0.9)! > I wi

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-24 Thread Deepak C Shetty
On 05/24/2013 12:38 PM, Paolo Bonzini wrote: Il 24/05/2013 06:59, Deepak C Shetty ha scritto: What version of libvirt is this? It should work starting from 1.0.4. Ah, thats what I seem to have missed. I was using the distro provided libvirt.. which seems to be old (0.9)! I will compile lates

Re: [libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-24 Thread Paolo Bonzini
Il 24/05/2013 06:59, Deepak C Shetty ha scritto: > Hi List, > Facing issues trying to use virDomainAttachDevice API of libvirt > from python. > > Here is what I am trying to do > > 1) Setup qemu-nbd to export a qcow2 disk image over unix socket on my > localhost > qemu-nbd -t -k /tmp/mysock2

[libvirt] Issues with qemu-nbd over AF_UNIX and virDomainAttachDevice

2013-05-23 Thread Deepak C Shetty
Hi List, Facing issues trying to use virDomainAttachDevice API of libvirt from python. Here is what I am trying to do 1) Setup qemu-nbd to export a qcow2 disk image over unix socket on my localhost qemu-nbd -t -k /tmp/mysock2 /home/dpkshetty/work/img/iscsi_disk The above blocks. and i a