WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple

Search Results for: kickstart

How to Create Bootable ESXi 5 ISO & Specifying Kernel Boot Options

03.30.2012 by William Lam // 21 Comments

This week I helped to answer a few questions about creating your own ESXi 5 bootable ISO along with automatically using a static IP Address when the custom ISO first boots up. Although all this information is available via the vSphere documentation, it may not always be easy to put all the pieces together and thought I share the steps for others to also benefit.

You will need access to a UNIX/Linux system and a copy of the base ESXi 5 ISO image. In this example I will be using VMware vMA and VMware-VMvisor-Installer-5.0.0.update01-623860.x86_64.iso and walk you through two different configurations. We will also be referencing the vSphere documentation Create an Installer ISO Image with a Custom Installation or Upgrade Script and Kernel Boot Options.

Create ESXi 5 Bootable ISO w/Remote ks.cfg:

In this configuration, we will create a custom ESXi ISO that will boot with a static IP Address and use a remote ks.cfg (kickstart) configuration file.

Step 1 - Mount base ESXi ISO using the "mount" utility:

$ mkdir esxi_cdrom_mount
$ sudo mount -o loop VMware-VMvisor-Installer-5.0.0.update01-623860.x86_64.iso esxi_cdrom_mount

Step 2 - Copy the contents of the mounted image to a local directory called "esxi_cdrom":

$  cp -r esxi_cdrom_mount esxi_cdrom

Step 3 - Unmount the ISO after you have successfully copied it and change into the esxi_cdrom directory

$ sudo umount esxi_cdrom_mount
$ cd esxi_cdrom

Step 4 - Edit the boot.cfg and specifically the "kernelopt" line to not use the weasel installer but kickstart and also specifying the remote location of your ks.cfg. To get more details on the various kernel boot options, please take a look at the vSphere Boot Options documentation above.

You will also need to specify the static IP Address you wish to have the host automatically use when the ISO first boots up on the same line.

Step 5 - Once you have finished your edits and saved the boot.cfg, you will now change back to the parent directory and use the "mkisofs" to create your new bootable ISO. In this example, we will name the new ISO "custom_esxi.iso":

$ sudo mkisofs -relaxed-filenames -J -R -o custom_esxi.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table esxi_cdrom/

You now have a new bootable ESXi 5 ISO called "custom_esxi.iso" which will now automatically boot up with the specified static IP Address and install based on the ks.cfg that was specified.

Create ESXi 5 Bootable ISO w/Local ks.cfg:

Similar to the above configuration, we will create a custom ESXi ISO that will boot with a static IP Address but use a local ks.cfg (kickstart) configuration file that will be included within the custom ISO.

Step 1 through 3 is exactly the same as above

Step 4 - By default, a basic ks.cfg is included in the ESXi 5 ISO in /etc/vmware/weasel/ks.cfg and we will create a custom *.tgz file that will include our ks.cfg within the ISO. First off by creating a temporary directory which will be used to store our ks.cfg:

$ mkdir -p temp/etc/vmware/weasel

Step 5 - Copy your ks.cfg file into the temp/etc/vmware/weasel:

$ cp ks_custom.cfg temp/etc/vmware/weasel

Step 6 - Create a *.tgz file containing the path to our ks.cfg using the "tar" utility. In this example, we will called it customks.tgz:

$ cd temp
$ tar czvf customks.tgz *

Step 7 -  Copy the customks.tgz from temp directory to your esxi_cdrom directory:

$ cp temp/customks.tgz esxi_cdrom

Step 8 -  Change into the "esxi_cdrom" directory and edit the boot.cfg just like the above, but we will be using the "file://" stanza to specify the path to our ks.cfg, static IP Address as well as adding our customks.tgz to the module list to ensure that it loads up which contains the actual ks.cfg file that is called in the boot.cfg.

Step 9 - Same as Step 5 above, you now just need to run the "mkisofs" utility to create your bootable ISO.

You now have a new bootable ESXi 5 ISO called "custom_esxi.iso" which will now automatically boot up with the specified static IP Address and install based on the ks.cfg that is included within the ISO.

Categories // Automation, ESXi Tags // bootable, ESXi 5.0, ESXi 5.0, iso, kickstart

Vote For Ghetto

01.24.2012 by William Lam // Leave a Comment

