All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] VM id
@ 2014-07-02 19:20 Gary Jordan
  2014-07-02 21:59 ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Jordan @ 2014-07-02 19:20 UTC (permalink / raw)
  To: qemu-devel

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

Does Qemu have a VM id allocated for each VM?  I did not find this Id in
qemu. HOW deos qemu identify each VM, using thread Id or some other
identifiers?

[-- Attachment #2: Type: text/html, Size: 182 bytes --]

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

* Re: [Qemu-devel] VM id
  2014-07-02 19:20 [Qemu-devel] VM id Gary Jordan
@ 2014-07-02 21:59 ` Eric Blake
  2014-07-03  0:29   ` Gary Jordan
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Blake @ 2014-07-02 21:59 UTC (permalink / raw)
  To: Gary Jordan, qemu-devel

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

On 07/02/2014 01:20 PM, Gary Jordan wrote:
> Does Qemu have a VM id allocated for each VM?  I did not find this Id in
> qemu. HOW deos qemu identify each VM, using thread Id or some other
> identifiers?

Each qemu process manages exactly one VM, so qemu doesn't care what id a
guest has.  Higher-level management software, such as libvirt, has
notions of a VM name and UUID (both of which can be specified on the
command line parameters given to qemu, and the UUID can even be
propagated to the guest, such as by SMBIOS readable by dmidecode in the
guest), as well as a VM id (in libvirt's case, a sequentially increasing
number for each VM that libvirt spawns a qemu process for).  But that's
getting outside the realm of qemu, since qemu doesn't care what name or
uuid you picked, only whether you have access to the monitor of the qemu
process.

-- 
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: 604 bytes --]

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

* Re: [Qemu-devel] VM id
  2014-07-02 21:59 ` Eric Blake
@ 2014-07-03  0:29   ` Gary Jordan
  2014-07-03  0:46     ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Jordan @ 2014-07-03  0:29 UTC (permalink / raw)
  To: Eric Blake; +Cc: qemu-devel

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

If I open two session in a migration operation, how does the qemu know
which one should be accepted? I saw there was a ram_list to check, but no
id of the guest.


2014-07-02 17:59 GMT-04:00 Eric Blake <eblake@redhat.com>:

> On 07/02/2014 01:20 PM, Gary Jordan wrote:
> > Does Qemu have a VM id allocated for each VM?  I did not find this Id in
> > qemu. HOW deos qemu identify each VM, using thread Id or some other
> > identifiers?
>
> Each qemu process manages exactly one VM, so qemu doesn't care what id a
> guest has.  Higher-level management software, such as libvirt, has
> notions of a VM name and UUID (both of which can be specified on the
> command line parameters given to qemu, and the UUID can even be
> propagated to the guest, such as by SMBIOS readable by dmidecode in the
> guest), as well as a VM id (in libvirt's case, a sequentially increasing
> number for each VM that libvirt spawns a qemu process for).  But that's
> getting outside the realm of qemu, since qemu doesn't care what name or
> uuid you picked, only whether you have access to the monitor of the qemu
> process.
>
> --
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
>

[-- Attachment #2: Type: text/html, Size: 1823 bytes --]

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

* Re: [Qemu-devel] VM id
  2014-07-03  0:29   ` Gary Jordan
@ 2014-07-03  0:46     ` Eric Blake
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Blake @ 2014-07-03  0:46 UTC (permalink / raw)
  To: Gary Jordan; +Cc: qemu-devel

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

On 07/02/2014 06:29 PM, Gary Jordan wrote:

[please don't top-post on technical lists]

> If I open two session in a migration operation, how does the qemu know
> which one should be accepted? I saw there was a ram_list to check, but no
> id of the guest.

I suggest using higher level software, like libvirt, to manage your
migrations.  The recipient qemu must have the same command line setup as
the sending side, and it is up to you (or your management app) to make
sure you are connecting to the correct port.  As I said before, qemu is
only concerned about a single guest, so as soon as you are involving
multiple qemu processes, you need a higher level application to keep
things straight.

-- 
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: 604 bytes --]

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

end of thread, other threads:[~2014-07-03  0:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 19:20 [Qemu-devel] VM id Gary Jordan
2014-07-02 21:59 ` Eric Blake
2014-07-03  0:29   ` Gary Jordan
2014-07-03  0:46     ` Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.