Re: [zones-discuss] Preconfiguring ipkg Brand Zones
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=10.0.1.25 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 create the following sysidcfg file: bleon...@opensolaris:/zones/myzone/root/etc# cat sysidcfg system_locale=C terminal=xterms network_interface=PRIMARY {hostname=myzone} security_policy=none name_service=NONE nfs4_domain=dynamic timezone=US/Eastern root_password=changeme Log into the zone: pfexec zlogin -C myzone And then boot it: pfexec zoneadm -z myzone boot However, I'm still presented with the interactive sysidcfg. I checked the sysidconfig.log, but there's not much information to go on: r...@myzone:/var/log# tail sysidconfig.log Added entry /lib/svc/method/sshd at Tue Jul 07 13:23:30 2009 Executing Configuration Applications at: Tue Jul 07 10:32:32 2009 Executing config app: /lib/svc/method/sshd Completed Executing Configuration Applications at: Tue Jul 07 10:32:35 2009 Am I doing something wrong or is this a bug? You are doing something wrong. This is a FAQ: http://opensolaris.org/os/community/zones/faq/#os Readying the zone is the proper way to workaround this for now. Jerry ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Preconfiguring ipkg Brand Zones
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=10.0.1.25 > 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... ed ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Preconfiguring ipkg Brand Zones
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=10.0.1.25 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 create the following sysidcfg file: bleon...@opensolaris:/zones/myzone/root/etc# cat sysidcfg system_locale=C terminal=xterms network_interface=PRIMARY {hostname=myzone} security_policy=none name_service=NONE nfs4_domain=dynamic timezone=US/Eastern root_password=changeme Log into the zone: pfexec zlogin -C myzone And then boot it: pfexec zoneadm -z myzone boot However, I'm still presented with the interactive sysidcfg. I checked the sysidconfig.log, but there's not much information to go on: r...@myzone:/var/log# tail sysidconfig.log Added entry /lib/svc/method/sshd at Tue Jul 07 13:23:30 2009 Executing Configuration Applications at: Tue Jul 07 10:32:32 2009 Executing config app: /lib/svc/method/sshd Completed Executing Configuration Applications at: Tue Jul 07 10:32:35 2009 Am I doing something wrong or is this a bug? Thanks, Brian -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org