Re: [zones-discuss] issue with zones and sysconfig

2012-02-10 Thread Virginia Wray

That's finewe'll sort it out.
Thanks again for filing it.

ginnie



On 02/10/12 12:29 PM, Will Fiveash wrote:

On Fri, Feb 10, 2012 at 11:21:09AM -0700, Virginia Wray wrote:

On 02/10/12 11:23 AM, Will Fiveash wrote:

On Fri, Feb 10, 2012 at 09:02:57AM -0700, Virginia Wray wrote:

On 02/ 9/12 05:27 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 04:27:49PM -0700, Susan Kamm-Worrell wrote:

SMF will not recognize a file that doesn't end in .xml even if the file
data is correct.

zoneadm now enforces that the profile must end in .xml so that if a profile
is given it won't be silently ignored by SMF.

And yet I can do:

sysconfig create-profile -o /tmp/myprofile -g identity

(create-profile does not enforce the .xml suffix).


Hi Will --

Could you file a bug on that, and someone on sysconfig
can follow up on it.

Please tell me the product/cat/subcat I should use in bugster.


It is:
solaris/install/configuration

Thank you very much for doing this.

I created
7144647 sysconfig insisting on input files having .xml suffix is unnecessary

The reason I phrased it this way is this (from another e-mail thread on
a different list):


sysconfig also requires the .xml extension for files input to it but doesn't
require it when it creates an XML profile.  I guess I don't care that
SMF requires the .xml extension but it does bug me that I can't do:

sysconfig create-profile -o /tmp/myprofile
sysconfig configure -c /tmp/myprofile

because sysconfig configure will error out telling me I need to add the
.xml to myprofile.  Maybe the better answer is for zoneadm and sysconfig
to just add .xml to whatever it feeds to SMF.

I think the simpler way of putting is: requiring an .xml extension when
scanning a directory is logical, requiring an .xml extension when I explicitly
provide the name of a file to be parsed seems unnecessary.



___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-10 Thread Will Fiveash
On Fri, Feb 10, 2012 at 11:21:09AM -0700, Virginia Wray wrote:
> On 02/10/12 11:23 AM, Will Fiveash wrote:
> >On Fri, Feb 10, 2012 at 09:02:57AM -0700, Virginia Wray wrote:
> >>On 02/ 9/12 05:27 PM, Will Fiveash wrote:
> >>>On Thu, Feb 09, 2012 at 04:27:49PM -0700, Susan Kamm-Worrell wrote:
> SMF will not recognize a file that doesn't end in .xml even if the file
> data is correct.
> 
> zoneadm now enforces that the profile must end in .xml so that if a 
> profile
> is given it won't be silently ignored by SMF.
> >>>And yet I can do:
> >>>
> >>>sysconfig create-profile -o /tmp/myprofile -g identity
> >>>
> >>>(create-profile does not enforce the .xml suffix).
> >>>
> >>Hi Will --
> >>
> >>Could you file a bug on that, and someone on sysconfig
> >>can follow up on it.
> >Please tell me the product/cat/subcat I should use in bugster.
> >
> It is:
> solaris/install/configuration
> 
> Thank you very much for doing this.

I created 
7144647 sysconfig insisting on input files having .xml suffix is unnecessary

The reason I phrased it this way is this (from another e-mail thread on
a different list):

> sysconfig also requires the .xml extension for files input to it but doesn't
> require it when it creates an XML profile.  I guess I don't care that
> SMF requires the .xml extension but it does bug me that I can't do:
>
> sysconfig create-profile -o /tmp/myprofile
> sysconfig configure -c /tmp/myprofile
>
> because sysconfig configure will error out telling me I need to add the
> .xml to myprofile.  Maybe the better answer is for zoneadm and sysconfig
> to just add .xml to whatever it feeds to SMF.

I think the simpler way of putting is: requiring an .xml extension when
scanning a directory is logical, requiring an .xml extension when I explicitly
provide the name of a file to be parsed seems unnecessary.

-- 
Will Fiveash
Oracle Solaris Software Engineer
Austin, TX, USA
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-10 Thread Virginia Wray

On 02/10/12 11:23 AM, Will Fiveash wrote:

On Fri, Feb 10, 2012 at 09:02:57AM -0700, Virginia Wray wrote:

On 02/ 9/12 05:27 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 04:27:49PM -0700, Susan Kamm-Worrell wrote:

SMF will not recognize a file that doesn't end in .xml even if the file
data is correct.

zoneadm now enforces that the profile must end in .xml so that if a profile
is given it won't be silently ignored by SMF.

And yet I can do:

