ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • VVF 9 and VCF 9
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Windows Server 2025
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How-to Create Autodeploy ISO for Automated ESXi Installations

By Vladan SEGET | Last Updated: October 8, 2017

Shares

Most of you usually know how to install VMware ESXi interactively via ISO or via Autodeploy. In this post, we'll check out another possibility where we'll learn How to Create Autodeploy ISO for unattended ESXi Installations. You'll need some tools which can edit ISO images. One of them is Winiso, but there are plenty of others.

The configuration file is very flexible, and in our example we'll have the option for installing to the first available disk and formatting without prompt. You may want to change this to fit your needs. Note also that in our post we simply place the KS.CFG file to the root of the ISO file from we'll be booting the installer, but it's just for learning purposes. , but there are in total 3 different places where you can put the file:

In total, 3 VMware supports different types of installations with places where you can put the file:

  1. Root of the ESXi ISO file
  2. USB stick – During boot do a Shift + o:  runweasel ks=usb:/ks.cfg 
  3. Network – the file has to be accessible through https/https, NFS or FTP.

The USB is the simplest one, but we might come back to this to explore the two other options in one of our future posts.

Step1 – Download WinISO, (6 Megs) > do an installation on your management workstation > Open the latest ESXi ISO file.

Step 2 – create ks.cfg file with this example content in it (partly from VMware documentation) and place the file to the root of the directory

ks.cfg

# Sample scripted installation file
# Accept the VMware End User License Agreement
vmaccepteula
# Set the root password for the DCUI and Tech Support Mode
rootpw Superpassword123
# The install media is in the CD-ROM drive
install –firstdisk –overwritevmfs
# Set the network to DHCP on the first network adapater
network –bootproto=dhcp –device=vmnic0

rootpw Superpassword123

reboot

If you check the documentation, there are other options as well, for example, the selection of international keyboard (optional) or specify serial number. If not, the hypervisor just installs as 60 days trial. The KSCFG is supported for installation or for upgrades.

Step 3 – Modify existing file called BOOT.CFG which is on the ISO  (replace the original one with the new one)  > then do a Save As to save the ISO with a new name…  Like this you keep the original ISO untouched. Or, you can do a copy of the original ISO by hand before starting doing any changes if you like….

The original value to replace is:

kernelopt=runweasel

with this… (note the CASE. If you don't put the case ON, the script isn't found)

KS.CFG is Case Sensitive

So at final, you should end up with an ISO file with: 1 new file (ks.cfg) and one modified file (boot.cfg)

  • One new file (KS.CFG)
  • One modified file (BOOT.CFG)

ks.cfg

Don't forget to save your work….

Best way then to test is through VMware Workstation, Fusion or Player. Once you attach the ISO to the newly created VM, automatically the new VM is recognized as ESXi hypervisor (unsupported)… But for testing different values this is probably the most flexible option.

The DHCP option for example works only if you have a DHCP server available on your network. When testing in VMware workstation make sure that you set correct networks settings for this newly created VM otherwise if VM is isolated the installer will complain that no DHCP servers were found on the network…

VMware Workstation - creating nested ESXi

Source: VMware vSphere 6.0 Documentation

Shares
5/5 - (2 votes)

| Filed Under: How To Tagged With: How-to Create Autodeploy ISO for Automated ESXi Installations

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Hunter says

    January 22, 2019 at 10:33 pm

    This was the exact tutorial I was looking for. Tried to remaster the installation ISO on linux, but for some reason, KS.CFG wasn’t working right for me.

    Only thing I would like to know now is if you can add vmdks to the ISO and then copy them over during installation so you can have a VM up and running by the time installation has finished? VMDK is only 50 meg so don’t think the ISO would get very big.

  2. Karolis says

    February 10, 2020 at 9:08 pm

    Firstly, the script has linting issues, double dash (–firstdisk) before options has been converted to “–firstdisk”
    Secondly, it has extra password declaration “rootpw Superpassword123” before reboot.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Free Virtual Backup Appliance from StarWind – With Community Support (example configuration for ESXi and Veeam Backup)
  • VMware vSphere Foundation (VVF 9) and VMware Cloud Foundation (VCF 9) Has been Released
  • Veeam Backup & Replication 12.3.2 – patch critical vulnerabilities for your dataprotection environments
  • Veeam confirming vSphere 9.0 and ESXi 9 upcoming support
  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in