KVM status and dynamic mem/cpu question.
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 ?
2. Is there a way to shrink/expand memory or VCPUs for a running VM ?
Thanks
/Jd
Quoted 9 lines · jd
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.
Quoted 1 line
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.
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
Quoted 64 lines · David Mair
From: David Mair <[email protected]>
Subject: Re: KVM status and dynamic mem/cpu question. To:
Cc: "KVM List" <[email protected]>
Date: Wednesday, July 9, 2008, 8:44 AMQuoted 3 lines · jd
hi
1. It there away to know various states of a VM via
console (or any other means?) ?
Quoted 6 lines
-- Running
-- Paused
-- Booting/Shutting down
-- crashed
etc ?
I cant find any console command that can tellthat. 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.Quoted 1 line
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 [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · jd
Thanks David.
I tried the
cpu_setcommand... it exits the VM :( (kvm-70 on Fedora)
cpu_set does not have this meaning. It is just issues ACPI commands for hot-adding/removing the cpu.
But it shouldn't exit the VM anyway. It sounds like a bug. Can you please open a detailed bug report about this, if this is the case?
Quoted 82 lines
-- What about memory ?
-- Any one else on paused state at least ? (can I look at CPU reg.. or something ?)Thanks
/JdQuoted 56 lines · David Mair
From: David Mair <[email protected]>
Subject: Re: KVM status and dynamic mem/cpu question. To:
Cc: "KVM List" <[email protected]>
Date: Wednesday, July 9, 2008, 8:44 AMQuoted 3 lines · jd
hi
1. It there away to know various states of a VM via
console (or any other means?) ?
Quoted 6 lines
-- Running
-- Paused
-- Booting/Shutting down
-- crashed
etc ?
I cant find any console command that can tellthat. 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.Quoted 1 line
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.Quoted 8 lines
---
David.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 5 lines
Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."