sysconfig create-profile -o /tmp/myprofile -g identity

(create-profile does not enforce the .xml suffix).


Hi Will --

Could you file a bug on that, and someone on sysconfig
can follow up on it.

Please tell me the product/cat/subcat I should use in bugster.


It is:
solaris/install/configuration

Thank you very much for doing this.

ginnie
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-10 Thread Will Fiveash
On Fri, Feb 10, 2012 at 09:02:57AM -0700, Virginia Wray wrote:
> On 02/ 9/12 05:27 PM, Will Fiveash wrote:
> >On Thu, Feb 09, 2012 at 04:27:49PM -0700, Susan Kamm-Worrell wrote:
> >>SMF will not recognize a file that doesn't end in .xml even if the file
> >>data is correct.
> >>
> >>zoneadm now enforces that the profile must end in .xml so that if a profile
> >>is given it won't be silently ignored by SMF.
> >And yet I can do:
> >
> >sysconfig create-profile -o /tmp/myprofile -g identity
> >
> >(create-profile does not enforce the .xml suffix).
> >
> Hi Will --
> 
> Could you file a bug on that, and someone on sysconfig
> can follow up on it.

Please tell me the product/cat/subcat I should use in bugster.

-- 
Will Fiveash
Oracle Solaris Software Engineer
Austin, TX, USA
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-10 Thread Virginia Wray

On 02/ 9/12 05:27 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 04:27:49PM -0700, Susan Kamm-Worrell wrote:

SMF will not recognize a file that doesn't end in .xml even if the file
data is correct.

zoneadm now enforces that the profile must end in .xml so that if a profile
is given it won't be silently ignored by SMF.

And yet I can do:

sysconfig create-profile -o /tmp/myprofile -g identity

(create-profile does not enforce the .xml suffix).


Hi Will --

Could you file a bug on that, and someone on sysconfig
can follow up on it.

thanks,
ginnie
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
On Thu, Feb 09, 2012 at 04:27:49PM -0700, Susan Kamm-Worrell wrote:
> SMF will not recognize a file that doesn't end in .xml even if the file
> data is correct.
>
> zoneadm now enforces that the profile must end in .xml so that if a profile
> is given it won't be silently ignored by SMF.

And yet I can do:

sysconfig create-profile -o /tmp/myprofile -g identity

(create-profile does not enforce the .xml suffix).

-- 
Will Fiveash
Oracle Solaris Software Engineer
Austin, TX, USA
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Susan Kamm-Worrell

SMF will not recognize a file that doesn't end in .xml even if the file
data is correct.

zoneadm now enforces that the profile must end in .xml so that if a profile
is given it won't be silently ignored by SMF.

Susan

On 02/ 9/12 02:22 PM, Virginia Wray wrote:

On 02/ 9/12 02:19 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 01:27:34PM -0700, Virginia Wray wrote:

On 02/ 9/12 12:47 PM, Will Fiveash wrote:
# zlogin mit /usr/sbin/sysconfig configure -g system -c 
/var/tmp/mit.profile.xml

svcadm: No such instance "svc:/system/svc/restarter:default".

The problem is that you booted the zone and then ran the sysconfig
command.  On first boot of the zone, the sysconfig utility is
automatically invoked for an interactive configuration.  The system
isn't completely on line, which I think accounts for the svcadm error.

You are, in effect, trying to run sysconfig when it is already
running.

OK, that makes sense.  I can see now in the solaris.5 man page that I
can use either zoneadm "clone -c profile.xml" or "install -c
profile.xml" to apply the sysconfig profile data properly.
As an aside, it seems bogus to me that sysconfig requires the profile
file end in .xml.  Wouldn't it be better if it made sure the first
non-blank line in the profile file was:

"/usr/share/lib/xml/dtd/service_bundle.dtd.1">


?


Possibly. I'm not sure why the .xml extension was made the requirement.
I'll ask someone who was part of that decision and see if there was a 
reason.


ginnie
___
zones-discuss mailing list
zones-discuss@opensolaris.org

___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Virginia Wray

On 02/ 9/12 02:19 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 01:27:34PM -0700, Virginia Wray wrote:

On 02/ 9/12 12:47 PM, Will Fiveash wrote:

# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml
svcadm: No such instance "svc:/system/svc/restarter:default".

The problem is that you booted the zone and then ran the sysconfig
command.  On first boot of the zone, the sysconfig utility is
automatically invoked for an interactive configuration.  The system
isn't completely on line, which I think accounts for the svcadm error.

You are, in effect, trying to run sysconfig when it is already
running.

