How to detach a Solaris non-global zone when zoneadm detach is not available

containerssolaris

I have an old Solaris 10U1 that does not have zoneadm detach command. Only the following subcommands are supported:

  • help
  • boot
  • halt
  • ready
  • reboot
  • list
  • verify
  • install
  • uninstall

I need this to move the zones to a Solaris10U9.

Best Answer

There is no need to detach. Just make a backup of your zone root, copy/move it to your new global zone and do an upgrade on attach (zoneadm attach -u) with it.

Detaching is zone a convenience but not mandatory. This is clearly stated in the zoneadm manual page.

Therefore, it is advised (though not required) that the detach subcommand should be run before the “attach” takes place.