You must be the global administrator in the global zone to perform this procedure.
Become superuser, or assume the Primary Administrator role.
To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.
Use one of the following methods.
Generate the manifest on the source host for my-zone and pipe the output to a remote command that will immediately validate the target host:
global# zoneadm -z my-zone detach -n | ssh remotehost zoneadm attach -n - |
The hyphen (—) at the end of the line specifies stdin for the path.
The validation is output to the source host screen, which is stdout.
Generate the manifest on the source host for my-zone and direct the output to a file:
global# zoneadm -z my-zone detach -n > filename |
Copy the manifest to the new host system as described in How to Move the zonepath to a New Host, and perform the validation:
global# zoneadm attach -n path_to_manifest |
The path can be — to specify stdin.