Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-04 Thread Stefan Hajnoczi
On Thu, Sep 04, 2014 at 08:15:39AM -0700, Andy Grover wrote: > But in the meantime, do you have a use case or user story for the QMP > support that might help me understand better how it might all fit together? From my previous email: "administrator needs to migrate disk images to a new file syst

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-04 Thread Benoît Canet
The Thursday 04 Sep 2014 à 08:15:39 (-0700), Andy Grover wrote : > On 09/04/2014 06:24 AM, Benoît Canet wrote: > >>There are other commands for snapshots and backup which are issued via > >>QMP. > >> > >>It might even make sense to make the tcmu interface available at > >>run-time in QEMU like the

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-04 Thread Andy Grover
On 09/04/2014 06:24 AM, Benoît Canet wrote: There are other commands for snapshots and backup which are issued via QMP. It might even make sense to make the tcmu interface available at run-time in QEMU like the run-time NBD server. This allows you to get at read-only point-in-time snapshots whi

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-04 Thread Benoît Canet
The Wednesday 03 Sep 2014 à 14:11:59 (+0100), Stefan Hajnoczi wrote : > On Tue, Sep 02, 2014 at 05:20:55PM -0700, Andy Grover wrote: > > On 09/02/2014 02:25 AM, Stefan Hajnoczi wrote: > > > The qemu-lio tool would live in the QEMU codebase and reuse all the > > > infrastructure. For example, it co

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-03 Thread Stefan Hajnoczi
On Tue, Sep 02, 2014 at 05:20:55PM -0700, Andy Grover wrote: > On 09/02/2014 02:25 AM, Stefan Hajnoczi wrote: > > The qemu-lio tool would live in the QEMU codebase and reuse all the > > infrastructure. For example, it could include a QMP monitor just like > > the one you are adding to qemu-nbd. >

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-03 Thread Paolo Bonzini
Il 03/09/2014 02:20, Andy Grover ha scritto: >> The qemu-lio tool would live in the QEMU codebase and reuse all the >> infrastructure. For example, it could include a QMP monitor just like >> the one you are adding to qemu-nbd. > > Benoit and I talked a little about QMP on another part of the thr

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-02 Thread Andy Grover
On 09/02/2014 02:25 AM, Stefan Hajnoczi wrote: The easiest approach is to write a tool similar to qemu-nbd that speaks the userspace target protocol (i.e. mmap the shared memory). If the tcmu setup code is involved, maybe providing a libtcmu with the setup code would be useful. I suspect that

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-02 Thread Stefan Hajnoczi
On Fri, Aug 29, 2014 at 07:22:18PM +0200, Benoît Canet wrote: > Listening at Palo's suggestion I started discussing privately with > Andy about integrating LIO and the QEMU block layer together using > tcmu-runner: https://github.com/agrover/tcmu-runner. I looked at this briefly when Andy posted t

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-01 Thread Paolo Bonzini
Il 31/08/2014 22:38, Benoît Canet ha scritto: > The problem with QEMU block drivers is that they are using either coroutines > or QEMU custom AIO callbacks so reusing them without the block layer is > not doable. Not really true. The QEMU block layer can be wrapped relatively easily in a GSource.

Re: [Qemu-devel] tcmu-runner and QEMU