OK, that makes sense.  I can see now in the solaris.5 man page that I
can use either zoneadm "clone -c profile.xml" or "install -c
profile.xml" to apply the sysconfig profile data properly.
As an aside, it seems bogus to me that sysconfig requires the profile
file end in .xml.  Wouldn't it be better if it made sure the first
non-blank line in the profile file was:



?


Possibly. I'm not sure why the .xml extension was made the requirement.
I'll ask someone who was part of that decision and see if there was a 
reason.


ginnie
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
On Thu, Feb 09, 2012 at 01:27:34PM -0700, Virginia Wray wrote:
> On 02/ 9/12 12:47 PM, Will Fiveash wrote:
> ># zlogin mit /usr/sbin/sysconfig configure -g system -c 
> >/var/tmp/mit.profile.xml
> >svcadm: No such instance "svc:/system/svc/restarter:default".
> 
> The problem is that you booted the zone and then ran the sysconfig
> command.  On first boot of the zone, the sysconfig utility is
> automatically invoked for an interactive configuration.  The system
> isn't completely on line, which I think accounts for the svcadm error.
> 
> You are, in effect, trying to run sysconfig when it is already
> running.

OK, that makes sense.  I can see now in the solaris.5 man page that I
can use either zoneadm "clone -c profile.xml" or "install -c
profile.xml" to apply the sysconfig profile data properly.

As an aside, it seems bogus to me that sysconfig requires the profile
file end in .xml.  Wouldn't it be better if it made sure the first
non-blank line in the profile file was:



?

-- 
Will Fiveash
Oracle Solaris Software Engineer
Austin, TX, USA
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
On Thu, Feb 09, 2012 at 02:32:33PM -0600, Mike Gerdts wrote:
> On Thu 09 Feb 2012 at 02:00PM, Will Fiveash wrote:
> > On Thu, Feb 09, 2012 at 02:43:41PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) 
> > Ph.D." wrote:
> > > I ASS U ME that you have see this
> > > http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html
> > 
> > That is good info, thanks.  Of course now I see another problem.  In
> > that guide above there is an example of having zoneadm clone use the
> > sysconfig created profile like so:
> > 
> > Step 3: Create webzone-2 by Cloning webzone-1
> > 
> > Next create webzone-2 using the modified configuration (by using zonecfg), 
> > and then perform the clone of webzone-1 (by using zoneadm). Remember to add 
> > the full path to the system config template. Note how quickly the clone is 
> > completed. (We can see this by prepending the time command to our zonecfg 
> > clone command.)
> > 
> > root@global:~# zonecfg -z webzone-2 -f /zones/webzone-2-profile
> > root@global:/zones# time zoneadm -z webzone-2 clone -c 
> > /zones/webzone-2-template.xml webzone-1
> > 
> > However, the only description of -c I find in the S11 zoneadm man page
> > is for list.  Can someone confirm that -c  works
> > for clone?  Also how do I use -c when creating a new zone that is not a
> > clone?
> 
> The man pages are a little hard to read due to separation between the
> generic options and the brand-specific options.  Notice in zoneadm(1M)
> that you see:
> 
>  install [brand-specific options]
> 
>   ...
> 
>  The zone's brand may  include  additional  options  that
>  govern  how  the software will be installed in the zone.
>  See brands(5) for specific brand information.
> 
> Thus begins the twisty passages, all looking the same.  brands(5) refers
> to solaris(5), solaris10(5), and other man pages.  To see the options
> available for solaris (the default) branded zones, you want to look at
> solaris(5).  There you will see:

Yes, I see that now, thanks.  I think some additional examples in the
zoneadm man page that use specific brand options would be helpful and in
the brands.5 man page additional explanation as to which of the things
in the See Also section are brand instances and also that these brand
instance man pages contain information on zoneadm subcommand arguments
that are associated with that particular brand. 

-- 
Will Fiveash
Oracle Solaris Software Engineer
Austin, TX, USA
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
On Thu, Feb 09, 2012 at 02:28:43PM -0600, Will Fiveash wrote:
> On Thu, Feb 09, 2012 at 03:20:38PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) 
> Ph.D." wrote:
> > please check
> > solaris(5)
> >The following solaris brand-specific subcommand options are
> >supported by zoneadm(1M)
> >
> > .
> > 
> > clone [-c config_profile.xml | dir]
> > 
> >-c config_profile.xml | dir
> > 
> >Provides a profile or a directory of profiles to apply after
> >installation from the repository.
> > 
> >All profiles must have an .xml extension.
> 
> Ah, bitten by indirection once again.  This is one of the reasons I
> often find Solaris man pages to be less than helpful.  Beyond that, how
> do I use a sysconfig profile when creating a new zone, not cloning?

