From mboxrd@z Thu Jan 1 00:00:00 1970 From: jd Subject: KVM management and API Date: Fri, 27 Apr 2007 14:29:52 -0700 (PDT) Message-ID: <798858.14143.qm@web35807.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1601122376==" To: kvm-devel Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org --===============1601122376== Content-Type: multipart/alternative; boundary="0-1517727039-1177709392=:14143" Content-Transfer-Encoding: 7bit --0-1517727039-1177709392=:14143 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi This is a great project with a lots and lots of potential. I have a bu= nch of questions related to managing kvm VMs. I would like to know what kind of options are available for doing effe= ctive 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 ?=20 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.=20 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 f= or a given command are very vague (parsing..). (A way to get return code = for the operation would be great). Parsing ... command response and inter= preting... is error prone. Say I choose socat, how do I gracefully detach from the console. ( o= ther than just killing socat) =20 b. How does one get the stats for the running VM ?=20 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 ru= nning VM ? If so how ?=20 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 i= mage running in the machine shuts down, but the VM keeps running. Shouldn= t 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 differrentl= y ? Also, when one does loadvm, is the snapshot gone ? I mean can one res= tore 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 wou= ld help a wider audiance. Thanks /Jd =20 =20 =20 --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. --0-1517727039-1177709392=:14143 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi
   This is a great project with a lots and lots of potent= ial. I have a bunch of questions related to managing kvm VMs.

&nbs= p;  I would like to know what kind of options are available for doin= g effective management ot KVM/QEMU processes (VMs). And know more abut&nb= sp; plans / roadmap /directions to get to a proper API. (similar to Xen-A= PI)

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 th= ere any other more unique identifier available.

3. Managing runni= ng processs :
   a. How does one connect to the manage the r= unning vms ?
       I have read about sc= reen and socat options.
      Both of these a= ct 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 respo= nse and interpreting... is error prone.
     Say I= choose socat, how do I gracefully detach from the console. ( other than&= nbsp; just killing socat)
     
 &nb= sp; b. How does one get the stats for the running VM ?
  &n= bsp;    1. status : running, stopped, *migrating*..?
&n= bsp;      2. Current use of the memory : example= allocated 1 GB, used 512 MB.
       3. = CPU : Effective cpu used ? Are vcpus supported ?
   &nb= sp;       /proc can be used... what about w= indows ? (when and if we have kvm on windows)
    =    4. How much I/O and Network I/O
    &= nbsp;  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 c= ritical for achiving dynamic resource management.

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

5. Snapshots : where are snapsho= ts 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 s= ame snapshot multiple times ?
   (I have played little in th= is 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 out new cars at Yahoo! Autos. --0-1517727039-1177709392=:14143-- --===============1601122376== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============1601122376== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============1601122376==--