public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: jd <jdsw2002@yahoo.com>
To: David Mair <dmair@mair-family.org>
Cc: KVM List <kvm@vger.kernel.org>
Subject: Re: KVM status and dynamic mem/cpu question.
Date: Sun, 13 Jul 2008 17:23:40 -0700 (PDT)	[thread overview]
Message-ID: <694075.20097.qm@web35804.mail.mud.yahoo.com> (raw)
In-Reply-To: <4874DCF6.2080708@mair-family.org>

Thanks David.

I tried the cpu_set command... it exits the VM :( (kvm-70 on Fedora)

-- What about memory ?
-- Any one else on paused state at least ? (can I look at CPU reg.. or something ?)

Thanks
/Jd



--- On Wed, 7/9/08, David Mair <dmair@mair-family.org> wrote:

> From: David Mair <dmair@mair-family.org>
> Subject: Re: KVM status and dynamic mem/cpu question.
> To: 
> Cc: "KVM List" <kvm@vger.kernel.org>
> Date: Wednesday, July 9, 2008, 8:44 AM
> jd wrote:
> > hi
> > 
> > 1.   It there away to know various states of a VM via
> console (or any other means?) ?
> >        -- Running
> >        -- Paused
> >        -- Booting/Shutting down
> >        -- crashed
> >       etc ?
> >     I cant find any console command that can tell
> that. If this is not available, is there a plan to add it ?
> 
> I don't think booting and shutting down have any
> meaning to qemu. It's just a 
> physical PC for these purposes. Booting and shutting down
> are runtime that only 
> means something to the software running on the PC. As far
> as the PC is concerned it 
> feels pretty much either on or off.
> 
> The same is almost true for crashed IMO. Crashed is a
> runtime state for the software 
> running on the PC, not a state of the hardware - except for
> a small number of cases.
> 
> That leaves you with running or paused. I can't find a
> way to tell those states from 
> the console.
> 
> > 2. Is there a way to shrink/expand memory or VCPUs for
> a running VM ?
> 
> 
> I've never tried it but in the qemu console:
> 
> (qemu) help
> 	.
> 	.
> 	.
> cpu_set cpu [online|offline] -- change cpu state
> 	.
> 	.
> 	.
> 
> As described, it won't let you add CPUs above what you
> specified on the command line 
> that started the VM but it will let you do effectively the
> same thing as removing 
> and adding CPUs from/to the guest.
> 
> ---
> David.
> --
> To unsubscribe from this list: send the line
> "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

  reply	other threads:[~2008-07-14  0:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09  2:21 KVM status and dynamic mem/cpu question jd
2008-07-09 15:44 ` David Mair
2008-07-14  0:23   ` jd [this message]
2008-07-21 20:20     ` Glauber Costa

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=694075.20097.qm@web35804.mail.mud.yahoo.com \
    --to=jdsw2002@yahoo.com \
    --cc=dmair@mair-family.org \
    --cc=kvm@vger.kernel.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