2014-09-01 Thread Paolo Bonzini
Il 31/08/2014 22:03, Andy Grover ha scritto: >> So I think what you want is a `qemu-iscsi'? ie. the same as qemu-nbd, >> but with an iSCSI frontend (to replace the NBD server). > > You want qemu to be able to issue SCSI commands over iSCSI? I thought > qemu used libiscsi for this, to be the initi

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-31 Thread Benoît Canet
The Sunday 31 Aug 2014 à 13:03:14 (-0700), Andy Grover wrote : > On 08/30/2014 09:02 AM, Richard W.M. Jones wrote: > >On Sat, Aug 30, 2014 at 05:53:43PM +0200, Benoît Canet wrote: > >>If the cloud provider want to be able to boot QCOW2 or QED images on > >>bare metal machines he will need to export

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-31 Thread Andy Grover
On 08/30/2014 09:02 AM, Richard W.M. Jones wrote: On Sat, Aug 30, 2014 at 05:53:43PM +0200, Benoît Canet wrote: If the cloud provider want to be able to boot QCOW2 or QED images on bare metal machines he will need to export QCOW2 or QED images on the network. So far only qemu-nbd allows to do t

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-30 Thread Benoît Canet
The Saturday 30 Aug 2014 à 19:22:09 (+0200), Benoît Canet wrote : > The Saturday 30 Aug 2014 à 17:04:12 (+0100), Richard W.M. Jones wrote : > > BTW, what is "tcmu-runner"? The github repo you pointed to is ... opaque. > > Andy Groover. My apologizes for the mispelling. >is working on a way to i

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-30 Thread Benoît Canet
The Saturday 30 Aug 2014 à 17:04:12 (+0100), Richard W.M. Jones wrote : > BTW, what is "tcmu-runner"? The github repo you pointed to is ... opaque. Andy Groover is working on a way to implement LIO storage backend in userspace. tcmu-runner is a daemon able to load storage backend plugins for this

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-30 Thread Benoît Canet
The Saturday 30 Aug 2014 à 17:02:12 (+0100), Richard W.M. Jones wrote : > On Sat, Aug 30, 2014 at 05:53:43PM +0200, Benoît Canet wrote: > > The Saturday 30 Aug 2014 à 15:46:41 (+0100), Richard W.M. Jones wrote : > > > For the benefit of those who have absolutely no idea what you're > > > talking ab

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-30 Thread Richard W.M. Jones
BTW, what is "tcmu-runner"? The github repo you pointed to is ... opaque. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-30 Thread Richard W.M. Jones
On Sat, Aug 30, 2014 at 05:53:43PM +0200, Benoît Canet wrote: > The Saturday 30 Aug 2014 à 15:46:41 (+0100), Richard W.M. Jones wrote : > > For the benefit of those who have absolutely no idea what you're > > talking about, could you write a simpler summary of what you're trying > > to do? > > > >

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-30 Thread Benoît Canet
The Saturday 30 Aug 2014 à 15:46:41 (+0100), Richard W.M. Jones wrote : > For the benefit of those who have absolutely no idea what you're > talking about, could you write a simpler summary of what you're trying > to do? > > Rich. Hello, Most cloud providers sell virtualized instances either usi

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-30 Thread Richard W.M. Jones
For the benefit of those who have absolutely no idea what you're talking about, could you write a simpler summary of what you're trying to do? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-29 Thread Benoît Canet
The Friday 29 Aug 2014 à 15:36:41 (-0700), Andy Grover wrote : > On 08/29/2014 11:51 AM, Benoît Canet wrote: > >QMP is just a way to control QEMU via a socket: it is not particularly block > >related. > > > >On the other hand bringing the whole block layers into a tcmu-runner handler > >would mean

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-29 Thread Andy Grover
On 08/29/2014 11:51 AM, Benoît Canet wrote: QMP is just a way to control QEMU via a socket: it is not particularly block related. On the other hand bringing the whole block layers into a tcmu-runner handler would mean that there would be _one_ QMP socket opened (by mean of wonderfull QEMU modul

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-29 Thread Benoît Canet
The Friday 29 Aug 2014 à 11:38:14 (-0700), Andy Grover wrote : > On 08/29/2014 10:22 AM, Benoît Canet wrote: > >The truth is that QEMU block drivers don't know how to do much on their own > >so we probably must bring the whole QEMU block layer in a tcmu-runner > >handler plugin. > > Woah! Really

Re: [Qemu-devel] tcmu-runner and QEMU

2014-08-29 Thread Andy Grover
On 08/29/2014 10:22 AM, Benoît Canet wrote: The truth is that QEMU block drivers don't know how to do much on their own so we probably must bring the whole QEMU block layer in a tcmu-runner handler plugin. Woah! Really? ok... Another reason to do this is that the QEMU block layer brings fea

[Qemu-devel] tcmu-runner and QEMU

2014-08-29 Thread Benoît Canet
Hi list, Listening at Palo's suggestion I started discussing privately with Andy about integrating LIO and the QEMU block layer together using tcmu-runner: https://github.com/agrover/tcmu-runner. The rationale is that it would be very handy to be able to export one of the numerous QEMU image fo