Skip to content
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

VM shutdown not detected #34

Open
Defelo opened this issue Jul 3, 2024 · 1 comment · May be fixed by #41
Open

VM shutdown not detected #34

Defelo opened this issue Jul 3, 2024 · 1 comment · May be fixed by #41

Comments

@Defelo
Copy link

Defelo commented Jul 3, 2024

When shutting down a virtual machine (either via Proxmox or from within the vm itself), Proxmox does not detect that the vm has powered off. In this state it is still possible to connect to the console (see screenshot below), and qm list reports that the vm is still running. In this state the only way to actually power the machine off is to forcefully stop it. This is also problematic when shutting down or rebooting the host, because systemd would wait for all vms to shutdown (which it fails to detect) and then would time out after 90 seconds.

image

I assume this might be related to the following error which occurs whenever a vm is started:

Jul 03 14:48:37 nixos QEMU[1460]: qemu-kvm: Unable to connect character device qmp-event: Failed to connect to '/var/run/qmeventd.sock': No such file or directory

On my Debian based Proxmox host this socket does exist and seems to be managed by the qmeventd systemd service, which appears to be missing on proxmox-nixos.

@JulienMalka
Copy link
Member

Thank you for the extensive error report, I have seen this problem in my instance as well. Will have a look pretty soon, as a workaround stopping the VM with the "stop" button after it has reached the poweroff target seems to work for now.

camillemndn added a commit that referenced this issue Jul 11, 2024
@camillemndn camillemndn linked a pull request Jul 11, 2024 that will close this issue
camillemndn added a commit that referenced this issue Jul 11, 2024
camillemndn added a commit that referenced this issue Jul 11, 2024
camillemndn added a commit that referenced this issue Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants