ignores -no-shutdown

Bug #362550 reported by Jamin W. Collins
2
Affects Status Importance Assigned to Milestone
kvm (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: kvm

kvm appears to ignore the -no-shutdown command line parameter and instead allows the VM to exit on shutdown.

According to kvm's manpage:

       kvm is based on qemu and its parameters are the same with the above
       additions, please see the kvm-qemu(1) manpage for instructions on how
       to run the program.

According to the kvm-qemu manpage:

       -no-shutdown
           Don’t exit QEMU on guest shutdown, but instead only stop the
           emulation. This allows for instance switching to monitor to commit
           changes to the disk image.

Based on the above information, I would expect any VM started under kvm with the -no-shutdown parameter to halt when the VM OS has requested a shutdown, but not exit. However, actual experience with a Windows XP VM is that once the VM OS shuts down, kvm exits.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
MachineType: LENOVO
NonfreeKernelModules: nvidia ath_hal
Package: kvm 1:84+dfsg-0ubuntu10
ProcCmdLine: root=UUID=66cf90ad-d4ec-4ec1-afb0-3fc3b17e3141 ro vga=0x37d quiet splash crashkernel=384M-2G:64M@16M,2G-:128M@16M
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.28-11.41-generic
SourcePackage: kvm

Revision history for this message
Jamin W. Collins (jcollins) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi Jamin-

I believe this should be fixed by qemu upstream. I should be merging for Karmic very soon, and you can test it there.

If you'd like to test a build from qemu-kvm upstream source repository, you can try the daily builds in the following PPA. Please provide feedback if you do.

 * https://edge.launchpad.net/~qemu/+archive/ppa

:-Dustin

Changed in kvm (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Tested this in Karmic, works as desired. Thanks for the report.

:-Dustin

Changed in kvm (Ubuntu):
status: Triaged → 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.