Michael Barrett wrote:
> From what I can tell it does set it up, but is serves out which ever 
> image (macro) I checked in first.  For example.  When I setup the 
> SPARC first, it installs my SPARC boxes fine.  But when I then add in 
> the x86 service, it still serves out the SPARC image to my x86 boxes.
>
> If I then delete the environment and check in the x86 image first, my 
> x86 boxes install fine.  But then when I check in my SPARC service, it 
> serves out my x86 image to my SPARC boxes.

The macros that installadm creates in the DHCP server doesn't
distinguish between architectures, so when it gets a request from
a client system for an IP address, it just randomly gives it one from
either pool of addresses.

There is a way to add additional vendor-specific options to your
macros to signify architecture preference, but we didn't want AI
to rely on these definitions being defined in the DHCP server, and
hence AI doesn't use them.

If you've got a heterogeneous environment, you have to use the
"installadm create-client ...." subcommand to create client specific
macros for each of your clients.

>
> Also, a delete-service doesn't appear to completely clear out the dhcp 
> configuration.  I've been deleting it's stuff via dhcpconfig -U and 
> dhcpmgr.

This was intentional.  Feel free to file an enhancement request
at d.o.o for delete-service to do something smarter, or provide
options for it do something smarter.

Alternatively, you use dhtadm(1M) to delete just specific macros:

    # dhtadm -D -m <macro-name>

Currently, the macro name chosen for an AI service by installadm is:

   dhcp_macro_<svcname>


thanks,
-ethan

>
> Thanks,
> Mike
>
>
> Ethan Quach wrote:
>>
>>
>> Michael Barrett wrote:
>>> I want my x86 boxes to boot up in the ip range of 10.6.49.70 --> 
>>> 10.6.49.79 with OpenSolaris.  I want my SPARC boxes to boot up in 
>>> the ip range of 10.6.49.80 --> 10.6.49.89 with OpenSolaris.  This 
>>> command works great and my x86 boxes do indeed get installed via PXE 
>>> boot:
>>>
>>> # installadm create-service -n 0906-111b-x86 -i 10.6.49.70 -c 10 -s 
>>> /export/iso_images/osol-0906-111b-ai-x86.iso 
>>> /export/aiserver/osol-0906-111b-x86
>>>
>>> But this command gives me a DHCP error:
>>>
>>> # installadm create-service -n 0906-111b-sparc -i 10.6.49.80 -c 10 
>>> -s /export/iso_images/osol-0906-111b-ai-sparc.iso 
>>> /export/aiserver/osol-0906-111b-sparc
>>>
>>> Setting up the target image at /export/aiserver/osol-0906-111b-sparc 
>>> ...
>>> Registering the service 0906-111b-sparc._OSInstall._tcp.local
>>> dhcpconfig: Error - creating network macro. 10.6.49.0 already exists.
>>> Service discovery fallback mechanism set up
>>> Creating SPARC configuration file
>>>
>>> That seems right since the 10.6.49.0 macro would have already been 
>>> created during the x86 command.  So what's the correct way to do 
>>> what I want?
>>>   
>>
>> That might be an informational/ignorable error that we need to do a 
>> better
>> job of masking. Did the new address range actually get created in the
>> DHCP server or not?
>>
>>
>> -ethan
>>
>>> Thanks.
>>>   

Reply via email to