bobuhiro11 / gokvm

KVM based tiny x86 hypervisor written in pure golang, which can boot Linux
https://blog.bobuhiro11.net/tags/gokvm.html
MIT License
206 stars 21 forks source link

[BUG] Shutdown does not exits the VM #142

Closed ChriMarMe closed 1 year ago

ChriMarMe commented 1 year ago

If inside VM linux: u-root does provide shutdown command, and it shuts down the system, but does not exit the VM.

shutdown -r for rebooting leads to proper VMexit.

Which is kinda weird behaviour.

bobuhiro11 commented 1 year ago

Thanks for bug report! I was able to reproduce in my environment that "shutdown -r" cause an exit with "CPU 0 exits" message, but "shutdown" does not.

It may be related to https://github.com/bobuhiro11/gokvm/issues/87.

ChriMarMe commented 1 year ago

Indeed the same issue.