Go to main content

Creating and Using Oracle® Solaris Kernel Zones

Exit Print View

Updated: December 2018
 
 

Specifying a CPU Migration Class for SPARC Kernel Zone Warm and Live Migration

For warm migration and live migration on SPARC based systems only, you can configure a kernel zone to have a CPU class that is different from the host system. You specify the kernel zone migration class for the CPU by using the zonecfg cpu-arch resource. See solaris-kz SPARC Only: Kernel Zone Migration Class and Host Compatibility Level in Oracle Solaris Zones Configuration Resources for further information about setting the cpu-arch resource property for migration to a different CPU architecture.

If the kernel zone's CPU migration class is not set, the kernel zone's CPU migration class is the same as the host.

You must reboot the kernel zone to have the CPU migration class changes take effect.


Note -  The kernel zone host will always refuse to resume a guest previously suspended on an incompatible platform. A kernel zone guest will not boot if the cpu-arch class is set to an incompatible value.
Example 35  Confirming and Setting the Kernel Zone Migration Class on a SPARC Based System

The below example demonstrates how to confirm and set the cpu-arch resource on the kernel zone kzone1.

global$ zonecfg -z kzone1
zonecfg:kzone1> info cpu-arch
cpu-arch: generic
zonecfg:kzone1> set cpu-arch=migration-class1
zonecfg:kzone1> info cpu-arch
cpu-arch: migration-class1
zonecfg:kzone1> exit
Example 36  Live Migration Fails to Migrate Due to Incompatible CPU Architecture

This example demonstrates a live migration attempt between a SPARC T4 host global1 and a SPARC T5 host, global2. The cpu-arch property is not consistent across the hosts and must be set as directed in solaris-kz SPARC Only: Kernel Zone Migration Class and Host Compatibility Level in Oracle Solaris Zones Configuration Resources.

global1$ zoneadm -z kzone1 migrate -n ssh://global2
zoneadm: zone 'kzone1': Importing zone configuration.
zoneadm: zone 'kzone1': Attaching zone.
zoneadm: zone 'kzone1': Booting zone in 'migrating-in' mode.
zoneadm: zone 'kzone1': Checking migration compatibility.
zoneadm: zone 'kzone1': configuration check failed:
error: Suspended image cannot be resumed on current cpu migration class (SPARC-T4). Please check cpu-arch setting in zone config or in host LDom config.
2015-05-30 22:42:59 error: request failed: failed to create VM: Operation not supported