Red Hat Bugzilla – Bug 888860
qemu does not quit after guest halt
Last modified: 2012-12-20 06:34:25 EST
Description of problem:
If I shut down the virtual machine from within the guest, the machine stays running, qemu does not quit.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. qemu-img create -f qcow2 F18.qcow2 10G
2. qemu-kvm -m 1024 -cdrom bfo.iso -boot d F18.qcow2
3. install F18 as the guest OS
4. after installation, login as root in the guest
5. run "halt" in the guest
6. wait ...
7. switch to qemu monitor via ctrl+alt+f2
8. run "info status" in the monitor
the qemu window displays the text:
[ 83.659469] System halted.
qemu-kvm is running
you get "VM status: running" in the monitor
the qemu window disappears
qemu-kvm quits, returning to shell
you cannot switch to the monitor as the window is gone already
see also bug #835493, bug #835497, I guess these are the same
"halt" in the guest does not power it off after it reaches runlevel 0 (or whatever systemd calls it :)). "poweroff" does that.
(In reply to comment #1)
> "halt" in the guest does not power it off after it reaches runlevel 0 (or
> whatever systemd calls it :)). "poweroff" does that.
hm, I have always thought that "halt" is just an alias for "shutdown -h"
then we have an inconsistency here - a regression; but knowing what to look for, reading F15 release notes, I see we call this bug a feature, as usual with systemd :-(