Nevermind, I see the answer in the solaris(5) man page and in Mike's
reply to this thread.

-- 
Will Fiveash
Oracle Solaris Software Engineer
http://opensolaris.org/os/project/kerberos/
Sent using mutt, a sweet, text based e-mail app 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Virginia Wray

Hi Will --

See below.



On 02/ 9/12 12:47 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 02:33:35PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." 
wrote:

hi
not sure about your sequence of event
in general  after create
one do install with the *xml
then run zlogin

  * *For a shared-IP zone:*
#*sysconfig create-profile -o /path/sysconf.xml -g 
location,identity,naming_services,users*

*Use the created profile during zone install, clone, or attach
operations.*
#*zoneadm -z my-zone install -c /path/sysconf.xml*

did you run install?

Yes.  Let me provide more detail:

# zonecfg -z mit -f /tmp/zonecfg-file
# zoneadm -z mit install
# zoneadm -z mit boot
# cp /tmp/mit.profile.xml /zones/mit/root/var/tmp/
# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml
svcadm: No such instance "svc:/system/svc/restarter:default".


The problem is that you booted the zone and then ran the sysconfig 
command. On first
boot of the zone, the sysconfig utility is automatically invoked for an 
interactive configuration.
The system isn't completely on line, which I think accounts for the 
svcadm error.


You are, in effect, trying to run sysconfig when it is already running.


Unable to initiate unconfiguration process.

Note that as I stare at the sysconfig man page I am becoming less
certain that the example it has of:

  The following sequence of commands creates a  profile,  then
  uses it to reconfigure a system.

# sysconfig create-profile -o /tmp/myprofile.xml
# sysconfig configure -g system -c /tmp/myprofile.xml

is correct.  I say this because I've literally been using "-g system"
but when I read the section on functional groups which I guess -g is
used to specify there doesn't appear to be a "system" group.  I just
opened a bug against that man page on this issue.


Actually "system" is the grouping for the whole system. If that isn't
clear, then it needs to be fixed. Thanks for filing the bug.

ginnie
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Mike Gerdts
On Thu 09 Feb 2012 at 02:00PM, Will Fiveash wrote:
> On Thu, Feb 09, 2012 at 02:43:41PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) 
> Ph.D." wrote:
> > I ASS U ME that you have see this
> > http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html
> 
> That is good info, thanks.  Of course now I see another problem.  In
> that guide above there is an example of having zoneadm clone use the
> sysconfig created profile like so:
> 
> Step 3: Create webzone-2 by Cloning webzone-1
> 
> Next create webzone-2 using the modified configuration (by using zonecfg), 
> and then perform the clone of webzone-1 (by using zoneadm). Remember to add 
> the full path to the system config template. Note how quickly the clone is 
> completed. (We can see this by prepending the time command to our zonecfg 
> clone command.)
> 
> root@global:~# zonecfg -z webzone-2 -f /zones/webzone-2-profile
> root@global:/zones# time zoneadm -z webzone-2 clone -c 
> /zones/webzone-2-template.xml webzone-1
> 
> However, the only description of -c I find in the S11 zoneadm man page
> is for list.  Can someone confirm that -c  works
> for clone?  Also how do I use -c when creating a new zone that is not a
> clone?

The man pages are a little hard to read due to separation between the
generic options and the brand-specific options.  Notice in zoneadm(1M)
that you see:

 install [brand-specific options]

  ...

 The zone's brand may  include  additional  options  that
 govern  how  the software will be installed in the zone.
 See brands(5) for specific brand information.

Thus begins the twisty passages, all looking the same.  brands(5) refers
to solaris(5), solaris10(5), and other man pages.  To see the options
available for solaris (the default) branded zones, you want to look at
solaris(5).  There you will see:

 install [-m manifest.xml] [-c config_profile.xml | dir]
 install [-a archive | -d path | -z ZBE] [-p] [-s] [-u] [-v]
 [-c config_profile.xml | dir]

...

Also, if you do 'zoneadm help' you will see that the help messages refer
to brands(5).  If you do 'zoneadm -z  help' you will see that
the help messages refer to the right brand's man page.  e.g.

# zoneadm -z z1 help install
usage:  install [brand-specific args]
Install the configuration on to the system.
All arguments are passed to the brand installation function;
see solaris(5) for more information.