It is that time of the year again, Eric Siebert who runs the popular vSphere-land.com website has just opened up the polls for the Top 25 VMware Virtualization Blogs. This year the voting is not only for the top 25 blogs, but Eric has also introduced categories for best storage, scripting, news information blog, etc. that you can also vote for. I already have a few that I will definitely be voting for such as Steve Jin, Duncan Epping, Frank Denneman and Alan Renouf but also new comers like Chris Colotti.

Here are the top 10 popular posts on virtuallyGhetto for 2011 to help make your decision and vote for virtuallyGhetto!

  1. Automating ESXi 4.1 Kickstart Tips & Tricks
  2. Getting started with vMA 
  3. New vSphere Health Check 5.0 & ghettoVCB Script
  4. How to Enable Support for Nested 64bit & Hyper-V VMs in vSphere 5
  5. How to Run Windows 8 on vSphere 5
  6. Automating ESXi 5 Kickstart Tips & Tricks 
  7. How to Enable Nested vFT (virtual Fault Tolerance) in vSphere 5
  8. When Can I Run Apple OSX on vSphere 5?
  9. How to inject custom drivers into an ESXi 4.1 image using vibddi?
  10. vSphere Tagging Feature Not So Invisible

Vote For Ghetto! Thanks for your support

    Categories // Uncategorized Tags // ghetto

    Ghetto Reflections 2011

    12.24.2011 by William Lam // 14 Comments

    I can not believe it is that time of the year again! 2011 was a great year for myself and looking back, a lot has changed both in my professional and personal life. As 2011 starts to wind down, here are some interesting stats for this past year.

    Total number of posts on virtuallyGhetto in 2011: 103

    Total ghettoVCB pageviews: 600,000k (almost 300k more than 2010)

    Here were the top 10 blog posts of 2011 by page views:

    1. Automating ESXi 4.1 Kickstart Tips & Tricks
    2. Getting started with vMA 
    3. New vSphere Health Check 5.0 & ghettoVCB Script
    4. How to Enable Support for Nested 64bit & Hyper-V VMs in vSphere 5
    5. How to Run Windows 8 on vSphere 5
    6. Automating ESXi 5 Kickstart Tips & Tricks 
    7. How to Enable Nested vFT (virtual Fault Tolerance) in vSphere 5
    8. When Can I Run Apple OSX on vSphere 5?
    9. How to inject custom drivers into an ESXi 4.1 image using vibddi?
    10. vSphere Tagging Feature Not So Invisible

    Here were the top 10 ghetto scripts of 2011 by page views: 

    1. ghettoVCB.sh 
    2. ghettoVCBg2.pl  
    3. vmwarevSphereHealthCheck.pl 
    4. ghettoVCB-restore.sh
    5. vmwarevSphereSecurityHardeningReportCheck.pl
    6. ghettoUPSHostShutdown.pl 
    7. generateHostConfigurationWorksheet.pl
    8. ghetto-esxi-linked-clones.sh
    9. datastoreClusterManagement.pl
    10. guestOpsManagement.pl

    Lastly, I want to take this time to thank all our readers for all of your support! If you already gotten this far into the post, you are in for a surprise. I will be giving away a free copy of Duncan Epping & Frank Denneman's VMware vSphere 5 Clustering Technical Deepdive colored copy. I received a signed copy from the gurus themselves for an article I wrote awhile back and ended up with two copies. To qualify, you just need to leave a comment with a valid email address. I will randomly select a winner on Dec 30th, 2011.

    Happy Holidays and have a Happy New Year! See you in 2012.

    UPDATE: Please take a look at this blog post for the winner The Winner Is ...

    Categories // Uncategorized Tags // ghetto

    • « Previous Page
    • 1
    • …
    • 22
    • 23
    • 24
    • 25
    • 26
    • …
    • 32
    • Next Page »

    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

    • Ultimate Lab Resource for VCF 9.0 06/25/2025
    • VMware Cloud Foundation (VCF) on ASUS NUC 15 Pro (Cyber Canyon) 06/25/2025
    • VMware Cloud Foundation (VCF) on Minisforum MS-A2 06/25/2025
    • VCF 9.0 Offline Depot using Synology 06/25/2025
    • Deploying VCF 9.0 on a single ESXi host? 06/24/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