[Ubuntu 18.04] P8 compat mode migration fails for Ubuntu 16.04.4 P8 Guest from Ubuntu 16.04.4 P8 Host -> Ubuntu 18.04 P9 Host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
High
|
Canonical Server | ||
qemu (Ubuntu) |
Fix Released
|
High
|
David Britton |
Bug Description
---Problem Description---
P8 compat mode migration fails for Ubuntu 16.04.4 P8 Guest from Ubuntu 16.04.4 P8 Host -> Ubuntu 18.04 P9 Host
We need backport of upstream qemu patch and its dependencies to Ubuntu 18.04 to fix it,
commit 72fdd4de8e5fdc1
Author: Greg Kurz <email address hidden>
Date: Tue Feb 27 16:22:58 2018 +0100
spapr: register dummy ICPs later
Some older machine types create more ICPs than needed. We hence
need to register up to xics_max_
accomodate the migration of these machine types.
Recent VSMT rework changed xics_max_
instead of
The change is okay but it requires spapr->vsmt to be set, which
isn't the case with the current code. This causes the formula to
return zero and we don't create dummy ICPs. This breaks migration
of older guests as reported here:
https:/
The dummy ICP workaround doesn't really have a dependency on XICS
itself. But it does depend on proper VCPU id numbering and it must
be applied before creating vCPUs (ie, creating real ICPs). So this
patch moves the workaround to spapr_init_cpus(), which already
assumes VSMT to be set.
Fixes: 72194664c8a1 ("spapr: use spapr->vsmt to compute VCPU ids")
Reported-by: Lukas Doktor <email address hidden>
Signed-off-by: Greg Kurz <email address hidden>
Signed-off-by: David Gibson <email address hidden>
---uname output---
P9 Host Ubuntu 18.04 (Destination)
Kernel:
# uname -a
Linux ltc-boston17 4.15.0-15-generic #16-Ubuntu SMP Wed Apr 4 13:57:51 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
Qemu:
# dpkg -l | grep qemu
ii ipxe-qemu 1.0.0+git-
ii ipxe-qemu-
ii qemu-block-
ii qemu-kvm 1:2.11+
ii qemu-slof 20170724+
ii qemu-system-common 1:2.11+
ii qemu-system-ppc 1:2.11+
ii qemu-utils 1:2.11+
# dpkg -l | grep libvirt
ii libvirt-bin 4.0.0-1ubuntu7 ppc64el programs for the libvirt library
ii libvirt-clients 4.0.0-1ubuntu7 ppc64el Programs for the libvirt library
ii libvirt-daemon 4.0.0-1ubuntu7 ppc64el Virtualization daemon
ii libvirt-
ii libvirt-
ii libvirt-dev:ppc64el 4.0.0-1ubuntu7 ppc64el development files for the libvirt library
ii libvirt-
ii libvirt0:ppc64el 4.0.0-1ubuntu7 ppc64el library for interfacing with different virtualization systems
ii python-libvirt 4.0.0-1 ppc64el libvirt Python bindings
P8 Host Ubuntu 16.04.4 (Source)
Kernel:
# uname -a
Linux pkvmhab006 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:46:55 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
Qemu:
# dpkg -l | grep qemu
ii ipxe-qemu 1.0.0+git-
ii qemu-block-
ii qemu-kvm 1:2.5+dfsg-
ii qemu-slof 20151103+
ii qemu-system-common 1:2.5+dfsg-
ii qemu-system-ppc 1:2.5+dfsg-
ii qemu-utils 1:2.5+dfsg-
# dpkg -l | grep libvirt
ii libvirt-bin 1.3.1-1ubuntu10.19 ppc64el programs for the libvirt library
ii libvirt-dev:ppc64el 1.3.1-1ubuntu10.19 ppc64el development files for the libvirt library
ii libvirt0:ppc64el 1.3.1-1ubuntu10.19 ppc64el library for interfacing with different virtualization systems
ii python-libvirt 1.3.1-1ubuntu1.1 ppc64el libvirt Python bindings
P8 Guest:
Kernel:
# uname -a
Linux ubuntu 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:46:55 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = Boston
---Debugger---
A debugger is not configured
---Steps to Reproduce---
1. Boot healthy P8 16.04.4 Ubuntu guest on P8 host
2. Have P9 Host with 18.04 Ubuntu build and allow iptables to permit migration
3. Perform migration and the error observed,
virsh -c 'qemu:///system' migrate --live --domain avocado-
error: internal error: qemu unexpectedly closed the monitor: on,vhostfd=32 -device virtio-
2018-04-
2018-04-
Userspace tool common name: Qemu
The userspace tool has the following bit modes: ppc64le
Userspace package: qemu-kvm 1:2.11+
tags: | added: architecture-ppc64le bugnameltc-166667 severity-critical targetmilestone-inin1804 |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → qemu (Ubuntu) |
Changed in ubuntu-power-systems: | |
importance: | Undecided → Critical |
tags: | added: triage-g |
Changed in ubuntu-power-systems: | |
importance: | Critical → High |
assignee: | nobody → Canonical Server Team (canonical-server) |
Changed in ubuntu-power-systems: | |
status: | New → Triaged |
Changed in qemu (Ubuntu): | |
status: | Incomplete → Triaged |
Changed in ubuntu-power-systems: | |
status: | Incomplete → Triaged |
Changed in qemu (Ubuntu): | |
importance: | Undecided → High |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → David Britton (davidpbritton) |
Changed in ubuntu-power-systems: | |
status: | Triaged → In Progress |
Changed in qemu (Ubuntu): | |
status: | Triaged → In Progress |
Changed in ubuntu-power-systems: | |
status: | In Progress → Fix Released |
I tested P8->P8 but couldn't P8->P9 lacking the HW in the same environment.
Thanks for spotting that issue, taking a look at backportability of this ...