RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1267882 - Can't create ppc64 guests on a ppc64le host
Summary: Can't create ppc64 guests on a ppc64le host
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.2
Hardware: ppc64le
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Andrea Bolognani
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-01 09:46 UTC by Andrea Bolognani
Modified: 2015-11-19 06:55 UTC (History)
11 users (show)

Fixed In Version: libvirt-1.2.17-13.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 06:55:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2202 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2015-11-19 08:17:58 UTC

Description Andrea Bolognani 2015-10-01 09:46:17 UTC
Attempting to create a ppc64 guest on a ppc64le host fails
right away with the following error message:
 
  $ virt-install --arch ppc64 ...
  ERROR    Host does not support any virtualization options for arch 'ppc64'

Editing an existing guest by changing the contents of the
<arch> element from ppc64le to ppc64 also fails:

  $ virsh edit ...
  error: invalid argument: could not find capabilities for arch=ppc64 
  Failed. Try again? [y,n,i,f,?]: 

The same happens if you try creating a ppc64le guest on a
ppc64 host.

It should be possible to create ppc64 guests on ppc64le
hosts, and vice versa, because the CPU endianness is
chosen by the guest kernel at startup.

Comment 3 Andrea Bolognani 2015-10-01 12:51:46 UTC
Fix posted upstream.

  https://www.redhat.com/archives/libvir-list/2015-October/msg00019.html

Comment 4 David Gibson 2015-10-01 23:43:15 UTC
Am I right in thinking you can workaround this by choosing "ppc64le" in the libvirt config, but installing a ppc64 (BE) guest anyway?

Comment 5 Andrea Bolognani 2015-10-05 06:33:19 UTC
(In reply to David Gibson from comment #4)
> Am I right in thinking you can workaround this by choosing "ppc64le" in the
> libvirt config, but installing a ppc64 (BE) guest anyway?

Yes, you can definitely do that, but of course it's kinda
ugly - not to mention very confusing to someone who's just
trying to install a BE guest on a LE host.

Comment 6 Andrea Bolognani 2015-10-05 08:07:16 UTC
The issue has been fixed upstream.

  commit 938368f8382ca94c5156c44ad85a06cf9e4f8f8f
  Author: Andrea Bolognani <abologna>
  Date:   Wed Sep 30 11:58:58 2015 -0400

      qemu: Add conditions for qemu-kvm use on ppc64

      qemu-kvm can be used to run ppc64 guests on ppc64le hosts and vice
      versa, since the hardware is actually the same and the endianness
      is chosen by the guest kernel.

      Up until now, however, libvirt didn't allow the use of qemu-kvm
      to run guests if their endianness didn't match the host's.

      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1267882

v1.2.20-20-g938368f

Comment 9 Dan Zheng 2015-10-09 07:18:20 UTC
Reproduce with below package:
libvirt-1.2.17-12.el7.ppc64le

Test with below packages:
libvirt-1.2.17-13.el7.ppc64le
qemu-kvm-rhev-2.3.0-28.el7.ppc64le
kernel-3.10.0-320.el7.ppc64le

Below tests are executed.
1. Pass.  virt-install can work with --arch ppc64, the guest is created, running and can be accessed.
virt-install --name rhel72-20151008-be --arch ppc64 --location http://download.eng.bos.redhat.com/rel-eng/RHEL-7.2-Snapshot-4.1/compose/Server/ppc64/os/ --memory 2048 --disk size=20,bus=virtio --nographics  --network model=virtio,bridge=virbr0



2. Pass. virt-install can work with --arch ppc64le, the guest is created, running and can be accessed.
virt-install --name rhel72-20151008-le --arch ppc64le --location http://download.eng.bos.redhat.com/rel-eng/RHEL-7.2-Snapshot-4.1/compose/Server/ppc64le/os/ --memory 2048 --disk size=20,bus=virtio --nographics  --network model=virtio,bridge=virbr0

3. Pass. Edit a guest XML and changes can be saved.
# virsh edit guest
Change to arch='ppc64' instead of arch='ppc64le'
 <os>
    <type arch='ppc64' machine='pseries-rhel7.2.0'>hvm</type>
    <boot dev='hd'/>
 </os>

4. No ppc64 machine, so the vice versa scenarios can not be tested.

Comment 11 errata-xmlrpc 2015-11-19 06:55:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2202.html


Note You need to log in before you can comment on or make changes to this bug.