public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: jd <jdsw2002-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
To: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: KVM management and API
Date: Fri, 27 Apr 2007 14:29:52 -0700 (PDT)	[thread overview]
Message-ID: <798858.14143.qm@web35807.mail.mud.yahoo.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2657 bytes --]

Hi
   This is a great project with a lots and lots of potential. I have a bunch of questions related to managing kvm VMs.

   I would like to know what kind of options are available for doing effective management ot KVM/QEMU processes (VMs). And know more abut  plans / roadmap /directions to get to a proper API. (similar to Xen-API)

1. Discovery : How does one find all processes running KVM vms ?
    ps -ef | grep qemu ? 
    How does one know if qemu is using the kvm or not ?

2. Identity : I am assuming that each VM is a process and pid would be an identifier, is there any other more unique identifier available. 

3. Managing running processs :
   a. How does one connect to the manage the running vms ?
       I have read about screen and socat options.
      Both of these act as tty client, where success/failure and errors for a given command are very vague (parsing..). (A way to get return code for the operation would be great). Parsing ... command response and interpreting... is error prone.
     Say I choose socat, how do I gracefully detach from the console. ( other than  just killing socat)
      
   b. How does one get the stats for the running VM ? 
       1. status : running, stopped, *migrating*..?
       2. Current use of the memory : example allocated 1 GB, used 512 MB.
       3. CPU : Effective cpu used ? Are vcpus supported ?
           /proc can be used... what about windows ? (when and if we have kvm on windows)
       4. How much I/O and Network I/O
       5. Wait times to get to I/O or CPU. (contention measures)
       6. What is kvm_stats ? How to interpret its output?

   c. Can one change memory, cpus, disks and networks on the fly for a running VM ? If so how ? 
        This is critical for achiving dynamic resource management.

4.  Shutdown : How does one send  command to  VM to shutdown normally. I  see only reset and powerdown  commands only. Also, after shutdown, the image running in the machine shuts down, but the VM keeps running. Shouldnt the process also die ?

5. Snapshots : where are snapshots saved ? I tried savevm with /tmp/x, I was expecting a file containing memory image... do these work differrently ?
    Also, when one does loadvm, is the snapshot gone ? I mean can one restore the same snapshot multiple times ?
   (I have played little in this area.. so may be I missed something.)

There are lot of questions... but I guess, answers to these questions would  help  a wider audiance.

Thanks
/Jd
   
 

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[-- Attachment #1.2: Type: text/html, Size: 3423 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

             reply	other threads:[~2007-04-27 21:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-27 21:29 jd [this message]
     [not found] ` <798858.14143.qm-sSuf+AbrE5qvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2007-04-27 22:06   ` KVM management and API Daniel P. Berrange
     [not found]     ` <20070427220657.GB8384-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-04-27 22:23       ` Anthony Liguori
     [not found]         ` <463277E3.5070305-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-04-29  8:03           ` Avi Kivity
     [not found]             ` <4634515B.6020301-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-04-29 15:46               ` Anthony Liguori
2007-05-01  7:31     ` Dor Laor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=798858.14143.qm@web35807.mail.mud.yahoo.com \
    --to=jdsw2002-/e1597as9lqavxtiumwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox