ESX Virtualization

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

Menu
  • Shop
    • Datacenter
      • vSphere Essentials
      • vSphere Essentials PLUS
      • vSphere Standard
      • vSphere with Operations Management
      • vCenter Server Standard
      • vSphere Remote Office Branch Office
    • Desktop
      • VMware Workstation Pro
      • VMware Fusion Pro
      • VMware Fusion
      • Player Pro
    • Datacenter and Cloud
      • VMware SRM
      • vCenter Server Editions
    • Desktop
      • VMware Mirage
      • VMware Socialcast
      • Horizon Flex
      • VMware Horizon
    • Close
  • Study Guides
      • VCP6.7-DCV
          • VCP6.7-DCV 2019
        • Close
      • VCP6.5-DCV
          • VCP65-DCV-cert
        • Close
      • VCP6-DTM
          • VCP6-DTM
        • Close
      • VMware Mirage
          • mirageVMware Mirage
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • vSphere 5.5
      • vSphere 5.1
      • Close
    • VMworld
      • 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
    • 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 Stuff – 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
    • Altaro
    • NAKIVO
    • StarWind
    • Veeam
    • Vembu
    • Zerto
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • IT Books
    • Close
  • Free Tools
  • Books

VCAP Diary – VMware vSphere ESXi Image Builder

By Vladan SEGET | Last Updated: November 1, 2014

Shares

VMware vSphere ESXi Image Builder hasn't been covered yet on my blog. I think it's time. Once you understand how to put all the bits and pieces (Image builder,  Host profiles and Autodeploy) together, than you can make your super homelab run even more “sexy” with autodeployed ESXi hosts – now even with VMware Tools for Nested ESXi built in! And at the same time to learn towards VCAP exam.

autodeployYes VMware vSphere ESXi Image builder allows also to build custom images, so you can add an additional drivers into it. But to master this technology, it's not a easy task. If you want to have vSphere Autodeploy running in your lab, then one of the options is to configure Image builder and Host profiles, because those technologies were designed to work together with the vSphere suite.

There are prerequisites and PowerCLI commands to know. That's why this post. To remember some PowerCLI. I'm not a scripting guy. I like to write my own post around the topic. It helps me to remember those (pesky) PowerCli commands too.. -:). We will start with Image builder.

vSphere ESXi Image builder is an utility which allows to build custom images. Those images can be exported as ISOs or as package bundle. If you thinking that this topic isn't for you, or that you think that you'll never use features like Autodeploy or Host profiles (which works hand in hand with Image Builder) then you might be wrong. This article applies to vSphere 5.x,  so even if I'm demoing with images dating vSphere 5.0, all versions of vSphere starting the 5.0 are covered – 5.0, 5.1 and 5.5.

What VMware vSphere ESXi Image builder does?

  • Managing multiple software depots which contains original VMware images, drivers, packages…
  • Cloning those images so you can later alter them by adding additional drivers packages
  • Exporting those images as ISOs or package bundles (zip)

How to Setup VMware Image builder?

 What we need:

  • PowerCLI installed on a Workstation or Windows vCenter – Download latest PowerCLI here.
  • ESXi Installation image (not ISO) – the offline bundle (not part of the ESX free, you need 60 days trial or do this workaround)

Connection to vCenter

Let's start with the basics. After you start the PowerCLI window, first think to do is to do is to connect to your vCenter server (Windows or Linux – VCSA).

Connect-VIserver

If it complains about remote signed code not active, than activate remote signing (Needs to be done only once – You can skip this if you already done)

Set-ExecutionPolicy RemoteSigned

Add Software depot

You need at least one software depot to be added. If you want to add custom drivers, then you need to add those as well. In my example I'm adding the VMware software depot (with the vanilla images) and another software depot which contains custom (unsupported) driver – VMware Tools for nested ESXi.

Add-ESXSoftwareDepot

VMware vSphere ESXi Image Builder

You then add the driver depot (not the VIB).

VMware vSphere ESXi Image Builder

(Note: there is more easier way to build a custom iso with VMware tools for nested ESXi, but for the VCAP exam you'll need to master this as you won't get access to  external utilities)

VMware vSphere ESXi Image builder

So we have added depots and we can see some profiles. What's next? Let's do some cloning as you might not want to alter the VMware vanilla image. See the image above for the command to clone one of the profiles.

New-ESXImageProfile -CloneProfile

Once the profile cloned, you can add some driver packages into it. Hey that's what we want, no. We want to add the VMware Tools for ESXi package right into our new cloned image called vcaptest.. -:). But to know the name the package, we need first to list all the packages we have in our depot!

Get-ESXSoftwarePackage

VMware vSphere ESXi Image builder

Add that package to our newly cloned image

Add-ESXSoftwarePackage -ImageProfile vcaptest -SoftwarePackage esx-tools-for-esxi

VMware vSphere ESXi Image Builder

To see if the package was successfully added, there is a command for list the VIBs.

Get-ESXImageProfile vcaptest | select -ExpandProperty viblist

VMware vSphere ESXi Image Builder

Ok, ok. You might say, there is too many commands! Oh well, there is, but they are necessary to manipulate those image depots, image profiles and individual packages. So learn you lazy ..-:) We're almost at the end. It won't hurt, I promise… We only need to export our custom build image into an ISO, that's it!

Expot to ISO or to ImageBundle

Ha. in my particular case, where I'm using the VMware Tools for ESXi  “untrusted package” I have an error. It's only because of that. So I'll have to “heal” that error with this switch at the end (the switch is -NoSignatureCheck)

Export-ESXImageProfile -ImageProfile vcaptest -ExportToIso c:vcaptest.iso

VMware vSphere ESXi Image Builder

You can also Export to bundle and get a ZIP package with this command:

Export-ESXImageProfile -ImageProfile vcaptest -ExportToBundle c:vcaptest.zip

That's all folks… so you'll end up with a custom build iso of ESXi-5.x with VMware Tools for Nested ESXi host in my case. There is many cases when you need to integrate custom drivers for some of your hosts and build an ISO.

Or when using Autodeploy, you need custom based images as well so the host which is not running out of local disk, but boots via the network via TFTP and can boot from the custom image which contains custom drivers. But autodeploy will be covered in one of my future articles, so stay tuned.

Update: I've recorded a short video to show how that works…

The whole serie so far:

  • VCAP Diary – VMware vSphere ESXi Image Builder (this post)
  • VMware vSphere AutoDeploy – Run some PowerCLI and you’re the Boss
  • VMware vSphere AutoDeploy – Install and configure
  • VCAP Diary – VMware vSphere Host Profiles
  • VMware vSphere Host Profiles – options and troubleshooting

The article was published first at ESX Virtualization website. Feel free to subscribe via RSS or by e-mail to get the latest news to be delivered via weekly newsletter. The latest 200 articles of daily updates can be found on our daily archives page.

Shares

| Filed Under: How To Tagged With: VMware vSphere ESXi Image Builder 4 Comments

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x11, Veeam Vanguard x5, VCAP-DCA/DCD, VCP, 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. Rob Nelson says

    November 16, 2013 at 4:05 pm

    How do you actually set up the local EsxSoftwareDepot? It appears to require an index.xml, not just the files.

    Reply
    • Rob Nelson says

      November 16, 2013 at 4:34 pm

      Found my own answer. You might want to include a link to http://www.v-front.de/2013/11/vmware-tools-for-nested-esxi-and-how-to.html, or whatever you used, for instructions on how to turn the nested VIB into a depot.

      Reply
      • Vladan SEGET says

        November 16, 2013 at 6:41 pm

        Yes, you can’t add the VIB to a software depot. You need the ZIP package, where is the XML file. This has been documented in the following article where I’m linking directly to Andy’s blog on his ESXi Customizer tool: http://www.vladan.fr/how-to-build-a-custom-iso-with-vmware-tools-for-nested-esxi/

        Thanks.

        Reply
        • Rob Nelson says

          November 17, 2013 at 4:25 am

          Thanks for the quick response, Vladan. I was able to get this deployed this morning in no time, once I created the depot. Good stuff!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Nakivo Backup and Replication
Zerto 7Vembu Backup and Replication
Click to Become a Sponsor

Featured

  • Free Backup for VMware and Hyper-V - NAKIVO Backup & Replication
  • FREE Forever—Back up VMware with Altaro VM Backup. Grab your Free copy now!
  • WinX DVD Ripper Platinum Giveaway - 1:1 Copy DVD to ISO,MP4

Most Recent

  • VMware vSphere 6.7 U3b Released
  • Veeam Backup for AWS Free Version Released
  • Cheapest way of going virtual with StarWind Virtual SAN (VSAN)
  • Physical Server Backup, Workstation or Laptop with Nakivo Backup and Replication
  • Download Free Load Balancer for VMware vSphere
  • Fight Ransomware with Veeam 10 Immutability Feature
  • StarWind VSAN Graceful Shutdown and PowerChute Configuration
  • Are You Aware of the Most Common Phishing Attacks?
  • Altaro Office 365 Backup New Features Added
  • Zerto 7.5 With Elastic Journal and long term retention – Restore a VM 20 Years old?

Most Liked

  • VCP6.7-DCV Study Guide - VCP-DCV 2019 certification
  • VCP6.5-DCV Study Guide
  • vSphere 6.5
  • VCP6.5-DCV Objective 4.3 - Perform vCenter Server migration to VCSA
  • What Is VMware ESXi Lockdown Mode?

Fast NVMe Storage


Virtualization Software From VMware

  • VMware vSphere 6.7 U3 Essentials PLUS - vMotion, vSphere Replication...Included
  • VMware vSphere 6.7 U3 Essentials - 3 hosts, vCenter
  • vSphere Hypervisor Per Incident Support Click Here.
  • VMware Workstation 15.5 Pro and Upgrades - Best Desktop Virtualization Software
  • VMware Fusion 11.5 - Run Windows on MAC, and Upgrades
  • VMware Fusion 11 Professional - Restricted VMs, Virtualized VT-X/EPT... and Upgrades
**************************************************************************
  • Upgrade to vSphere Editions
  • Upgrade to vSphere Enterprise Plus
  • Upgrade to vSphere with vSOM Enterprise Plus
  • Upgrade to vSphere with Operations Management Editions
  • Upgrade to vSphere with Operations Management Enterprise Plus

Free Software

Altaro VM Backup – Protect your VMware and Hyper-V VMs for Free with Altaro VM Backup. 2 VM for Free, forever. Grab your copy now!
Veeam ONE Community (FREE) Edition 9.5 U4B – Download Now. monitor up to 10 instances of VMware, Hyper-V, Veeam Backup & Replication and Windows and Linux workloads!
Veeam Backup And Replication Community (FREE) Edition 9.5 U4B – protects up to 10 instances (VMs or Computers, laptops for Free.

Free Trials

Veeam Backup and Replication 9.5 Trial DownloadVeeam Backup & Replication 9.5 U4B Full Version Download (30 Days Trial – Get Your Copy !

YouTube

Find us on Facebook

ESX Virtualization

Copyright © 2019 ·Dynamik-Gen · Genesis Framework · Hosted with HostColor.com

X
Veeam Backup 9.5 U4B Community Edition
Download NOW
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok