|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|
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 - 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.
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.
# cd /
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.
You can use alternate methods for creating the archive. The installer can accept the following archive formats:
gzip compressed cpio archives
bzip2 compressed cpio archives
pax archives created with the -x xustar (XUSTAR) format
ufsdump level zero (full) backups
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.
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