Changing hostname and IP before booting Solaris 11
We're doing some recovery testing of a Solaris 11 production system. Immediately after recovery and before we boot the restored OS we want to change the hostname and IP address so that it does not conflict with the real production system. Changing the hostname involves running svccfg/svcadm and changing IP address is via ipadm.
Does anyone know how to run these commands against an inactive instance of Solaris 11? In the old days of Solaris 10 we'd just mount the root filesystem onto /mnt then edit /mnt/etc/hosts and reboot but I cannot see how to do the equivalent under Solaris 11.