On Tue, Jul 07, 2009 at 10:41:36AM -0700, Brian Leonard wrote:
> I've been struggling to use the sysidcfg file to preconfigure my zones in 
> 2009.06. I've read a couple of other posts where folks have also struggled 
> (http://opensolaris.org/jive/thread.jspa?messageID=307290, 
> http://opensolaris.org/jive/thread.jspa?messageID=319155). Before filing an 
> issue I wanted to run it by this alias to see if I'm missing something. Here 
> are the steps I'm using:
> cat myzone.config
> create -b
> set zonepath=/zones/myzone
> set brand=ipkg
> set autoboot=false
> set ip-type=shared
> add net
> set address=
> set physical=e1000g0
> end
> pfexec zonecfg -z myzone < myzone.config
> pfexec zoneadm -z myzone install
> At this point, there is no etc directory, so I create one:
> pfexec mkdir /zones/myzone/root/etc

and this is where things go off the rails...  you can't just create this
directory since when the zone get's booted the zone root filesystem will
be mounted here and whatever you've created will get covered up.

i'm not sure what the best workaround is.  one thing you might try is
changing the zone to the "ready" state before creating your sysidcfg
file.  ie, do:
        zoneadm -z myzone ready

then create the sysidcfg file and boot the zone as your normally would.

let us know if that works...

zones-discuss mailing list

Reply via email to