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

kraft rm does not kill qemu process if the VM is not started #1726

Open
LucaSeri opened this issue Jun 17, 2024 · 0 comments · May be fixed by #1734
Open

kraft rm does not kill qemu process if the VM is not started #1726

LucaSeri opened this issue Jun 17, 2024 · 0 comments · May be fixed by #1734
Assignees
Labels
kind/bug Something isn't working

Comments

@LucaSeri
Copy link
Contributor

Describe the bug

Run a kernel without starting it. Then remove it. The qemu process is never killed.

Steps to reproduce

$ ps aux | grep qemu
305:kero       27961  0.0  0.0  12100  2688 pts/1    S+   16:21   0:00 grep -n --color qemu

$ kraft run nginx:1.25 --no-start
nervous_maggie

$ kraft ps --all
NAME            KERNEL            ARGS            CREATED        STATUS   MEM  PORTS  PLAT
nervous_maggie  oci://nginx:1.25  /usr/bin/nginx  4 seconds ago  created  64M         qemu/x86_64

$ kraft rm --all
nervous_maggie

$ kraft ps --all
NAME  KERNEL  ARGS  CREATED  STATUS  MEM  PORTS  PLAT

$ ps aux | grep qemu
304:root       27997  0.5  0.2 383056 70276 ?        Sl   16:21   0:00 qemu-system-x86_64 -append /usr/bin/nginx  -cpu host,+x2apic,-pmu -daemonize -device pvpanic -device sga -display none -enable-kvm -kernel /home/kero/.local/share/kraftkit/runtime/e9da9bb7-5e1c-415c-bd58-3fd4cd2fd3b9/unikraft/bin/kernel -machine pc,accel=kvm -m size=64M -monitor unix:/home/kero/.local/share/kraftkit/runtime/e9da9bb7-5e1c-415c-bd58-3fd4cd2fd3b9/qemu_mon.sock,server,nowait -name e9da9bb7-5e1c-415c-bd58-3fd4cd2fd3b9 -nographic -no-reboot -S -parallel none -pidfile /home/kero/.local/share/kraftkit/runtime/e9da9bb7-5e1c-415c-bd58-3fd4cd2fd3b9/machine.pid -qmp unix:/home/kero/.local/share/kraftkit/runtime/e9da9bb7-5e1c-415c-bd58-3fd4cd2fd3b9/qemu_control.sock,server,nowait -qmp unix:/home/kero/.local/share/kraftkit/runtime/e9da9bb7-5e1c-415c-bd58-3fd4cd2fd3b9/qemu_events.sock,server,nowait -rtc base=utc -serial file:/home/kero/.local/share/kraftkit/runtime/e9da9bb7-5e1c-415c-bd58-3fd4cd2fd3b9/machine.log -smp cpus=1,threads=1,sockets=1 -vga none
308:kero       28074  0.0  0.0  12100  2688 pts/1    S+   16:21   0:00 grep -n --color qemu

Expected behavior

For the qemu process to be cleaned

Which architectures were you using or does this bug affect?

No response

Which operating system were you using or does this bug affect?

No response

Relevant log output

No response

@LucaSeri LucaSeri added the kind/bug Something isn't working label Jun 17, 2024
@craciunoiuc craciunoiuc self-assigned this Jun 19, 2024
craciunoiuc added a commit to craciunoiuc/kraftkit that referenced this issue Jun 19, 2024
GitHub-Closes: unikraft#1726
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants