-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add alpine pause
and alpine resume
#126
Conversation
* add pause/unpause functions * add Paused detection in Status()
Note that a paused VM will still take system resources, particularly, RAM. |
I've been looking into this recently, particularly at VM suspension, but haven't considered My current thinking was to hook up to the QMP socket (socket file is created for each running VM inside VM's subdirectory) and issue a I'm not familiar enough with |
The guest will resume thinking no time has passed, so this could contribute to clock desync. We could throw a In my mind, the use case is to free up host CPU cycles and power consumption without having to fully shut down. |
Cool - I think |
Notably, (and I think this is kind of nice), it does not release the port bindings for hostfwd. That means we won't have weird bind crashes upon resume. |
Agreed - was playing around with the PR and spotted that - it is quite nice I think. |
Added the hwclock-resync, again with the assumption that the system time is the user's responsibility |
Nice - could you also run |
Done! And thanks, I can do that in the future for PRs now that I know how :) |
Support for pausing/unpausing instances using
SIGSTOP
andSIGCONT
alpine pause
andalpine resume
commandsPaused
inalpine list
start
,stop
, andssh
to keep things coherent