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

shutdown command got hung #147

Open leslie-qiwa opened 1 year ago

leslie-qiwa commented 1 year ago

Thanks for this nice project!

I've created the initrd and vmlinux file, and start the VM successfully! Then when I run shutdown command, it just got hung and not respond anymore. Do you have any idea?

1999/11/30 00:00:01 Welcome to u-root!
                              _
   _   _      _ __ ___   ___ | |_
  | | | |____| '__/ _ \ / _ \| __|
  | |_| |____| | | (_) | (_) | |_
   \__,_|    |_|  \___/ \___/ \__|

loading .bashrc started.
1999/11/30 00:00:01 ip: Link not found
1999/11/30 00:00:01 ip: Link not found
nohup: PID TTY            TIME CMD
appending output to 'nohup.out'
31 console    00:00:00 defaultsh
51 null       00:00:00 nohup
52 console    00:00:00 ps
loading .bashrc finished.
defaultsh-5.0# exit
exit
sh-5.0# shutdown
[ 1125.322811][   T60] reboot: System halted
bobuhiro11 commented 1 year ago

Thanks for the comment. I am glad you are interested in gokvm! I've gotten other comments (e.g. #87 ) about shutdown, but haven't tackled it yet. But I think it's an important feature and I'd like to work on it.

ChriMarMe commented 1 year ago

Same as #87. Can be closed.