{"id":1395,"date":"2022-05-10T13:27:48","date_gmt":"2022-05-10T13:27:48","guid":{"rendered":"\/blog\/?p=1395"},"modified":"2022-07-20T19:46:45","modified_gmt":"2022-07-20T19:46:45","slug":"solaris-11-zone-copy-using-unified-archives","status":"publish","type":"post","link":"\/blog\/index.php\/solaris-11-zone-copy-using-unified-archives\/","title":{"rendered":"Solaris 11 Zone copy using Unified Archives"},"content":{"rendered":"\n<p>Create the archive<\/p>\n\n\n\n<p># archiveadm create -r -z zone2 \/archives\/zone2.uar<\/p>\n\n\n\n<p>in the target system, the zpool should already exist, then we create the zone and use the archive to install the zone.<\/p>\n\n\n\n<p># zonecfg -z zone2 create -a \/root\/zone2.uar<br># zoneadm list -cv<br>ID NAME STATUS PATH BRAND IP<br>0 global running \/ solaris share<br>zone2 configured \/zone2pool solaris excl<br><br># zoneadm -z zone2 uninstall<br># zoneadm -z zone2 install -a \/root\/zone2.uar<\/p>\n\n\n\n<p>if &#8220;install&#8221; fails try this script:<\/p>\n\n\n\n<p> #!\/bin\/bash<\/p>\n\n\n\n<p>Z=$1<br>set -x<\/p>\n\n\n\n<p>pkg -R \/zones\/$Z\/root set-publisher -G http:\/\/sunutil5:10000\/ solaris<br>pkg -R \/zones\/$Z\/root variant -H variant.arch<br>pkg -R \/zones\/$Z\/root set-property use-system-repo true<br>pkg -R \/zones\/$Z\/root publisher -H -F tsv<br>pkg -R \/zones\/$Z\/root refresh &#8211;full<br>pkg -R \/zones\/$Z\/root uninstall VRTSvlic VRTSperl<br>zoneadm -z $Z attach -u<\/p>\n\n\n\n<p><br># zoneadm -z zone2 boot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create the archive # archiveadm create -r -z zone2 \/archives\/zone2.uar in the target system, the zpool should already exist, then we create the zone and use the archive to install the zone. # zonecfg -z zone2 create -a \/root\/zone2.uar# zoneadm list -cvID NAME STATUS PATH BRAND IP0 global running \/ solaris sharezone2 configured \/zone2pool solaris [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1395","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1395"}],"version-history":[{"count":10,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1395\/revisions"}],"predecessor-version":[{"id":1483,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1395\/revisions\/1483"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1395"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}