<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chris Laird on Medium]]></title>
        <description><![CDATA[Stories by Chris Laird on Medium]]></description>
        <link>https://medium.com/@gus.laird?source=rss-abe52d4df4b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YL4DR1dQ1O_KVg9P.</url>
            <title>Stories by Chris Laird on Medium</title>
            <link>https://medium.com/@gus.laird?source=rss-abe52d4df4b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:24:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gus.laird/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating a VCF 9.x HTTPS Offline Depot with Authentication]]></title>
            <link>https://medium.com/@gus.laird/creating-a-vcf-9-x-https-offline-depot-with-authentication-7f5b8acb15f9?source=rss-abe52d4df4b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f5b8acb15f9</guid>
            <dc:creator><![CDATA[Chris Laird]]></dc:creator>
            <pubDate>Wed, 13 May 2026 04:15:13 GMT</pubDate>
            <atom:updated>2026-05-13T04:15:13.177Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYJfqlJ1vBgvRNht3-UR5A.png" /></figure><h3>Setting Up an HTTPS Offline Depot for VMware Cloud Foundation on CentOS</h3><p>If you’re deploying VMware Cloud Foundation (VCF) 9.x in an environment without internet access — or you just want faster, more reliable bundle downloads — you’ll need a local HTTPS depot server. VCF requires HTTPS with authentication for depot connections, and it won’t accept plain HTTP by default.</p><p>This guide walks through standing up a minimal HTTPS file server on CentOS using Caddy. Caddy is a single-binary web server that handles TLS and basic auth with about six lines of config — no messing with Apache virtual hosts or nginx config blocks.</p><h3>Prerequisites</h3><p>A CentOS / RHEL-family server (Stream 9/10, Rocky, Alma) with root access and network reachability from your VCF Installer appliance.</p><p>Minimal CentOS installs are missing several packages you’ll need. Install them all upfront to avoid errors later:</p><h3>Step 1 — Install Caddy</h3><p>Caddy is available via the COPR repository:</p><pre>sudo dnf install -y &#39;dnf-command(copr)&#39;<br>sudo dnf copr enable -y @caddy/caddy<br>sudo dnf install -y caddy</pre><h3>Step 2 — Generate a Self-Signed TLS Certificate</h3><p>VCF requires HTTPS. For an internal lab or air-gapped environment, a self-signed certificate works fine — you’ll import it into the VCF Installer’s trust store later.</p><pre>sudo mkdir -p /etc/caddy/certs<br>sudo openssl req -x509 -newkey rsa:4096 -nodes \<br>  -keyout /etc/caddy/certs/depot.key \<br>  -out    /etc/caddy/certs/depot.crt \<br>  -days 825 \<br>  -subj &quot;/CN=repo.yourdomain.local&quot; \<br>  -addext &quot;subjectAltName=DNS:repo.yourdomain.local,IP:192.168.x.x&quot;<br>sudo chown -R caddy:caddy /etc/caddy/certs<br>sudo chmod 600 /etc/caddy/certs/depot.key<br>sudo chmod 644 /etc/caddy/certs/depot.crt</pre><blockquote><strong><em>⚠️ UPDATE REQUIRED:</em></strong><em> Replace </em><em>repo.yourdomain.local with your server&#39;s actual hostname and </em><em>192.168.x.x with its IP address. Add additional DNS names or IPs to the SAN field if VCF will connect using a different name.</em></blockquote><p>Create a DNS A record pointing your chosen hostname to this server’s IP.</p><h3>Step 3 — Generate a Password Hash for Basic Auth</h3><p>VCF authenticates to the depot with a username and password. Caddy stores password hashes (not plaintext) in its config. Generate one now:</p><pre>caddy &quot;hash-password&quot;</pre><blockquote><strong><em>UPDATE REQUIRED: </em></strong>Type your desired password and press Enter. Caddy will output a bcrypt hash that looks something like:</blockquote><pre>$2a$14$Gx3aK7L8mN2pQ4rS5tU6Ve...</pre><blockquote><strong><em>⚠️ COPY THIS HASH</em></strong><em> — you’ll paste it into the Caddyfile in the next step. Make sure to copy the entire string with no line breaks.</em></blockquote><h3>Step 4 — Create the Caddyfile</h3><p>Replace the default Caddyfile with your depot configuration:</p><pre>sudo tee /etc/caddy/Caddyfile &gt; /dev/null &lt;&lt; &#39;EOF&#39;<br>:443 {<br>    tls /etc/caddy/certs/depot.crt /etc/caddy/certs/depot.key<br><br>    basic_auth {<br>        depot &quot;YOUR_HASH_HERE&quot;<br>    }<br><br>    root * /var/www/depot<br>    file_server browse<br>}<br>EOF</pre><blockquote><strong><em>⚠️ MANUAL EDIT REQUIRED:</em></strong><em> Open the Caddyfile and replace </em><em>&quot;YOUR_HASH_HERE&quot; with the bcrypt hash you generated in Step 3:</em></blockquote><pre>sudo vi /etc/caddy/Caddyfile</pre><blockquote><em>The </em><strong><em>depot </em></strong><em>before the hash is the username. Change it if you prefer a different username — just remember to use the same one in the VCF Installer.</em></blockquote><p>Validate and format the config:</p><pre>sudo caddy fmt --overwrite /etc/caddy/Caddyfile<br>sudo caddy validate --config /etc/caddy/Caddyfile</pre><p>If validate reports errors, double-check the hash is on a single line with no trailing whitespace.</p><h3>Step 5 — Prepare the Depot Directory and SELinux</h3><p>Create the directory where your VCF bundles will live:</p><pre>sudo mkdir -p /var/www/depot</pre><p>If SELinux is enforcing (check with getenforce), set the correct file context so Caddy can serve the content:</p><pre>sudo semanage fcontext -a -t httpd_sys_content_t &quot;/var/www/depot(/.*)?&quot;<br>sudo restorecon -Rv /var/www/depot</pre><p>Set ownership:</p><pre>sudo chown -R caddy:caddy /var/www/depot</pre><blockquote><strong><em>Note:</em></strong><em> If SELinux is </em><em>Permissive or </em><em>Disabled, skip the </em><em>semanage/</em><em>restorecon commands and just do the </em><em>chown.</em></blockquote><h3>Step 6 — Open the Firewall</h3><pre>sudo firewall-cmd --permanent --add-service=https<br>sudo firewall-cmd --reload</pre><p>Verify:</p><pre>sudo firewall-cmd --list-services</pre><p>You should see https in the output.</p><h3>Step 7 — Upload Your VCF Bundles</h3><blockquote><strong><em>⚠️ ACTION REQUIRED:</em></strong><em> Upload your VCF bundle files into </em><em>/var/www/depot/, preserving the directory structure VCF expects. (e.g. /PROD/….)</em></blockquote><p>After uploading, fix ownership and SELinux context on the new files:</p><pre>sudo chown -R caddy:caddy /var/www/depot<br>sudo restorecon -Rv /var/www/depot   # only if SELinux is enforcing</pre><h3>Step 8 — Start Caddy</h3><pre>sudo systemctl enable --now caddy<br>sudo systemctl status caddy</pre><p>If it fails, check the logs:</p><pre>sudo journalctl -u caddy -n 30 --no-pager</pre><h3>Step 9 — Verify Access</h3><p>From the server itself:</p><pre>curl -k -u depot:yourpassword https://repo.yourdomain.local/</pre><p>From another machine, open a browser and navigate to https://repo.yourdomain.local/. You&#39;ll get a certificate warning (expected with self-signed) — proceed through it. You should see a directory listing of your depot files after entering the credentials.</p><h3>Step 10 — Trust the Certificate on VCF Installer</h3><p>The VCF Installer runs Java under the hood and won’t accept an untrusted self-signed certificate. You need to import your depot cert into VCF Installer’s Java truststore.</p><p>SSH into the VCF Installer appliance and run:</p><pre># Copy the cert from your depot server<br>scp root@repo.[yourdomain.local]:/etc/caddy/certs/depot.crt /tmp/depot.crt</pre><pre># Import into the Java truststore<br>keytool -importcert -trustcacerts -alias depot-repo \<br>  -file /tmp/depot.crt \<br>  -keystore /etc/ssl/java/cacerts \<br>  -storepass changeit -noprompt</pre><blockquote><strong><em>Note:</em></strong><em> If the keystore path differs on your version, find it with:</em></blockquote><pre>find / -name cacerts -type f 2&gt;/dev/null</pre><blockquote><em>If multiple </em><em>cacerts files exist (e.g. under different JRE paths), import into all of them.</em></blockquote><p>Reboot the VCF Installer appliance to pick up the new trust:</p><pre>reboot</pre><h3>Step 11 — Configure VCF Installer</h3><p>In the VCF Installer UI, configure the offline depot:</p><ul><li><strong>Depot URL:</strong> <a href="https://repo.yourdomain.local/">https://repo.</a><a href="https://repo.yourdomain.local/"><strong>[yourdomain.local</strong></a><strong>]</strong></li><li><strong>Username:</strong> depot (or whatever you set in the Caddyfile)</li><li><strong>Password:</strong> the cleartext password you used when generating the hash</li></ul><p>The depot validation should now succeed.</p><h3>Summary</h3><p>Caddy makes this about as painless as it gets — a single binary, a six-line config file, and you have an authenticated HTTPS file server ready for VCF offline deployments. The only real gotcha is trusting the self-signed certificate on the VCF Installer side, which is a one-time keytool import.</p><h3>Disclaimer</h3><p>This guide is provided for informational purposes only and is intended for use in a lab or controlled environment. The configuration described uses self-signed certificates and basic authentication, which may not meet your organisation&#39;s security requirements. You are solely responsible for evaluating and securing your own environment. I take no responsibility for any security vulnerabilities, data loss, or other issues arising from the use of this guide. Always consult your organisation&#39;s security policies and a qualified professional before deploying services in production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f5b8acb15f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting Aria Ops: Why your chargeback rate factors aren’t working]]></title>
            <link>https://medium.com/@gus.laird/troubleshooting-aria-ops-why-your-chargeback-rate-factors-arent-working-e88251f9a478?source=rss-abe52d4df4b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88251f9a478</guid>
            <category><![CDATA[rate-factor-tags]]></category>
            <category><![CDATA[aria-operations]]></category>
            <category><![CDATA[chargeback]]></category>
            <category><![CDATA[vcf-operations]]></category>
            <dc:creator><![CDATA[Chris Laird]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 01:38:50 GMT</pubDate>
            <atom:updated>2026-01-21T01:38:50.315Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVBBIKU5JFUIgZ1axfX97w.png" /></figure><p>If you’ve been setting up a chargeback model in <strong>VMware Aria Operations 8.18.x</strong> and noticed that your vSphere tags aren’t actually changing the price of your VMs, you aren’t alone. You might have a “Gold” tier tag that is supposed to double the CPU chargeback rate, yet the cost remains stubbornly flat.</p><p>After some deep diving and a chat with Broadcom Support, we identified a specific bug in the <strong>Pricing Engine</strong> and, more importantly, a way to fix it.</p><h3>The Problem: The “Lost in Translation” Bug</h3><p>In Aria Operations 8.18.x, there is a technical “missing link” in the code. When you assign a <strong>Rate Factor</strong> to a tag (for example, telling the system that a “Production” tag should increase costs by 1.5x), the Pricing Engine tries to look up that rule.</p><p>However, due to a missing string mapping, the engine can’t connect the “Charge Type” to the “Rate Factor.” Essentially, the system sees your tag but doesn’t know which resource (CPU, Memory, etc.) to apply the multiplier to.</p><h4>How to verify if you’re affected</h4><p>If you are comfortable with APIs, you can check your system’s “Effective Policies” via the Swagger UI (https://&lt;AriaOpsFQDN&gt;/suite-api/doc/swagger-ui.html).</p><ul><li>If you query /suite-api/internal/policies/effective/query and the results come back <strong>empty</strong> despite having tags configured, you have hit this specific bug.</li></ul><h3>The Cause: A Tiny String Gap</h3><p>Engineering has confirmed this is a core bug in the 8.18.x release cycle. The platform is looking for specific internal keys to apply the rates, but those keys are missing in the default configuration. Because the mapping is broken, the Pricing Engine simply ignores the tags and reverts to the base rate.</p><h3>The Solution: A Manual Policy “Patch”</h3><p>Since this is a bug within the UI’s communication with the engine, the fix involves a bit of manual XML editing. Here is the step-by-step workaround to get your chargeback model back on track:</p><h4>Step 1: Export the Policy</h4><ol><li>Navigate to <strong>Environment &gt; Policies</strong> in Aria Operations.</li><li>Identify the active policy used for your chargeback model.</li><li>Select the policy and choose <strong>Export</strong>. This will download an .xml file to your computer.</li></ol><h4>Step 2: Edit the XML</h4><p>Open the XML file in a text editor. Search for the key &lt;VcPricingTags&gt; and look for the child object &lt;vmTagRateFactors&gt;. You will need to replace the incorrect &quot;Key&quot; strings with the &quot;Replacement Strings&quot; listed in the example below:</p><p>cpuCharge → vcpu<br>memoryCharge → memory<br>storageCharge → storage<br>allcharges → *</p><h4>Step 3: Re-Import the Policy</h4><ol><li>Go back to the <strong>Policies</strong> menu.</li><li>Select <strong>Import</strong> and upload your modified XML file.</li><li>Ensure the new policy is applied to the correct custom groups or objects.</li></ol><h4>Step 4: Clear the Cache</h4><p>The Pricing Engine won’t see these changes immediately because they are cached. You must restart the analytics service to force a refresh. Run the following command via CLI: systemctl restart analytics.service</p><h3>The Result</h3><p>By manually editing the XML, you are “force-feeding” the correct mapping to the Pricing Engine, bypassing the broken UI logic. Once re-imported, the API queries should no longer return empty results, and your CPU/Memory rates should finally reflect those vSphere tag multipliers once the calculation is performed next time, usually by the next day.</p><h3>⚠️ A Final Warning</h3><p>Because this is a manual XML workaround, <strong>any subsequent change made to this policy through the Aria Operations UI will revert your changes.</strong> If you edit the policy in the UI, you will have to repeat the XML export/edit process.</p><p><strong>Keep an eye out:</strong> Broadcom is aware of this, so a permanent fix will likely be included in a future Hotfix or the next version update. Until then, keep your XML editor handy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88251f9a478" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Universal ESXi Installation Server: Using rEFInd for Multi-Host Kickstart Deployments]]></title>
            <link>https://medium.com/@gus.laird/building-a-universal-esxi-installation-server-using-refind-for-multi-host-kickstart-deployments-43214aabc9cf?source=rss-abe52d4df4b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/43214aabc9cf</guid>
            <dc:creator><![CDATA[Chris Laird]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 21:35:07 GMT</pubDate>
            <atom:updated>2026-02-08T21:29:32.926Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0hM3zEJtwtdQOUtbGNRcg.png" /></figure><p><em>Streamline your VMware infrastructure deployment with a single boot device that can host multiple ESXi configurations.</em></p><p>If you’re managing multiple ESXi hosts in your VMware environment, especially in a lab, you’ve probably experienced the pain of manually configuring each server individually, if and when you want to rebuild. Whether you’re deploying ESX 9 or maintaining compatibility with earlier versions, a well-configured kickstart script with rEFInd can transform your deployment process from hours of manual work into a few pre-configured menu selections.</p><p>While deploying my VCF lab, I found that going through the ESX installation wizard was cumbersome, so I sought an easier way. I resorted to trawling the internet for some solutions and found, not surprisingly, that William Lam (<a href="http://williamlam.com/">williamlam.com</a>) had several articles on the processes I was looking for. I combined multiple of these articles into a single build process, and documented it below for your reference.</p><p>In this guide, I’ll walk you through my process for creating a robust yet flexible ESX installation system that can handle multiple host configurations from a single bootable USB device.</p><h3>Why rEFInd + Kickstart?</h3><p><strong>rEFInd</strong> is a UEFI boot manager that provides an elegant yet simple menu system for selecting different boot configurations. Combined with ESX kickstart files, it allows you to:</p><ul><li>Deploy multiple ESXi configurations from a single USB drive or network boot server.</li><li>Maintain different configurations for different hardware types.</li><li>Supports both ESX 9 as well as legacy versions (8.x, 7.x)</li><li>Reduce deployment time significantly</li><li>Minimise human error in configuration</li></ul><h3>Prerequisites</h3><p>Before we begin, ensure you have:</p><ul><li>A USB drive (8 GB minimum).</li><li>ESX ISO files for your target versions</li><li>Target servers with UEFI boot capability</li><li>Basic understanding of ESX networking and storage concepts</li><li>Knowledge of which drive you want to install to, and the device ID if it&#39;s not the first drive.</li></ul><h3>Setting Up the Boot Structure</h3><p>First, let’s create the directory structure for our multi-boot environment:</p><p>For this process, I worked through the tasks to understand what was required to streamline the process. I have documented this below.</p><p><strong>Download rEFInd from </strong><a href="https://rodsbooks.com/refind/getting.html"><strong>rodsbooks.com/refind</strong></a>. rEFInd will be the tool used to replace the bootloader on the USB drive. On boot, it prompts you to select a boot option that allows you to select the OS installer to load.</p><p>Please note, <strong><em>not </em></strong>all the files from the rEFInd zip file are required. You <strong><em>only </em></strong>need a single file from the zip, which can be found in the <strong>./refind/</strong> directory, the file is named <strong>refind_x64.efi </strong>and will be renamed to <strong>bootx64.efi </strong>and placed in a specific directory, shown below on the USB stick(./EFI/BOOT).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*ADqcgftDiUgQ4GLD7NHunw.png" /><figcaption>Desintation subdirectories shown for <strong>bootx64.efi.</strong></figcaption></figure><p>Next, we need to create a configuration file that will be loaded when the bootloader runs. This file populates the text-based UI, which lets us select an image to boot from. Create a text file in the./EFI/BOOTdirectory named <strong>refind.conf </strong>(shown above). Below is an example I have used within my lab.</p><pre>timeout 30<br>textonly<br>scanfor manual<br>showtools shell, reboot<br><br>menuentry &quot;ESX 9 Kickstart ESX101&quot; {<br>    loader /esx9/efi/boot/bootx64.efi<br>    options &quot;ks=usb:/kickstart/KS-ESX101.CFG&quot;<br>}<br><br>menuentry &quot;ESX 9 Kickstart ESX102&quot; {<br>    loader /esx9/efi/boot/bootx64.efi<br>    options &quot;ks=usb:/kickstart/KS-ESX102.CFG&quot;<br>}<br><br>menuentry &quot;ESX 9 Kickstart ESX103&quot; {<br>    loader /esx9/efi/boot/bootx64.efi<br>    options &quot;ks=usb:/kickstart/KS-ESX103.CFG&quot;<br>}</pre><p><strong>Note: </strong>The directory structure for the <strong><em>loader</em> </strong>parameter above shows my configuration. The ‘/esx9/….’ is the directory I chose for the installation files, and the remainder of the path shows the location of the bootx64.efi file.</p><p>In the config file above, I have listed three (3) menu options to select from, with the bootloader loading the corresponding .EFI file found listed next to the <em>loader </em>line within each menuentry <strong><em>(e.g. /esx9/efi/boot/bootx64.efi)</em></strong>. The subsequent kickstart <em>options </em>file <strong><em>(e.g. /kickstart/KS-ESX101.CFG)</em></strong> will then be loaded from the path given on the USB stick. This file stores the configuration for the relevant ESX host. This file will be customised to match our chosen host, which will be shown below.</p><p>We will now modify the files that are pulled from the ESX installation media. From the root of your media, create a new directory named <strong>esx9</strong>. Within this folder, copy the <strong>BOOT.CFG </strong>file from within the ISO image of the ESX image, this file can be found in the root directory. The original file has three (3) lines that are required to be changed to allow it to be used in the kickstart file. Once this has been copied to the destination, edit the file and change the configuration to the example below (You can simply copy this file below, changing the <em>‘prefix’</em> line if you modified the directory of the installation files). In this example, we changed the <em>prefix</em>, to the directory loading the ESX files from. We also changed the <em>modules</em> line to remove the ‘/’ from each of the files.</p><pre>bootstate=0<br>title=Loading ESXi installer<br>timeout=5<br>prefix=/esx9/  #-- change this line<br>kernel=b.b00   #-- remove the / from this line<br>kernelopt=runweasel cdromBoot<br>modules=jumpstrt.gz --- useropts.gz --- features.gz --- k.b00 --- uc_intel.b00 --- uc_amd.b00 --- uc_hygon.b00 --- procfs.b00 --- vmx.v00 --- vim.v00 --- tpm.v00 --- sb.v00 --- s.v00 --- bnxtnet.v00 --- bnxtroce.v00 --- configur.v00 --- dellfac.v00 --- dellfist.v00 --- dellosna.v00 --- dellupgr.v00 --- i40en.v00 --- icen.v00 --- igbn.v00 --- irdman.v00 --- ixgbenen.v00 --- ixgben.v00 --- qlnative.v00 --- atlantic.v00 --- bcm_mpi3.v00 --- cndi_igc.v00 --- dwi2c.v00 --- elxnet.v00 --- iavmd.v00 --- intelgpi.v00 --- ionic_cl.v00 --- ionic_en.v00 --- iser.v00 --- lpfc.v00 --- lpnic.v00 --- lsi_mr3.v00 --- lsi_msgp.v00 --- lsi_msgp.v01 --- ne1000.v00 --- nenic_en.v00 --- nenic.v00 --- nfnic.v00 --- nhpsa.v00 --- nipmi.v00 --- nmlx5_cc.v00 --- nmlx5_co.v00 --- nmlx5_rd.v00 --- ntg3.v00 --- nvme_pci.v00 --- nvmerdma.v00 --- nvmetcp.v00 --- nvmxnet3.v00 --- nvmxnet3.v01 --- pvscsi.v00 --- rdmahl.v00 --- rshim_ne.v00 --- rshim.v00 --- sfvmk.v00 --- smartpqi.v00 --- vmkata.v00 --- vmksdhci.v00 --- vmkusb.v00 --- vmw_ahci.v00 --- bmcal.v00 --- clusters.v00 --- crx.v00 --- drivervm.v00 --- btldr.v00 --- dvfilter.v00 --- esx_ui.v00 --- esxupdt.v00 --- tpmesxup.v00 --- weaselin.v00 --- xorg.v00 --- esxio_co.v00 --- infravis.v00 --- loadesx.v00 --- hpv2_hps.v00 --- intelv2_.v00 --- lsiv2_dr.v00 --- nvme_pci.v01 --- oem_dell.v00 --- oem_leno.v00 --- smartpqi.v01 --- native_m.v00 --- podvm_ro.v00 --- trx.v00 --- vcls_pod.v00 --- vdfs.v00 --- vds_vsip.v00 --- vmware_e.v00 --- vmware_f.v00 --- hbrsrv.v00 --- vsan.v00 --- vsanheal.v00 --- vsanmgmt.v00 --- tools.t00 --- qp_esx_d.v00 --- nsx_adf.v00 --- nsx_cfga.v00 --- nsx_cont.v00 --- nsx_cpp_.v00 --- nsx_esx_.v00 --- nsx_expo.v00 --- nsx_host.v00 --- nsx_ids.v00 --- nsx_moni.v00 --- nsx_mpa.v00 --- nsx_nest.v00 --- nsx_neto.v00 --- nsx_opsa.v00 --- nsx_plat.v00 --- nsx_prot.v00 --- nsx_prox.v00 --- nsx_pyth.v00 --- nsx_pyth.v01 --- nsx_pyth.v02 --- nsx_sfhc.v00 --- nsx_shar.v00 --- nsx_snpr.v00 --- nsx_vdpi.v00 --- nsxcli.v00 --- vsipfwli.v00 --- gc.v00 --- imgdb.tgz --- basemisc.tgz --- resvibs.tgz --- esxiodpt.tgz --- imgpayld.tgz<br>#-- change the line above to remove the /&#39;s<br>build=9.0.0-0.24755229<br>updated=0</pre><p>So that the installation work effectievly we need to <strong>copy </strong>this file and place it within the /esx9/EFI/BOOT directory as well as the /esx9/ directory. Your directory structure should now look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*tp3I0eAoGyKGWGu4ETjUzw.png" /></figure><p>We now get to the actual configuration scripts. These are subject to your chosen configuration within each of your hosts. However, I have shown below what I used for each host. You need to create a configuration file for each host you want to build, and place the relevant .cfg file in the directory defined in the refind.conf configuration file from above. My config file for my first host is listed below.</p><p><strong>Note: </strong>I have used variables to define most of the configuration. You should be able to simply change these values for your chosen host and leave the rest below these lines unchanged.</p><p><strong>KS-ESX101.cfg:</strong></p><pre>#<br># ESXi 9.0 Standard Server Kickstart Configuration<br># Compatible with ESXi 8.x and 7.x with minor modifications<br>#<br><br>vmaccepteula<br><br>#1 TB Disks<br>#OS Disk<br>clearpart --all --overwritevmfs --drives=t10.NVMe____Samsung_SSD_990_EVO_Plus_1TB____________2419405152382500<br># RAMdisk Disk<br>clearpart --all --overwritevmfs --drives=t10.NVMe____Samsung_SSD_990_EVO_Plus_1TB____________F727405157382500<br><br># 2TB Disk<br>#vSAN<br>clearpart --all --overwritevmfs --drives=t10.NVMe____Samsung_SSD_990_EVO_Plus_2TB____________B894425154382500<br><br>install --firstdisk --overwritevmfs <br><br>reboot<br><br>#ESX101<br>network --bootproto=static --device=vmnic0 --ip=192.168.100.101 --netmask=255.255.255.0 --gateway=192.168.100.1 --hostname=esx101.labbing.org --nameserver=192.168.0.101 --vlanid=100<br>#ESX102<br>#network --bootproto=static --device=vmnic0 --ip=192.168.100.102 --netmask=255.255.255.0 --gateway=192.168.100.1 --hostname=esx102.labbing.org --nameserver=192.168.0.101 --vlanid=100<br>#ESX103<br>#network --bootproto=static --device=vmnic0 --ip=192.168.100.103 --netmask=255.255.255.0 --gateway=192.168.100.1 --hostname=esx103.labbing.org --nameserver=192.168.0.101 --vlanid=100<br><br>#root password<br>rootpw password123!<br><br><br>%firstboot --interpreter=busybox<br><br>################################################################<br># Variables definition<br>NVME_TIERING_DEVICE=&quot;t10.NVMe____Samsung_SSD_990_EVO_Plus_1TB____________F727405157382500&quot;<br>VMFS_DATASTORE_NAME=&quot;local_DS01&quot;<br><br>NTP_SERVER=192.168.0.5<br>SSH_ROOT_KEY=&quot;&quot;<br>MANAGEMENT_VSWITCH_MTU=9000<br>DOMAIN_NAME=labbing.org<br>VM_NETWORK_VLANID=100<br>################################################################<br><br>while ! vim-cmd hostsvc/runtimeinfo; do<br>sleep 10<br>done<br><br>esxcli network ip dns search add --domain=${DOMAIN_NAME}<br>esxcli network ip set --ipv6-enabled=false<br>esxcli network vswitch standard set --vswitch-name=vSwitch0 --mtu=${MANAGEMENT_VSWITCH_MTU}<br>esxcli network ip interface set -i vmk0 -m ${MANAGEMENT_VSWITCH_MTU}<br>esxcli network vswitch standard portgroup set -p &quot;VM Network&quot; -v ${VM_NETWORK_VLANID}<br>esxcli network vswitch standard uplink add -v vSwitch0 -u vmnic1<br>sleep 5<br>esxcli network vswitch standard uplink remove -v vSwitch0 -u vmnic0<br>sleep 10<br><br># enable and start SSH<br>vim-cmd hostsvc/enable_ssh<br>vim-cmd hostsvc/start_ssh<br><br>#enable and start ESXi shell<br>vim-cmd hostsvc/enable_esx_shell<br>vim-cmd hostsvc/start_esx_shell<br><br># Suspress ESXi Shell warning<br>esxcli system settings advanced set -o /UserVars/SuppressShellWarning -i 1<br><br><br>esxcli network firewall ruleset set -e true -r sshServer<br><br>#Disable CEIP<br>esxcli system settings advanced set -o /UserVars/HostClientCEIPOptIn -i 2<br><br><br>#Rename Local Datastore<br>vim-cmd hostsvc/datastore/rename datastore1 ${VMFS_DATASTORE_NAME}<br><br># Enable Memory Tiering (200%)<br>esxcli system settings kernel set -s MemoryTiering -v TRUE<br>esxcli system tierdevice create -d /vmfs/devices/disks/${NVME_TIERING_DEVICE}<br>esxcli system settings advanced set -o /Mem/TierNvmePct -i 200<br><br># Configure iSCSI<br>esxcli iscsi software set --enabled=true<br>esxcli iscsi adapter discovery sendtarget add --address=syn1821.microlicious.local:3260 --adapter=vmhba64<br>esxcli iscsi adapter discovery rediscover --adapter=vmhba64<br>esxcli storage core adapter rescan --adapter=vmhba64<br><br>sleep 5<br><br># NTP Server Settings<br>esxcli system ntp set -s ${NTP_SERVER}<br>esxcli system ntp set --enabled=true<br>esxcli system ntp set -e 1<br><br><br># Loading ESXi ESA Mock Vib from William Lam<br>esxcli software acceptance set --level CommunitySupported<br>sleep 5<br>esxcli software vib install -v https://github.com/lamw/nested-vsan-esa-mock-hw-vib/releases/download/1.0/nested-vsan-esa-mock-hw.vib --no-sig-check --maintenance-mode<br># Local<br><br><br># ESX Update from the SYN1821 SSD Volume in the ISO Folder<br>#esxcli system maintenanceMode set -e 1<br>#esxcli software profile install -d /vmfs/volumes/65f66574-afe2d5a8-064e-941882788db8/ISO/VMware-ESXi-9.0.0.0100.24813472-depot.zip -p ESXi-9.0.0.0100-24813472-standard<br>#esxcli system maintenanceMode set -e 0<br><br># Local Certficate Regeneration<br>/sbin/generate-certificates<br><br># Workaround required for AMD Ryzen-based CPU<br>echo &#39;monitor_control.disable_apichv =&quot;TRUE&quot;&#39; &gt;&gt; /etc/vmware/config<br><br>reboot</pre><p><strong>Note: </strong>The most challenging part of this script, which actually isn’t 100% required, is the clearing of the partitions within each disk. This is the <em>clearpart</em> lines in the above, which should remove the partitions from the drives. We have to specify the actual device ID, which differs for each device in each host. This can be skipped in most cases and can be removed with a ‘#’ at the beginning of the line if you do not require it.</p><p>The last and final step is to copy the ESXi files from the ISO to the USB device…..</p><h3>Deployment Workflow</h3><ol><li><strong>Boot the target server</strong> from your USB/network boot media</li><li><strong>Select the appropriate configuration</strong> from the rEFInd menu</li><li><strong>Let the installation proceed</strong> automatically</li><li><strong>Verify post-installation</strong> configuration via vSphere Client or SSH</li></ol><h3>Troubleshooting Common Issues</h3><p><strong>rEFInd not appearing:</strong> Ensure UEFI boot is enabled and Secure Boot is disabled.</p><p><strong>Kickstart file not found:</strong> Verify the path in your rEFInd configuration matches the actual file location.</p><p><strong>Network configuration fails:</strong> Check DHCP availability and network cable connections.</p><p><strong>Post-installation scripts fail:</strong> Review the ESXi installation log in /var/log/esxi_install.log.</p><h3>Security Considerations</h3><ul><li><strong>Change default passwords</strong> in all kickstart files</li><li><strong>Restrict SSH access</strong> after deployment</li><li><strong>Use secure protocols</strong> for syslog and management traffic</li><li><strong>Regularly update</strong> your ESXi images and kickstart configurations</li></ul><h3>Conclusion</h3><p>This rEFInd + kickstart approach transforms ESXi deployment from a manual, error-prone process into a streamlined, repeatable workflow. Whether you’re managing a handful of hosts or hundreds, having standardised, automated deployments saves time and ensures consistency across your infrastructure.</p><p>The flexibility to support multiple ESXi versions and different hardware configurations makes this solution particularly valuable in mixed environments or during migration projects.</p><p>Start with the basic configurations I’ve provided, then customise them for your specific environment. Your future self (and your team) will thank you when the next server deployment takes minutes instead of hours.</p><p><em>Have you implemented automated ESXi deployments in your environment? What challenges did you face? Share your experiences in the comments below.</em></p><p><strong>Tags:</strong> VMware, ESXi, Kickstart, Automation, Virtualisation, ESX, rEFInd, Boot, Autoboot, Custom</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43214aabc9cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>