<div style="font-family: Arial; font-size: 13;">Hi,</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">I'd like to share this experience of mine, maybe useful to someone else.</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">Just happened to work on moving old zones coming from old OI-like servers, with totally different and older origin pkg repos.</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">I wanted to bring them into the latest XStreamOS, moving the datasets and updating the zones kernel without affecting specific application data/softwares, or at least have a chance to make them work in some way on the new system.<br><br>As you may already know, attaching and updating the old zones on the new system will try to bring pkg consistency of the zone to the current hosting global zone. This will fail in this case. Too different packagings and consolidations.</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">But I found this trick to work:</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">- zonecfg -z myzone: use it to configure the zone on the new system, then set zonepath to the path of the moved zone's zfs dataset</div><div style="font-family: Arial; font-size: 13;">- zoneadm -z myzone attach -u: let the new system try to update the zone's dataset with the new global-zone pkg publisher, and then fail to update because of old pkg and others inconsistencies</div><div style="font-family: Arial; font-size: 13;">- zoneadm -z myzone attach -F: force the zone into installed state and attach without checks</div><div style="font-family: Arial; font-size: 13;">- pkg update -r -z myzone : let the global zone take care of updating the zone packages through its own lates pkg, bringing kernel binaries, libs and boot-environment consistent with the global zone</div><div style="font-family: Arial; font-size: 13;">- zfs set mountpoint=legacy [myzone-dataset-ROOT-zbe] : this is necessary because previous commands left the zbe dataset in a mounted and non-legacy state, which won't let you boot the zone</div><div style="font-family: Arial; font-size: 13;">- zoneadm -z myzone boot</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">Now zlogin into the zone and check that the system is running on latest kernel!</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">Sure, you may find software that is not running because of different libraries, but this can be addressed once moved.</div><div style="font-family: Arial; font-size: 13;">I had no problem at all, as all the running software is under its own directory, with its own libs, and few system libs dependencies that were happily resolved.</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;">Gabriele</div><div style="font-family: Arial; font-size: 13;"><br></div><div style="font-family: Arial; font-size: 13;"><br><div id="wt-mailcard"><div><br></div><div></div><br>
<table border="0" cellspacing="0" style="border: 1px solid #aaaaaa">
<tbody><tr>
 <td style="padding: 2px 2px 2px 2px"><a target="_blank" href="http://www.sonicle.com">
<img border="0" src="http://www.sonicle.com/images/sent-through-sonicle-webtop-90x90.png" width="90" height="90"></a></td>
 <td align="left" valing="top" style="padding: 2px 8px 2px 16px">
<font face="Arial" size="2">
<b>Gabriele Bulfon - Sonicle S.r.l.</b><br><br>
Tel +39 028246016 Int. 30 - Fax +39 028243880<br>
via Fra Cristoforo, 14/D - 20142 - Milano - Italy<br>
<a href="http://www.sonicle.com">http://www.sonicle.com</a>
</font>
 </td>
</tr>
</tbody></table>
</div></div>