WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Disable IPv6 in ESXi Kickstart without additional reboot

Disable IPv6 in ESXi Kickstart without additional reboot

04.03.2024 by William Lam // 2 Comments

ESXi supports dual stack networking (IPv4 and IPv6) by default, however users can also configure just IPv4 or IPv6, which requires a system reboot for the changes to go into effect.

Recently, I received a question from a colleague asking if there was a way to disable IPv6 during ESXi Kickstart (aka scripted installation) but NOT require an additional reboot as this setting is typically added in the %post or %firstboot section, which will require an additional reboot due to changing the networking stack default.

The solution was actually quite simple by just leveraging the %pre section, which would ensure that IPv6 is disabled upon the initial reboot after the ESXi installation.

We can disable the IPv6 option by using localcli an updating the tcpip4 module parameter as shown in %pre example below:

%pre --interpreter=busybox

localcli system module parameters set -m tcpip4 -p ipv6=0

Once the ESXi host reboots after the installation, we can can confirm that IPv6 is not enabled using either "esxcli system module parameters list -m tcpip4" or "esxcli network ip interface ipv6 get"


Note: If you wish to configure a pure IPv6 using ESXi Kickstart, please see this blog post HERE for more details.

More from my site

  • Quick Tip - Using ESXi Scripted Installation (kickstart) to configure IPv6 networking
  • Quick Tip - Automating cpuUniformityHardCheckPanic configuration for ESXi Kickstart with USB
  • Automated VMware Cloud Foundation (VCF) host commission using ESXi Kickstart
  • Quick Tip - Automating ESXi local user passwords using SHA512 encrypted hashes
  • Configuring dnsmasq as PXE Server for ESXi 

Categories // Automation, ESXi Tags // ESXi, ipv6, kickstart

Comments

  1. *protectedPatryk says

    04/03/2024 at 9:19 am

    That’s a good tip, thanks William!

    Anyway got a related question, is there any specific reason WHY disable IPv6 apart of “I’m not using it”?
    Any bugs or config that says - do it?
    Something that will actually requires us to do that and not just our will to have things not used disabled..

    Reply
    • William Lam says

      04/03/2024 at 11:36 am

      For some organizations, they have policies of disabling things that aren't in use and there's nothing wrong with IPv6 being enabled (you'll just get a link-local address). If you're never going to use IPv6, it could simplify output when you have multiple VMkernel interfaces since you'll see both IPv4 and IPv6, so that could also be another reason

      Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...