virtualization script doesn't run on IBM Power8 PowerNV

Bug #1468928 reported by Mike Rushton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Triaged
High
Mike Rushton

Bug Description

Update:
There are two issues at play and will need separate bugs:
1: the kvm-ok that is run to create the virtualization.kvm resource is returning a proper exit code (0) on ppc64el, but does not provide any output. On x86_64, it provides some output about the flag and acceleration that are missing on ppc64le.

2: THIS BUG: THe virtualization script doesn't work on ppc64el because it's apparently missing an entry in QEMU_ARCH_CONFIG for ppc64el.

Original text:

Power8 in PowerNV mode with Ubuntu installed does not expose kvm cpu capabilities:

ubuntu@powereight:~$ lsmod |grep kvm
ubuntu@powereight:~$

ubuntu@powereight:~$ egrep -o "vmx|svm" /proc/cpuinfo
ubuntu@powereight:~$

In this same mode with PowerKVM installed, the machine does have kvm capabilities.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-3.16.0-41-generic 3.16.0-41.55~14.04.1
ProcVersionSignature: User Name 3.16.0-41.55~14.04.1-generic 3.16.7-ckt11
Uname: Linux 3.16.0-41-generic ppc64le
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: ppc64el
Date: Thu Jun 25 21:35:08 2015
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-lts-utopic
UpgradeStatus: No upgrade log present (probably fresh install)
---
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Jun 25 21:13 seq
 crw-rw---- 1 root audio 116, 33 Jun 25 21:13 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: ppc64el
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
DistroRelease: Ubuntu 14.04
Lsusb:
 Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: root=/dev/mapper/mpath0-part2 ro
ProcVersionSignature: User Name 3.16.0-41.55~14.04.1-generic 3.16.7-ckt11
RelatedPackageVersions:
 linux-restricted-modules-3.16.0-41-generic N/A
 linux-backports-modules-3.16.0-41-generic N/A
 linux-firmware 1.127.11
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty uec-images
Uname: Linux 3.16.0-41-generic ppc64le
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip floppy netdev plugdev sudo video
_MarkForUpload: True

Revision history for this message
Mike Rushton (leftyfb) wrote :
Revision history for this message
Jeff Lane  (bladernr) wrote :

Two changes... 1: set to Linux in general. I think that perhaps linux-lts-utopic is sufficient, HOWEVER we want to ensure that any fix for this issue ends up in Wily and is fed back into Trusty via the utopic hwe kernel.

2: Set this to High. It's a cert blocker and is gating the certification of Power8 on bare metal. We KNOW that KVM works, IBM runs KVM in a CentOS image for PowerKVM, so we need to figure out why the Ubuntu kernel isn't exposing virtualization support on this system.

affects: linux-lts-utopic (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → High
tags: added: blocks-hwcert-server
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1468928

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Mike Rushton (leftyfb) wrote : BootDmesg.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Mike Rushton (leftyfb) wrote : CRDA.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : IwConfig.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : Lspci.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : ProcModules.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : UdevDb.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : UdevLog.txt

apport information

Revision history for this message
Mike Rushton (leftyfb) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Chris J Arges (arges) wrote : Re: IBM Power8 PowerNV does not expose kvm capabilities

This is not a bug with the kernel, different processors expose if they are 'hardware virtualization' capable in different ways.

If using systemd, you can just use 'systemd-detect-virt'.

If you want to see how that patch was done in systemd, you can look here:
https://github.com/arges/systemd/commit/121bcf6d8a2d84cac732d66677440e432fcbf8fd

Essentially check here:
cat /sys/firmware/devicetree/base/hypervisor/compatible

Marking this bug invalid.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Mike Rushton (leftyfb) wrote :

Since this machine is running 14.04.2 which is still supported for another 4 years, it is not running systemd.

Also, /sys/firmware/devicetree/base/hypervisor does not exist.

Revision history for this message
Chris J Arges (arges) wrote :

As we discussed, /sys/firmware/devicetree/base/hypervisor only exists inside a VM. Outside of a VM that path does not exist and therefore it running on bare metal.

Jeff Lane  (bladernr)
affects: linux (Ubuntu) → checkbox
Changed in checkbox:
status: Invalid → New
Revision history for this message
Jeff Lane  (bladernr) wrote :

It appears this is, ultimately a bug in the test tools. the virtualization script does not have a section in QEMU_ARCH_CONFIG to handle the command line options for ppc64el. So we'll need to that to get the correct CMD to launch the cloud image in a KVM instance.

summary: - IBM Power8 PowerNV does not expose kvm capabilities
+ virtualization script doesn't run on IBM Power8 PowerNV
description: updated
Changed in checkbox:
status: New → Triaged
assignee: nobody → Mike Rushton (leftyfb)
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.