-- 
Mike Gerdts
Solaris Core OS / Zones http://blogs.oracle.com/zoneszone/
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
On Thu, Feb 09, 2012 at 03:20:38PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." 
wrote:
> please check
> solaris(5)
>The following solaris brand-specific subcommand options are
>supported by zoneadm(1M)
>
> .
> 
> clone [-c config_profile.xml | dir]
> 
>-c config_profile.xml | dir
> 
>Provides a profile or a directory of profiles to apply after
>installation from the repository.
> 
>All profiles must have an .xml extension.

Ah, bitten by indirection once again.  This is one of the reasons I
often find Solaris man pages to be less than helpful.  Beyond that, how
do I use a sysconfig profile when creating a new zone, not cloning?

-- 
Will Fiveash
Oracle Solaris Software Engineer
http://opensolaris.org/os/project/kerberos/
Sent using mutt, a sweet, text based e-mail app 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.

zoneadm

clone [-m copy] [-s zfs_snapshot] [brand-specific options] source_zone



On 2/9/2012 3:20 PM, "Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D." wrote:


please check
solaris(5)
The following solaris brand-specific subcommand options are
supported by zoneadm(1M)

.

clone [-c config_profile.xml | dir]

-c config_profile.xml | dir

Provides a profile or a directory of profiles to apply after
installation from the repository.

All profiles must have an .xml extension.



On 2/9/2012 3:00 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 02:43:41PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." 
wrote:

I ASS U ME that you have see this
http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html

That is good info, thanks.  Of course now I see another problem.  In
that guide above there is an example of having zoneadm clone use the
sysconfig created profile like so:

Step 3: Create webzone-2 by Cloning webzone-1

Next create webzone-2 using the modified configuration (by using zonecfg), and 
then perform the clone of webzone-1 (by using zoneadm). Remember to add the 
full path to the system config template. Note how quickly the clone is 
completed. (We can see this by prepending the time command to our zonecfg clone 
command.)

root@global:~# zonecfg -z webzone-2 -f /zones/webzone-2-profile
root@global:/zones# time zoneadm -z webzone-2 clone -c 
/zones/webzone-2-template.xml webzone-1

However, the only description of -c I find in the S11 zoneadm man page
is for list.  Can someone confirm that -c  works
for clone?  Also how do I use -c when creating a new zone that is not a
clone?


On 2/9/2012 2:33 PM, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." wrote:

hi
not sure about your sequence of event
in general  after create
one do install with the *xml
then run zlogin

  * *For a shared-IP zone:*
#*sysconfig create-profile -o /path/sysconf.xml -g 
location,identity,naming_services,users*

*Use the created profile during zone install, clone, or attach
operations.*
#*zoneadm -z my-zone install -c /path/sysconf.xml*

did you run install?


On 2/9/2012 1:59 PM, Will Fiveash wrote:

After I was able to configure and boot a zone I used sysconfig to
configure the new zone.  What I did was first create a system profile
.xml file using sysconfig create-profile -o /tmp/zone-profile.xml I then
used that as a template in my createzone script where I write that to a
temporary file, modifying some values like the node name and IP address
for that particular zone then I copy that into the zone from the global
zone and once the zone (called mit in this example) is booted I run:

# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml

What I see is:
svcadm: No such instance "svc:/system/svc/restarter:default".

Unable to initiate unconfiguration process.
==

Anyone know what is going on there?

Note that after this I am able to zlogin into the zone and it appears to
be configured appropriately and:

# svcs svc:/system/svc/restarter:default
STATE  STIMEFMRI
online 11:51:16 svc:/system/svc/restarter:default


--
Hung-Sheng Tsao Ph D.
Founder&   Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

--
Hung-Sheng Tsao Ph D.
Founder&   Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

begin:vcard
fn:Hung-Sheng Tsao
n:Tsao;Hung-Sheng
org:HopBit GridComputing LLC
adr:;;;Denville;NJ;07834;USA
email;internet:laot...@gmail.com
title:Founder&  Principal
tel;cell:9734950840
note;quoted-printable:Worked at Sun/oralce for almost 17 years, retired but 
abailable for Consu=
lting=0D=0A=
Solaris, zone, ldom, ZFS=0D=0A=
Solaris Cluster=0D=0A=
Solaris Migration=0D=0A=
GridEngine, Rocksclusters, HPC=0D=0A=
Exadata, exalogic and SPARC suportcluster=0D=0A=

url:http://laotsao.blogspot.com;http://laotsao.wordpress.com;http://blogs.oracle.com/hstsao/
version:2.1
end:vcard



--
Hung-Sheng Tsao Ph D.
Founder&  Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/


--
Hung-Sheng Tsao Ph D.
Founder&  Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

<>___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.

please check
solaris(5)
   The following solaris brand-specific subcommand options are
   supported by zoneadm(1M)
   
.

clone [-c config_profile.xml | dir]

   -c config_profile.xml | dir

   Provides a profile or a directory of profiles to apply after
   installation from the repository.

   All profiles must have an .xml extension.



On 2/9/2012 3:00 PM, Will Fiveash wrote:

On Thu, Feb 09, 2012 at 02:43:41PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." 
wrote:

I ASS U ME that you have see this
http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html

That is good info, thanks.  Of course now I see another problem.  In
that guide above there is an example of having zoneadm clone use the
sysconfig created profile like so:

Step 3: Create webzone-2 by Cloning webzone-1

Next create webzone-2 using the modified configuration (by using zonecfg), and 
then perform the clone of webzone-1 (by using zoneadm). Remember to add the 
full path to the system config template. Note how quickly the clone is 
completed. (We can see this by prepending the time command to our zonecfg clone 
command.)

root@global:~# zonecfg -z webzone-2 -f /zones/webzone-2-profile
root@global:/zones# time zoneadm -z webzone-2 clone -c 
/zones/webzone-2-template.xml webzone-1

However, the only description of -c I find in the S11 zoneadm man page
is for list.  Can someone confirm that -c  works
for clone?  Also how do I use -c when creating a new zone that is not a
clone?


On 2/9/2012 2:33 PM, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." wrote:

hi
not sure about your sequence of event
in general  after create
one do install with the *xml
then run zlogin

  * *For a shared-IP zone:*
#*sysconfig create-profile -o /path/sysconf.xml -g 
location,identity,naming_services,users*

*Use the created profile during zone install, clone, or attach
operations.*
#*zoneadm -z my-zone install -c /path/sysconf.xml*

did you run install?


On 2/9/2012 1:59 PM, Will Fiveash wrote:

After I was able to configure and boot a zone I used sysconfig to
configure the new zone.  What I did was first create a system profile
.xml file using sysconfig create-profile -o /tmp/zone-profile.xml I then
used that as a template in my createzone script where I write that to a
temporary file, modifying some values like the node name and IP address
for that particular zone then I copy that into the zone from the global
zone and once the zone (called mit in this example) is booted I run:

# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml

What I see is:
svcadm: No such instance "svc:/system/svc/restarter:default".

Unable to initiate unconfiguration process.
==

Anyone know what is going on there?

Note that after this I am able to zlogin into the zone and it appears to
be configured appropriately and:

# svcs svc:/system/svc/restarter:default
STATE  STIMEFMRI
online 11:51:16 svc:/system/svc/restarter:default


--
Hung-Sheng Tsao Ph D.
Founder&   Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

--
Hung-Sheng Tsao Ph D.
Founder&   Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

begin:vcard
fn:Hung-Sheng Tsao
n:Tsao;Hung-Sheng
org:HopBit GridComputing LLC
adr:;;;Denville;NJ;07834;USA
email;internet:laot...@gmail.com
title:Founder&  Principal
tel;cell:9734950840
note;quoted-printable:Worked at Sun/oralce for almost 17 years, retired but 
abailable for Consu=
lting=0D=0A=
Solaris, zone, ldom, ZFS=0D=0A=
Solaris Cluster=0D=0A=
Solaris Migration=0D=0A=
GridEngine, Rocksclusters, HPC=0D=0A=
Exadata, exalogic and SPARC suportcluster=0D=0A=

url:http://laotsao.blogspot.com; http://laotsao.wordpress.com; 
http://blogs.oracle.com/hstsao/
version:2.1
end:vcard





--
Hung-Sheng Tsao Ph D.
Founder&  Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

<>___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
On Thu, Feb 09, 2012 at 02:43:41PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." 
wrote:
> I ASS U ME that you have see this
> http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html

That is good info, thanks.  Of course now I see another problem.  In
that guide above there is an example of having zoneadm clone use the
sysconfig created profile like so:

Step 3: Create webzone-2 by Cloning webzone-1

Next create webzone-2 using the modified configuration (by using zonecfg), and 
then perform the clone of webzone-1 (by using zoneadm). Remember to add the 
full path to the system config template. Note how quickly the clone is 
completed. (We can see this by prepending the time command to our zonecfg clone 
command.)

root@global:~# zonecfg -z webzone-2 -f /zones/webzone-2-profile
root@global:/zones# time zoneadm -z webzone-2 clone -c 
/zones/webzone-2-template.xml webzone-1

However, the only description of -c I find in the S11 zoneadm man page
is for list.  Can someone confirm that -c  works
for clone?  Also how do I use -c when creating a new zone that is not a
clone?

> On 2/9/2012 2:33 PM, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." wrote:
> >hi
> >not sure about your sequence of event
> >in general  after create
> >one do install with the *xml
> >then run zlogin
> >>
> >>  * *For a shared-IP zone:*
> >>#*sysconfig create-profile -o /path/sysconf.xml -g 
> >> location,identity,naming_services,users*
> >>
> >>*Use the created profile during zone install, clone, or attach
> >>operations.*
> >>#*zoneadm -z my-zone install -c /path/sysconf.xml*
> >did you run install?
> >
> >
> >On 2/9/2012 1:59 PM, Will Fiveash wrote:
> >>After I was able to configure and boot a zone I used sysconfig to
> >>configure the new zone.  What I did was first create a system profile
> >>.xml file using sysconfig create-profile -o /tmp/zone-profile.xml I then
> >>used that as a template in my createzone script where I write that to a
> >>temporary file, modifying some values like the node name and IP address
> >>for that particular zone then I copy that into the zone from the global
> >>zone and once the zone (called mit in this example) is booted I run:
> >>
> >># zlogin mit /usr/sbin/sysconfig configure -g system -c 
> >>/var/tmp/mit.profile.xml
> >>
> >>What I see is:
> >>svcadm: No such instance "svc:/system/svc/restarter:default".
> >>
> >>Unable to initiate unconfiguration process.
> >>==
> >>
> >>Anyone know what is going on there?
> >>
> >>Note that after this I am able to zlogin into the zone and it appears to
> >>be configured appropriately and:
> >>
> >># svcs svc:/system/svc/restarter:default
> >>STATE  STIMEFMRI
> >>online 11:51:16 svc:/system/svc/restarter:default
> >>
> >
> >-- 
> >Hung-Sheng Tsao Ph D.
> >Founder&  Principal
> >HopBit GridComputing LLC
> >cell: 9734950840
> >
> >http://laotsao.blogspot.com/
> >http://laotsao.wordpress.com/
> >http://blogs.oracle.com/hstsao/
> 
> -- 
> Hung-Sheng Tsao Ph D.
> Founder&  Principal
> HopBit GridComputing LLC
> cell: 9734950840
> 
> http://laotsao.blogspot.com/
> http://laotsao.wordpress.com/
> http://blogs.oracle.com/hstsao/
> 

> begin:vcard
> fn:Hung-Sheng Tsao
> n:Tsao;Hung-Sheng
> org:HopBit GridComputing LLC
> adr:;;;Denville;NJ;07834;USA
> email;internet:laot...@gmail.com
> title:Founder & Principal
> tel;cell:9734950840
> note;quoted-printable:Worked at Sun/oralce for almost 17 years, retired but 
> abailable for Consu=
>   lting=0D=0A=
>   Solaris, zone, ldom, ZFS=0D=0A=
>   Solaris Cluster=0D=0A=
>   Solaris Migration=0D=0A=
>   GridEngine, Rocksclusters, HPC=0D=0A=
>   Exadata, exalogic and SPARC suportcluster=0D=0A=
>   
> url:http://laotsao.blogspot.com; http://laotsao.wordpress.com; 
> http://blogs.oracle.com/hstsao/
> version:2.1
> end:vcard
> 


-- 
Will Fiveash
Oracle Solaris Software Engineer
http://opensolaris.org/os/project/kerberos/
Sent using mutt, a sweet, text based e-mail app 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
On Thu, Feb 09, 2012 at 02:33:35PM -0500, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." 
wrote:
> hi
> not sure about your sequence of event
> in general  after create
> one do install with the *xml
> then run zlogin
> >
> >  * *For a shared-IP zone:*
> >#*sysconfig create-profile -o /path/sysconf.xml -g 
> > location,identity,naming_services,users*
> >
> >*Use the created profile during zone install, clone, or attach
> >operations.*
> >#*zoneadm -z my-zone install -c /path/sysconf.xml*
> did you run install?

Yes.  Let me provide more detail:

# zonecfg -z mit -f /tmp/zonecfg-file
# zoneadm -z mit install
# zoneadm -z mit boot
# cp /tmp/mit.profile.xml /zones/mit/root/var/tmp/
# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml
svcadm: No such instance "svc:/system/svc/restarter:default".

Unable to initiate unconfiguration process.

Note that as I stare at the sysconfig man page I am becoming less
certain that the example it has of:

 The following sequence of commands creates a  profile,  then
 uses it to reconfigure a system.

   # sysconfig create-profile -o /tmp/myprofile.xml
   # sysconfig configure -g system -c /tmp/myprofile.xml

