Bug 728922

Summary: KIWI-built JeOS image hangs qemu-kvm
Product: [openSUSE] openSUSE 12.1 Reporter: David Majda <dmajda>
Component: OtherAssignee: David Majda <dmajda>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High    
Version: RC 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Majda 2011-11-08 15:00:09 UTC
1. Build a 12.1 image using a KIWI template:

     kiwi --build suse-12.1-JeOS -d my-12.1-appliance --type oem

2. Run the built appliance using "qemu-kvm -snapshot <image>.raw"

3. Loogin as root and enter "halt".

3. Observe that qemu-kvm hangs and does not quit.

This bug also happens with appliances built by Studio (in fact, this is how I discovered it). With Studio-built appliances, the bug appears with OEM, VMX, ISO and OVF formats. It does not happen with XEN format. With ISO format, the console appears and text "System halted." is at the last line of the output, but qemu-kvm still hangs.

I am not sure whether this is a KIWI bug or a bug in some package -- Marcus, if this isn't KIWI problem, please assign to someone more appropriate. Thanks.
Comment 1 Marcus Schaefer 2011-11-08 15:35:16 UTC
This is not a kiwi problem. I also saw this and it happens on real hardware too
the machine is no longer switched off.

I have no clue who or what caused this

that having said I don't know a responsible person for it
Comment 2 David Majda 2011-11-09 11:51:22 UTC
If it's not KIWI then it's likely a kernel issue.

Alex -- could you have a look at this or do you know someone who could? (I have little knowledge about who does what in the kernel area.)
Comment 3 David Majda 2011-11-09 14:51:56 UTC
So it looks like one has to execute "halt -p" instead of "halt" in 12.1 with systemd. What a stupid change.

Thanks to Stano for digging this out.

*** This bug has been marked as a duplicate of bug 726387 ***