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
feat: Please add an option to kill the VM from the command line #1195
Comments
Non-brutes might connect to the monitor with something like It should be easy enough to wrap that behaviour into a quickemu option.
Would that seem OK to you ? |
hang on - |
Already tried this. I spun up a VM and then just manually connected to the VM using the monitor with netcat and qemu recognises but simply ignores the system_powerdown command. I think it's broken in Qemu https://gitlab.com/qemu-project/qemu/-/issues/1410 So, quickemu knows the pid, and could implement a --kill which just kill -9's the vm |
curious: system_powerdown works fine here (I tried all three options before suggesting with expected results - on 22.04 not 24.04 though ...) looking at Martin's PR I see what's changed and broken --monitor-cmd : the disk image check always happens so it tries to check an in-use image and fails. |
FWIW, I also tested with Alpine Linux, thinking this was simpler. I can't get any distro to power off using the qemu monitor command system_powerdown |
Expected behavior
Sometimes I would like to kill the VM I started without using extreme prejudice (
killall
). This is especially useful when running quickemu with a headless guest.Actual behavior
I brutally kill things for fun using
sudo killall
which my mum says is a bad thing to do.Thanks
The text was updated successfully, but these errors were encountered: