Skip to contentSkip to conversation

kvm-29 failing to exit or reboot

DISCUSSION Charles Duffy 2 participants 3 messages Jul 17, 2007 KVM

lore
Share & tools
lore
#0 lore raw

Per subject. Running 2.6.20-gentoo-r6 with the kvm-29 kernel module on an Intel chip; both host and guest are 64-bit.

The end of the installer I'm trying to test goes like this:
=== snip
+ sync
+ reboot -f
md: stopping all md devices.
Restarting system.
machine restart
=== snip

...and there it sits (eating no CPU time, at least) until I kill the process. I'm running with -nographic, and "ctrl+a x" [like the other console commands] is nonresponsive after the child goes into this state (though it works fine beforehand).

Normally, this wouldn't be particularly annoying -- but since I'm trying to use qemu scriptably, this means I may need to use an expect script to monitor output, figure out when the guest is intended to shut down or reboot, and forcefully kill the process -- not exactly my preferred way of doing things.

Is this known behavior? If not, is there something I can do to help diagnose its cause?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#1 lore raw

On rereading this post, I find that I forgot to mention my use of -no-reboot. As I wish the VM to exit on a reboot attempt (and "kvm --help" documents -no-reboot as "exit instead of rebooting"), I am using said flag.

If I leave out -no-reboot, "reboot -f" causes kvm to exit rather than hang. Not the behavior described by the documentation -- but it works!

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#2 lore raw
Quoted 9 lines · Charles Duffy

On rereading this post, I find that I forgot to mention my use of -no-reboot. As I wish the VM to exit on a reboot attempt (and "kvm --help" documents -no-reboot as "exit instead of rebooting"), I am using said flag.

If I leave out -no-reboot, "reboot -f" causes kvm to exit rather than hang. Not the behavior described by the documentation -- but it works!

That's broken.

Can you add printfs() to the pio and mmio code in qemu/qemu-kvm.c and see how the guest is trying to reboot?

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/