Hi,
I'm trying to insert second image profile to Auto Deploy and assing it to only 1 host, that I can test it before it goes to production. Image profile is configured correctly I think, because after export it contains really new version of VIBs.
So my steps:
1. Export Image profile from image builder
2. add-esxsoftwaredepot
3. new-deployrule
4. add-deployrule -at 0
Outputs:
Name: PowerCLI D:\> Get-DeployRuleSet
Name : TiborImage
PatternList : {mac=00:25:b5:00:00:03}
ItemList : {TiborImage, LAB-ESX-STG1-01-01, Tenant001}
Name : BaseImage
PatternList : {oemstring=$SPT:LAB-ESX-STG1-01-01}
ItemList : {ESXi-5.1.0-20131003001-no-tools-n1k-v152-VAAI, LAB-ESX-STG1-01-01, Tenant001}
So as you can see MAC address should match first deploy rule, but it match second. I though that deploy rule set is - first match, first win. And what is totally strange is that host boots even I delete all Deploy Rule Sets.
Can somebody please help me?
Try running this
Get-datacenter | Get-VMHost | Test-DeployRuleSetCompliance | Repair-DeployRuleSetCompliance
Please mark helpful & correct answers.
Thanks
Marc
Hi,
thanks, I tried but just test-complience, showed me just hostname ist "ItemList" as {} so don't know that it means because documentation is not clear. It is not matching my rules?
But I found, that "Apply-ESXImageProfile" was issued on all hosts. How can I cancel it? I tired remove host from cluster and add it again. but, after I did it, it is not matching my deploy Rules above... what I have bad there?
I finally found a problem.
I'm adding host in disconnected state through PowerCLI with answer file, before host is really booted. Then I applying Apply-ESXImageProfile to host which is disconnected and never booted up. In that case deploy rules are ignored till host is really booted up and first time registered to vCenter server. After host is booted for first time, I can use DeployRules and Compliance test with repair to select correct image.