Forum archive
TurnKey LAMP 15.1 VM in Proxmox does not shutdown
Hello,
I'm running TurnKey LAMP 15.1 Virtual machine in Proxmox. Everything is just great (Thanks TurnKey!) except it does not shutdown from Proxmox.
That I tried is:
1. Installed qemu-guest-agent on TurnKey
2. Installed acpi-support on TurnKey
3. Installed acpi-support-base on TurnKey
4. Quemu agent in Proxmox on TurnKey VM is enabled
None of these helped me. Here is one line from TurnKey user.log after I press Shutdown button in Proxmox
lamp qemu-ga: info: guest-shutdown called, mode: (null)
Strangely I have also running OpenMediaVault VM on the same Proxmox and it does shutdown, no problem. Also tried to install fresh Debian and it also shuts down after qemu-guest-agent package was installed.
Please help me to solve this.
Apologies on my slow response, but I've been having a little time off and was snowed under in the week prior and didn't get time to address your post.
Can you share what version of Proxmox you are using?
Out of interest, I am running PVE 5.4 and all of my TurnKey VMs (installed from ISOs - plus Containers too FWIW) shut down fine, with no additional software packages installed or config tweaks!? I simply click the "Shutdown" (or "Stop") buttons and the VM (and/or container) just stops...
It is interesting that you've tested OpenMediaVault and vanilla Debian and they work ok. That would certainly suggest an issue specific to this VM, but as I noted above, my personal experience with TurnKey on Proxmox is very different - It "just works" OOTB.
A quick google turned up a similar sounding thread on the Proxmox forums (albeit related to CentOS & Fedora, rather than TurnKey) noting that this particular issue was caused by SELinux. However, unless you have installed/configured SELinux (or the similar alternate tool, App Amour) then that shouldn't be the issue here. If you have setup SELinux (or AppAmour, or ...), then that may well be the issue?! Perhaps the SELinux Debian wiki page (or insert link to AppAmour, etc docs) may help?
If you can rule that out (e.g. if you didn't do anything re SELinux/AppAmour/etc) then there must be something else going on. I recommend one thing worth trying would be to see if you can shut the VM down from within. E.g. log in via SSH and run "poweroff" (or "shutdown -h now", or "systemctl poweroff") and see what happens. It should shutdown.
If shutdown internally works ok, but it's still not working from the host, then perhaps the QEMU agent itself is part of the issue? That possibility only occurred to me when Google turned up a similar issue for another Debian based OS. The relevant comment states:
So as a test, perhaps try installing and launching a fresh TurnKey instance and test if it "just works" OOTB? At least that will enable us to see if that's the issue.
If there is some other reason why you need the QEMU agent, then perhaps that isn't a suitable workaround? But at least it might assist us to understand where the issue is occurring?!