is correct.  I say this because I've literally been using "-g system"
but when I read the section on functional groups which I guess -g is
used to specify there doesn't appear to be a "system" group.  I just
opened a bug against that man page on this issue.

-- 
Will Fiveash
Oracle Solaris Software Engineer
http://opensolaris.org/os/project/kerberos/
Sent using mutt, a sweet, text based e-mail app 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.

I ASS U ME that you have see this
http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html


On 2/9/2012 2:33 PM, "Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D." wrote:

hi
not sure about your sequence of event
in general  after create
one do install with the *xml
then run zlogin


  * *For a shared-IP zone:*
#*sysconfig create-profile -o /path/sysconf.xml -g 
location,identity,naming_services,users*

*Use the created profile during zone install, clone, or attach 
operations.*

#*zoneadm -z my-zone install -c /path/sysconf.xml*

did you run install?


On 2/9/2012 1:59 PM, Will Fiveash wrote:

After I was able to configure and boot a zone I used sysconfig to
configure the new zone.  What I did was first create a system profile
.xml file using sysconfig create-profile -o /tmp/zone-profile.xml I then
used that as a template in my createzone script where I write that to a
temporary file, modifying some values like the node name and IP address
for that particular zone then I copy that into the zone from the global
zone and once the zone (called mit in this example) is booted I run:

# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml

What I see is:
svcadm: No such instance "svc:/system/svc/restarter:default".

Unable to initiate unconfiguration process.
==

Anyone know what is going on there?

Note that after this I am able to zlogin into the zone and it appears to
be configured appropriately and:

# svcs svc:/system/svc/restarter:default
STATE  STIMEFMRI
online 11:51:16 svc:/system/svc/restarter:default



--
Hung-Sheng Tsao Ph D.
Founder&  Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/


--
Hung-Sheng Tsao Ph D.
Founder&  Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

<>___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.

hi
not sure about your sequence of event
in general  after create
one do install with the *xml
then run zlogin


  * *For a shared-IP zone:*
#*sysconfig create-profile -o /path/sysconf.xml -g 
location,identity,naming_services,users*

*Use the created profile during zone install, clone, or attach 
operations.*

#*zoneadm -z my-zone install -c /path/sysconf.xml*

did you run install?


On 2/9/2012 1:59 PM, Will Fiveash wrote:

After I was able to configure and boot a zone I used sysconfig to
configure the new zone.  What I did was first create a system profile
.xml file using sysconfig create-profile -o /tmp/zone-profile.xml I then
used that as a template in my createzone script where I write that to a
temporary file, modifying some values like the node name and IP address
for that particular zone then I copy that into the zone from the global
zone and once the zone (called mit in this example) is booted I run:

# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml

What I see is:
svcadm: No such instance "svc:/system/svc/restarter:default".

Unable to initiate unconfiguration process.
==

Anyone know what is going on there?

Note that after this I am able to zlogin into the zone and it appears to
be configured appropriately and:

# svcs svc:/system/svc/restarter:default
STATE  STIMEFMRI
online 11:51:16 svc:/system/svc/restarter:default



--
Hung-Sheng Tsao Ph D.
Founder&  Principal
HopBit GridComputing LLC
cell: 9734950840

http://laotsao.blogspot.com/
http://laotsao.wordpress.com/
http://blogs.oracle.com/hstsao/

<>___
zones-discuss mailing list
zones-discuss@opensolaris.org

[zones-discuss] issue with zones and sysconfig

2012-02-09 Thread Will Fiveash
After I was able to configure and boot a zone I used sysconfig to
configure the new zone.  What I did was first create a system profile
.xml file using sysconfig create-profile -o /tmp/zone-profile.xml I then
used that as a template in my createzone script where I write that to a
temporary file, modifying some values like the node name and IP address
for that particular zone then I copy that into the zone from the global
zone and once the zone (called mit in this example) is booted I run:

# zlogin mit /usr/sbin/sysconfig configure -g system -c /var/tmp/mit.profile.xml

What I see is:
svcadm: No such instance "svc:/system/svc/restarter:default".

Unable to initiate unconfiguration process.
==

Anyone know what is going on there?

Note that after this I am able to zlogin into the zone and it appears to
be configured appropriately and:

# svcs svc:/system/svc/restarter:default  
STATE  STIMEFMRI
online 11:51:16 svc:/system/svc/restarter:default

-- 
Will Fiveash
Oracle Solaris Software Engineer
http://opensolaris.org/os/project/kerberos/
Sent using mutt, a sweet, text based e-mail app 
___
zones-discuss mailing list
zones-discuss@opensolaris.org