poweroff in the guest doesn't stop the kvm process on the host

Bug #193451 reported by Mathias Gug
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When using the poweroff command in a guest (hardy-server-amd64) , the guest shuts down. The console shows the guest reaches the "System halted" stage. However the kvm process on the host is still running.

To reproduce:
1. Boot a guest - login and poweroff the guest.
2. The guest shuts down.

Result:
The list command in virsh still shows the domain as running.

Expected result:
The kvm process should disappear on the host.
The list command in virsh should not return the domain.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This happens on hardy desktop i386 as well, but does not on dapper-gutsy 32bit guests.

Changed in libvirt:
status: New → Confirmed
Revision history for this message
agent 8131 (agent-8131) wrote :

I haven't tested this but I was just reading up on libvirt lifecycle control. Have you tried changing the on_poweroff setting to destroy since it seems to default to preserve?

For more information:

http://libvirt.org/formatdomain.html#elementsLifecycle

Revision history for this message
nerling (nerling) wrote :

I'm experiencing the same issue.
@agent 8131: The xml definition of the VM already uses destroy on powerdown:
(snip)
 <on_poweroff>destroy</on_poweroff>
 <on_reboot>restart</on_reboot>
 <on_crash>destroy</on_crash>
(snip)

Revision history for this message
nerling (nerling) wrote :

Last Libvirt xml definition of the VM is buggy(was somehow parsed by launchpad)

Changed in libvirt (Ubuntu):
importance: Undecided → Low
Revision history for this message
Mathias Gug (mathiaz) wrote :

Unable to reproduce this with kvm 1:84+dfsg-0ubuntu12.4~hardy1~ppa1 and libvirt 0.6.1-0ubuntu5.1~rc1ppa1.
Marking Fixed Released.

Changed in libvirt (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.