Skip to contentSkip to conversation

VM status

DISCUSSION jd 3 participants 4 messages May 11, 2007 – May 13, 2007 3 messages not in the archive KVM

lore
Share & tools
lore

jd

author
#0 lore raw

Hi
How do I get status of a VM ? What states are
available ?
running, stopped/paused, shutting down, blocked,
starting ?

-- I want to know if the VM is paused or not. (via monitor or any other means)

Thanks
/Jd

____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-------------------------------------------------------------------------
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/

#2 lore raw
In reply to a message not in the archive
Quoted 5 lines

Hi
How do I get status of a VM ? What states are
available ?
running, stopped/paused, shutting down, blocked,
starting ?

For some of these states you'll need an agent running within the guest {starting, shutting down}.

Note that currently except for virt-manager/libvirt there is no open source management tool.

Quoted 3 lines

-- I want to know if the VM is paused or not. (via monitor or any other means)

You can try the qemu-list, except for trying to ping/vnc a paused vm I don't know.

Quoted 7 lines

Thanks
/Jd

_______________________________________________________________________

____

Quoted 6 lines

_________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-----------------------------------------------------------------------

--

Quoted 8 lines

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/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
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/

author
#4 lore raw
In reply to a message not in the archive

Thanks again... see below.

Quoted 10 lines · -- Dor Laor
Quoted 5 lines

Hi
How do I get status of a VM ? What states are
available ?
running, stopped/paused, shutting down, blocked,
starting ?

For some of these states you'll need an agent running within the guest
{starting, shutting down}.

With the agent on box, how does one go about doing it ?

running : the process may be running but VM not.
starting/shutdown : anything in /proc/pid/stat ?

Quoted 5 lines

Note that currently except for virt-manager/libvirt there is no open
source management tool.

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

-- I want to know if the VM is paused or not. (via monitor or any other means)

You can try the qemu-list, except for trying to ping/vnc a paused vm I
don't know.

Quoted 1 line

This highlights the fact that some work needs to be done at qemu/kvm level to make it managable. (NOT necessarily at libvirt level).
(Anyone trying to slap an xmlrpc server to API called by the qemu-monitor ?)

/Jd

Quoted 19 lines
Quoted 5 lines

Thanks
/Jd

_______________________________________________________________________
____

Quoted 5 lines

_________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-----------------------------------------------------------------------
--

Quoted 2 lines

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2

express and take

Quoted 9 lines
Quoted 1 line

control of your XML. No limits. Just data. Click to

get it now.

Quoted 4 lines

http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list [email protected]

https://lists.sourceforge.net/lists/listinfo/kvm-devel

____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php

-------------------------------------------------------------------------
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/

#6 lore raw
In reply to a message not in the archive
Quoted 11 lines · jd

Thanks again... see below.

Quoted 6 lines · -- Dor Laor
Quoted 6 lines

Hi
How do I get status of a VM ? What states are
available ?
running, stopped/paused, shutting down, blocked,
starting ?

These sound very familiar :-) These are the states that a Xen VM can be in.

They don't all make a whole lot of sense in the context of KVM.

A KVM VM is just like a Linux process. You can use the traditional process states for a VM.

One thing that's missing from KVM/QEMU is the ability to determine if a VM is stopped. A monitor command is needed to expose that info.

Quoted 6 lines

This highlights the fact that some work needs to be done at qemu/kvm level to make it managable. (NOT necessarily at libvirt level).
(Anyone trying to slap an xmlrpc server to API called by the qemu-monitor ?)

Eek! That's not going to happen.

The monitor is an RPC protocol that also happens to be human readable. It would be real nice to have a client library for that protocol for many different languages but, of course, that's what libvirt is :-)

Regards,

Anthony Liguori

Quoted 46 lines

/Jd

Quoted 25 lines
Quoted 6 lines

Thanks
/Jd

_______________________________________________________________________
____

Quoted 6 lines

_________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-----------------------------------------------------------------------
--

Quoted 3 lines

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2

express and take

Quoted 2 lines

control of your XML. No limits. Just data. Click to

Quoted 10 lines

get it now.

Quoted 5 lines

http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list [email protected]

https://lists.sourceforge.net/lists/listinfo/kvm-devel

____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php

Quoted 11 lines

-------------------------------------------------------------------------
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/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
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/