VMware vSphere

 View Only

 Kickstart issue esxi 8.0.x (secure boot)

Atomitonz's profile image
Atomitonz posted Jan 27, 2025 06:49 AM

I'm trying to setup an automation for host deployment and I have issues getting the settings in my ks.cfg to apply to my esxi setup.
Host comes with Secure boot on, and I suspect this might be an issue for my ks.cfg.

I understand I can not have a %firstboot option and only use 

%post --interpreter=busybox

I so far I fail to get these commands to do there thing.


esxcli network ip dns search add -d "<domain>"
localcli system module parameters set -m tcpip4 -p ipv6=0
vim-cmd hostsvc/enable_ssh
vim-cmd hostsvc/start_ssh



Any suggestion on how to get these 4 commands to work would be appreciated! 




Jan Koehler's profile image
Jan Koehler

Hi, 

I had the same issue and needed a lot more paremeters to be set on the initial installation. The only way to use firstboot is to disable secure boot and enable ist again after the setup.

We did not want to do that because to disable and enable is not what we wanted.

So you can run a Powercli script after installing the host, or automate the whole thing with, for example, Ansible or Aria Automation