I have a basic AutoDeploy setup working for version 5.5
I'm now trying to move to a seamless setup for when a host has not previously been added to vCenter and provide an answerfile
I'm using Script to pre-answer static IP addresses for Auto Deploy hosts (stateless ESXi) as a base for my script.
What I have so far via Powercli
add disconnected host to vCenter
create and associate answer file
reboot host
error - host been added to VC, no image profile associated. use Apply-esxiimageprofile or use test/repair.
can't use test/repair, I get error Test-DeployRuleSetCompliance 'NoneType' object has no attribute 'systemInfo' for the disconnected host
so I use apply-esxiimageprofile instead imageProfile = Get-EsxImageProfile -Name "MY_ESXi-5.5u3a-3116895-HP-550.9.4.26-Nov2015"
Apply-EsxImageProfile -ImageProfile $imageProfile -Entities $script:targetHost -Verbose
Host proceeds to install image, however, host profile not applied. (not in maintenance mode)
If I check Get-DeployRuleSet -Active, I see my -allhosts rule
ItemList : {MY_ESXi-5.5u3a-3116895-HP-550.9.4.26-Nov2015, AutoDeploy, AutoDeployTrial}
I assume it is possible to achieve what I'm trying - create an answer file for a host that isn't part of vCenter, boot using AutoDeploy for stateful install and have a hostprofile apply? Can anyone shed any light on where I'm going wrong? Before I started down the road of precreating the answer file, the host would correctly build and stay in maintenance mode (correctly so as the answer file would be incomplete as its never been in vCenter before).
Appreciate the help