JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Oracle Solaris Zones, Oracle Solaris 10 Containers, and Resource Management     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

Part I Oracle Solaris Resource Management

1.  Introduction to Resource Management

2.  Projects and Tasks (Overview)

3.  Administering Projects and Tasks

4.  Extended Accounting (Overview)

5.  Administering Extended Accounting (Tasks)

6.  Resource Controls (Overview)

7.  Administering Resource Controls (Tasks)

8.  Fair Share Scheduler (Overview)

9.  Administering the Fair Share Scheduler (Tasks)

10.  Physical Memory Control Using the Resource Capping Daemon (Overview)

11.  Administering the Resource Capping Daemon (Tasks)

12.  Resource Pools (Overview)

13.  Creating and Administering Resource Pools (Tasks)

14.  Resource Management Configuration Example

Part II Oracle Solaris Zones

15.  Introduction to Oracle Solaris Zones

16.  Non-Global Zone Configuration (Overview)

17.  Planning and Configuring Non-Global Zones (Tasks)

18.  About Installing, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)

19.  Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)

20.  Non-Global Zone Login (Overview)

21.  Logging In to Non-Global Zones (Tasks)

22.  Moving and Migrating Non-Global Zones (Tasks)

23.  About Packages on an Oracle Solaris 11 Express System With Zones Installed

24.  Oracle Solaris Zones Administration (Overview)

25.  Administering Oracle Solaris Zones (Tasks)

26.  Troubleshooting Miscellaneous Oracle Solaris Zones Problems

Part III Oracle Solaris 10 Zones

27.  Introduction to Oracle Solaris 10 Zones

28.  Assessing an Oracle Solaris 10 System and Creating an Archive

Source and Target System Prerequisites

Enabling Oracle Solaris 10 Package and Patch Tools

Installing the Required Oracle Solaris Package on the Target System

Assess the System To Be Migrated

Creating the Image for Directly Migrating Oracle Solaris 10 Systems Into Zones

How to Use flarcreate to Create the Image

Other Archive Creation Methods

Host ID Emulation

29.  (Optional) Migrating an Oracle Solaris 10 native Non-Global Zone Into an Oracle Solaris 10 Container

30.  Configuring the solaris10 Branded Zone

31.  Installing the solaris10 Branded Zone

32.  Booting a Zone and Zone Migration

33.  solaris10 Branded Zone Login and Post-Installation Configuration

Glossary

Index

Creating the Image for Directly Migrating Oracle Solaris 10 Systems Into Zones

You can use the Oracle Solaris Flash archiving tools to create an image of an installed system that can be migrated into a zone.

The system can be fully configured with all of the software that will be run in the zone before the image is created. This image is then used by the installer when the zone is installed.


Caution

Caution - If you create an Oracle Solaris Flash archive, or flar, of an Oracle Solaris 10 system with a ZFS root, then by default, the flar will actually be a ZFS send stream, which can be used to recreate the root pool. This image cannot be used to install an Oracle Solaris 10 Container. You must create the flar with an explicit cpio or pax archive when the system has a ZFS root.

To create the flar, use the flarcreate command with the -L archiver option, specifying cpio or pax as the method to archive the files. See Step 4 in the next procedure. Also see Other Archive Creation Methods.


How to Use flarcreate to Create the Image

Use the flarcreate command described in the flarcreate(1M) Oracle Solaris 10 man page to create the system image. This example procedure uses NFS to place the flash archive on the target Oracle Solaris 11 Express system, but you could use any method to move the files.

You must be the global administrator or a user with the appropriate authorizations in the global zone to perform this procedure.

  1. Be superuser, or have the required rights profile.
  2. Log into the source Oracle Solaris 10 system to be archived.
  3. Change directories to the root directory.
    # cd /
  4. Use flarcreate to create a flash archive image file named s10-system on the source system, and place the archive onto the target Oracle Solaris 11 Express system:
    source-system # flarcreate -S -n s10-system -L cpio /net/target/export/s10-system.flar
    Determining which filesystems will be included in the archive...
    Creating the archive...
    cpio: File size of "etc/mnttab" has
    increased by 435
    2068650 blocks
    1 error(s)
    Archive creation complete.

    Tip - In some cases, flarcreate can display errors from the cpio command. Most commonly, these are messages such as File size of etc/mnttab has increased by 33. When these messages pertain to log files or files that reflect system state, they can be ignored. Be sure to review all error messages thoroughly.


Other Archive Creation Methods

You can use alternate methods for creating the archive. The installer can accept the following archive formats:

Additionally, the installer can only accept a directory of files created by using an archiving utility that saves and restores file permissions, ownership, and links.

For more information, see the cpio(1), pax(1), bzip2(1), gzip(1), and ufsdump(1M) man pages.


Note - If you use a method other than flash archive for creating an archive for P2V, you must unmount the processor-dependent libc.so.1 lofs-mounted hardware capabilities (hwcap) library on the source system before you create the archive. Otherwise, the zone installed with the archive might not boot on the target system. After you have created the archive, you can remount the proper hardware capabilities library on top of /lib/libc.so.1 by using lofs and the mount -O option.

source-system# unmount /lib/libc.so.1
source-system# mount -O -F lofs /lib/libc.so.1