qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Question regarding a special case VM communication
@ 2016-03-03  3:55 Jidong Xiao
  2016-03-04 11:03 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Jidong Xiao @ 2016-03-03  3:55 UTC (permalink / raw)
  To: KVM, qemu-devel

Hello, All,

I am facing this special case of VM communication.

I have a Linux host machine, on which two Qemu/KVM virtual machines
are launched. Let's say they are VM1 and VM2, and their corresponding
processes on the host are Qemu1 and Qemu2. Inside VM2, I need nested
virtualization, i.e., A qemu process is started inside VM2, let's say
it's Qemu3, and a virtual machine VM3 is created accordingly.

What I want to achieve is: communication between Qemu1 and Qemu3. For
example, if I need to migrate VM1 from Qemu1 to Qemu3, how do I
achieve that? One naïve solution is just go through the TCP stack,
however, since they are in the same host machine, is there any fast or
efficient way to implement it? I.e., Something similar to Unix domain
socket. I know Unix domain socket is not applicable to case like this,
but I am just looking for something similar to that. Does anyone have
any suggestions, ideas? Thanks.

-Jidong

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Question regarding a special case VM communication
  2016-03-03  3:55 [Qemu-devel] Question regarding a special case VM communication Jidong Xiao
@ 2016-03-04 11:03 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2016-03-04 11:03 UTC (permalink / raw)
  To: Jidong Xiao; +Cc: qemu-devel, KVM

[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

On Wed, Mar 02, 2016 at 08:55:26PM -0700, Jidong Xiao wrote:
> I have a Linux host machine, on which two Qemu/KVM virtual machines
> are launched. Let's say they are VM1 and VM2, and their corresponding
> processes on the host are Qemu1 and Qemu2. Inside VM2, I need nested
> virtualization, i.e., A qemu process is started inside VM2, let's say
> it's Qemu3, and a virtual machine VM3 is created accordingly.
> 
> What I want to achieve is: communication between Qemu1 and Qemu3. For
> example, if I need to migrate VM1 from Qemu1 to Qemu3, how do I
> achieve that? One naïve solution is just go through the TCP stack,
> however, since they are in the same host machine, is there any fast or
> efficient way to implement it? I.e., Something similar to Unix domain
> socket. I know Unix domain socket is not applicable to case like this,
> but I am just looking for something similar to that. Does anyone have
> any suggestions, ideas? Thanks.

Use TCP/IP.  The nested virtualization and migration aspect makes this
non-trivial unless you choose a network protocol that supports routing.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-04 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-03  3:55 [Qemu-devel] Question regarding a special case VM communication Jidong Xiao
2016-03-04 11:03 ` Stefan Hajnoczi

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).