qemu-kvm upstart configuration from qemu-system-x86 relies on binary from qemu-kvm

Bug #1348551 reported by James Page
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Fix Released
High
Unassigned
Trusty
Fix Released
High
Unassigned

Bug Description

===================================
SRU Justification
Impact: users do not get KSM auto-enabled if they only install qemu-system-x86
Development fix: have the qemu-kvm upstart job run if qemu-system-x86 is installed, not only if kvm is installed
Stable fix: same as devel fix
Test case: sudo apt-get install qemu-system-x86; cat /sys/kernel/mm/ksm/run -> this should be 1, but will be 0 with this bug unless qemu-kvm package is installed.
Regression potential: there should be none
===================================

qemu-kvm is a transitional package, so can be removed in which case qemu-kvm defaults won't ever get applied:

>>>>>

start on runlevel [2345]

pre-start script
    # Silently exit if the package isn't installed anymore
    if [ ! -e /usr/bin/kvm ]; then
        exit 0
    fi

<<<<<<

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: qemu-system-x86 2.0.0+dfsg-2ubuntu1
ProcVersionSignature: User Name 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Fri Jul 25 09:20:35 2014
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
James Page (james-page) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

qemu-kvm is not a transitional package (check utopic), but obviously this is non-ideal.

The sysvinit script checks /dev/kvm instead. That would be fine for newer systems, but older systems where kvm is not auto-loaded at boot would suffer. I'm not sure if we actually support any such systems any more.

Changed in qemu (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in qemu (Ubuntu Trusty):
importance: Undecided → High
Changed in qemu (Ubuntu):
importance: Medium → High
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qemu - 2.0.0+dfsg-6ubuntu2

---------------
qemu (2.0.0+dfsg-6ubuntu2) utopic; urgency=medium

  * d/qemu-system-x86.qemu-kvm.upstart: change the early-exit check from
    /usr/bin/kvm to qemu-system-x86_64. (LP: #1348551)
 -- Serge Hallyn <email address hidden> Fri, 25 Jul 2014 08:35:02 -0500

Changed in qemu (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello James, or anyone else affected,

Accepted qemu into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/qemu/2.0.0+dfsg-2ubuntu1.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in qemu (Ubuntu Trusty):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Mathew Hodson (mhodson) wrote :

Verified with qemu-system-x86 2.0.0+dfsg-2ubuntu1.2 from trusty-proposed.

$ sudo apt-get install qemu-system-x86 --no-install-recommends
[...]
$ cat /sys/kernel/mm/ksm/run
1

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qemu - 2.0.0+dfsg-2ubuntu1.2

---------------
qemu (2.0.0+dfsg-2ubuntu1.2) trusty-proposed; urgency=medium

  * d/qemu-system-x86.qemu-kvm.upstart: change the early-exit check from
    /usr/bin/kvm to qemu-system-x86_64. (LP: #1348551)
 -- Serge Hallyn <email address hidden> Fri, 25 Jul 2014 08:59:57 -0500

Changed in qemu (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of the Stable Release Update for qemu has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.