On Fri, Oct 10, 2014 at 11:40:03AM +0800, Zhi Yong Wu wrote:> HI, Richard > > Is there any plan to make daemon to directly run on the hypervisor, > not starting a guest? e.g. directly export a guest image to be a block > device on the hypervisor?Not in 1.28, but adding lxc:// support to the libvirt backend (src/launch-libvirt.c) would be fairly easy. It's an idea that has been kicked around before on the list, eg: https://www.redhat.com/archives/libguestfs/2014-January/msg00296.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On Fri, Oct 10, 2014 at 3:39 PM, Richard W.M. Jones <rjones@redhat.com> wrote:> On Fri, Oct 10, 2014 at 11:40:03AM +0800, Zhi Yong Wu wrote: >> HI, Richard >> >> Is there any plan to make daemon to directly run on the hypervisor, >> not starting a guest? e.g. directly export a guest image to be a block >> device on the hypervisor? > > Not in 1.28, but adding lxc:// support to the libvirt backend > (src/launch-libvirt.c) would be fairly easy. > > It's an idea that has been kicked around before on the list, eg: > > https://www.redhat.com/archives/libguestfs/2014-January/msg00296.htmlIt's not what i said, i mean that when you run virt-resize, it doesn't start a appliance guest. You know, it will bring up a lot of troubles or risks if a guest is started.> > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > libguestfs lets you edit virtual machines. Supports shell scripting, > bindings from many languages. http://libguestfs.org-- Regards, Zhi Yong Wu
On Fri, Oct 10, 2014 at 04:03:26PM +0800, Zhi Yong Wu wrote:> On Fri, Oct 10, 2014 at 3:39 PM, Richard W.M. Jones <rjones@redhat.com> wrote: > > On Fri, Oct 10, 2014 at 11:40:03AM +0800, Zhi Yong Wu wrote: > >> HI, Richard > >> > >> Is there any plan to make daemon to directly run on the hypervisor, > >> not starting a guest? e.g. directly export a guest image to be a block > >> device on the hypervisor? > > > > Not in 1.28, but adding lxc:// support to the libvirt backend > > (src/launch-libvirt.c) would be fairly easy. > > > > It's an idea that has been kicked around before on the list, eg: > > > > https://www.redhat.com/archives/libguestfs/2014-January/msg00296.html > It's not what i said, i mean that when you run virt-resize, it doesn't > start a appliance guest. You know, it will bring up a lot of troubles > or risks if a guest is started.There are no risks as far as I'm aware. What kind of troubles/risks? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org