* [Qemu-devel] invoking monitor command without Ctrl+Alt+2 @ 2012-07-12 19:17 siddharth srivastava 2012-07-12 19:30 ` Eric Blake 0 siblings, 1 reply; 4+ messages in thread From: siddharth srivastava @ 2012-07-12 19:17 UTC (permalink / raw) To: qemu-devel Hi I am working on a virtualization project for which I am using Qemu(0.13) + KVM.I am trying to get an automated switch to live migration based on certain condition. According to [1], it is possible to start migration via Qemu Monitor. Since I am trying to invoke this via C code, is it possible to do so ? Also is it possible to save ram snapshot without stopping the VM from the code (probably by reusing some qemu code ?) Any pointers would also be helpful. [1]: http://www.linux-kvm.org/page/Migration Thanks -- Regards Siddharth Srivastava ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] invoking monitor command without Ctrl+Alt+2 2012-07-12 19:17 [Qemu-devel] invoking monitor command without Ctrl+Alt+2 siddharth srivastava @ 2012-07-12 19:30 ` Eric Blake [not found] ` <CAHuvxeU+Gdk5GW6NibgbOrp1ta+CPAduQcLAWt_CX+GAZ9LshA@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Eric Blake @ 2012-07-12 19:30 UTC (permalink / raw) To: siddharth srivastava; +Cc: qemu-devel [-- Attachment #1: Type: text/plain, Size: 956 bytes --] On 07/12/2012 01:17 PM, siddharth srivastava wrote: > Hi > > I am working on a virtualization project for which I am using > Qemu(0.13) + KVM. That's rather old; we're now at 1.1, and there have been some migration bugs fixed in the meantime. >I am trying to get an automated switch to live > migration based on certain condition. > According to [1], it is possible to start migration via Qemu Monitor. > Since I am trying to invoke this via C code, is it possible to do so ? Yes. See libvirt if you want an example of C code that starts a migration via the monitor. > Also is it possible to save ram snapshot without stopping the VM from > the code (probably by reusing some qemu code ?) Any pointers would > also be helpful. Again, you may be better served by reusing what libvirt already supports on this front. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 620 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAHuvxeU+Gdk5GW6NibgbOrp1ta+CPAduQcLAWt_CX+GAZ9LshA@mail.gmail.com>]
[parent not found: <4FFF2980.4080006@redhat.com>]
[parent not found: <CAHuvxeVwL6J33t2s6SEwScEf44Ww4GZf2jwaZqtz2GOHN6Zukw@mail.gmail.com>]
* Re: [Qemu-devel] invoking monitor command without Ctrl+Alt+2 [not found] ` <CAHuvxeVwL6J33t2s6SEwScEf44Ww4GZf2jwaZqtz2GOHN6Zukw@mail.gmail.com> @ 2012-07-13 4:14 ` siddharth srivastava 2012-07-13 12:07 ` Eric Blake 0 siblings, 1 reply; 4+ messages in thread From: siddharth srivastava @ 2012-07-13 4:14 UTC (permalink / raw) To: Eric Blake, qemu-devel Hi I also see that qemu 0.13 has live migration in inbuilt.Does it also uses libvirt behind the scenes to create live ram snapshot ? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] invoking monitor command without Ctrl+Alt+2 2012-07-13 4:14 ` siddharth srivastava @ 2012-07-13 12:07 ` Eric Blake 0 siblings, 0 replies; 4+ messages in thread From: Eric Blake @ 2012-07-13 12:07 UTC (permalink / raw) To: siddharth srivastava; +Cc: qemu-devel [-- Attachment #1: Type: text/plain, Size: 611 bytes --] On 07/12/2012 10:14 PM, siddharth srivastava wrote: > Hi > > I also see that qemu 0.13 has live migration in inbuilt.Does it also > uses libvirt behind the scenes to create live ram snapshot ? No, you've got it backwards. Qemu does not use libvirt. Rather, libvirt wraps qemu features to expose a programmatic interface into migration and snapshot creations, but all libvirt is doing is using the monitor, so you could do the same thing directly on qemu by using the monitor yourself. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 620 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-13 12:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-07-12 19:17 [Qemu-devel] invoking monitor command without Ctrl+Alt+2 siddharth srivastava 2012-07-12 19:30 ` Eric Blake [not found] ` <CAHuvxeU+Gdk5GW6NibgbOrp1ta+CPAduQcLAWt_CX+GAZ9LshA@mail.gmail.com> [not found] ` <4FFF2980.4080006@redhat.com> [not found] ` <CAHuvxeVwL6J33t2s6SEwScEf44Ww4GZf2jwaZqtz2GOHN6Zukw@mail.gmail.com> 2012-07-13 4:14 ` siddharth srivastava 2012-07-13 12:07 ` Eric Blake
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).