cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Virtual Machine Suspend Function

Open zhanglidonga opened this issue 9 months ago • 1 comments



ISSUE TYPE
  • Enhancement Request
COMPONENT NAME
VM



CLOUDSTACK VERSION
4.18



CONFIGURATION

Does it support the suspend or pause function of virtual machines

OS / ENVIRONMENT



SUMMARY



STEPS TO REPRODUCE






EXPECTED RESULTS
Add virtual machine suspension in the virtual machine operation function, release corresponding CPU resources, save the state of the virtual machine in use, and wait for it to be awakened and used at any time



ACTUAL RESULTS




zhanglidonga avatar May 08 '24 09:05 zhanglidonga

Hi @zhanglidonga,

Currently ACS does not support VM suspend/pause on any hypervisor; although this is an interesting feature that shouldn't be too hard to implement, at least on KVM.

JoaoJandre avatar May 13 '24 16:05 JoaoJandre

Are you considering adding VKM support for suspension in future versions?

zhanglidonga avatar May 15 '24 06:05 zhanglidonga

@zhanglidonga I personally have no plans on adding it, at least not anytime soon. But I certainly can't speak for the community as a whole, maybe someone else is planning to or already working on something like this. If you have the coding skills, you can try to develop the feature and open a PR, I'm sure the community will help fix it if need be.

Furthermore, could you share some detail about the use-case you have that would need this feature? This helps to sustain/leverage the development of the feature.

JoaoJandre avatar May 15 '24 12:05 JoaoJandre

The functional scenario is definitely to consider automatically or manually putting some Windows virtual machines in a temporary or suspended state when they have not been used for a period of time to save server resources, without the need to repeatedly restart the machine to achieve this effect.

zhanglidonga avatar May 16 '24 02:05 zhanglidonga