From: David Mair Subject: Re: KVM status and dynamic mem/cpu question. Date: Wed, 09 Jul 2008 09:44:54 -0600 Message-ID: <4874DCF6.2080708@mair-family.org> References: <281324.83121.qm@web35808.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM List To: unlisted-recipients:; (no To-header on input) Return-path: Received: from nobody.sfcn.org ([160.7.248.25]:52038 "EHLO mail.mair-family.org" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753352AbYGIPjQ (ORCPT ); Wed, 9 Jul 2008 11:39:16 -0400 Received: from [137.65.52.183] (dmair-ws.dnsdhcp.provo.novell.com [137.65.52.183]) by mail.mair-family.org (Postfix) with ESMTP id 5B97F2BF036 for ; Wed, 9 Jul 2008 09:39:15 -0600 (MDT) In-Reply-To: <281324.83121.qm@web35808.mail.mud.yahoo.com> Sender: kvm-owner@vger.kernel.org List-ID: 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.