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

qemu processes still running after "vagrant destroy" #35

Open
jayunit100 opened this issue Apr 2, 2023 · 1 comment
Open

qemu processes still running after "vagrant destroy" #35

jayunit100 opened this issue Apr 2, 2023 · 1 comment

Comments

@jayunit100
Copy link

jayunit100 commented Apr 2, 2023

I notice that after running vagrant destroy --force i still often have some QEMU processes running.

for example, running vagrant destroy --force on a 2 node cluster (1 windows, 1 linux)... i see the linux node is still running.

==> winw1: Stopping the instance...
==> winw1: Destroying the instance...
==> controlplane: Stopping the instance...
==> controlplane: Destroying the instance...

And then checking , theres still a qemu-system process...

➜  sig-windows-dev-tools git:(master-qemu) ✗ ps -ax | grep qemu
30074 ??       333:11.26 /opt/homebrew/bin/qemu-system-x86_64 -machine q35 -cpu qemu64 -smp 2 -m 4096 -device virtio-net-pci,netdev=net0 -netdev user,id=net0,hostfwd=tcp::50022-:22,net=10.20.30.0/24,dhcpstart=10.20.30.10 -drive if=virtio,format=qcow2,file=/Users/jayunit100/SOURCE/sig-windows-dev-tools/.vagrant/machines/controlplane/qemu/jVYrVcYN1nw/linked-box.img -chardev socket,id=mon0,path=/Users/jayunit100/.vagrant.d/tmp/vagrant-qemu/jVYrVcYN1nw/qemu_socket,server=on,wait=off -mon chardev=mon0,mode=readline -chardev socket,id=ser0,path=/Users/jayunit100/.vagrant.d/tmp/vagrant-qemu/jVYrVcYN1nw/qemu_socket_serial,server=on,wait=off -serial chardev:ser0 -pidfile /Users/jayunit100/SOURCE/sig-windows-dev-tools/.vagrant/machines/controlplane/qemu/jVYrVcYN1nw/qemu.pid -parallel null -monitor none -display none -vga none -daemonize
@ppggff
Copy link
Owner

ppggff commented Apr 3, 2023

Currently the VM is ended by sending a shutdown signal to qemu. This may have some delay or may also fail. If it still doesn't work after some time, you need to manually kill the residual processes for now.

Later I will put the 'wait-kill' logic to the plugin.

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

No branches or pull requests

2 participants