WilliamLam.com

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

Emulating a Virtual USB storage device using Nested ESXi

07.11.2022 by William Lam // 3 Comments

My buddy Alan Renouf had pinged me earlier today and asked whether it was possible to emulate a USB storage device that could aide him in the testing the installation of ESXi from a USB device but without having to use a real USB device. I honestly was not aware of any mechanisms that would allow for this and I normally would just passthrough a real USB device to a Nested ESXi VM for this type of testing purposes.

While thinking about his question, I also recall we had made some enhancements to our Virtual USB interface that would allow user to back it using a disk file. While searching further, I came to learn that not only was this possible, but it was also a common method for testing USB-based installation without the hassle of messing with physical hardware. It turns out you can just present a Virtual Disk (VMDK) to a VM running ESXi (Nested ESXi) and through a special driver, it will recognize the device as a USB storage device!

I definitely wish I had learned about this earlier and it goes to show, all the hard engineering efforts made by our VMware Engineers to make testing and using our software as easy as possible even without needing real physical hardware 😀

[Read more...]

Categories // Automation, ESXi, Nested Virtualization Tags // Nested ESXi, usb

How to host your own simple ESXi update depot?

07.08.2022 by William Lam // 5 Comments

I recently upgraded my single ESXi host, which is used for my personal vSphere Homelab, to the latest patch release of ESXi 7.0 Update 3e using ESXCLI and connecting directly to VMware's online depot.

I still love how easy it is to update a single ESXi host using ESXCLI and using VMware's Patch Repo -

ESXI_VERSION=ESXi-7.0U3e-19898904-standard

"esxcli software profile update -d https://t.co/cs4yUyvnxQ -p ${ESXI_VERSION}"https://t.co/77Iu0K0hUG pic.twitter.com/nLhx5ztmNa

— William Lam (@lamw.bsky.social | @*protected email*) (@lamw) July 7, 2022

This is the same method that I have been using since 2012 when I first wrote about this in a blog post using a pretty cool method of upgrading/patching a single ESXi hosts. If you are fortunate to have multiple ESXi hosts and a vCenter Server, you definitely should be using vSphere Lifecycle Manager (vLCM) provided by vCenter Server rather than the ESXCLI method, especially as there are no upgrade pre-checks built into in compared to vLCM.

Although my environment has a vCenter Server, I can not use vLCM because I only have a single ESXi host and ESXCLI method is really the only viable option. Customers may have a simliar setup, whether that is for a homelab, smaller environment or simply do not have a vCenter Server. Using the ESXCLI workflow, it certainly is the easiest if your ESXi host can reach VMware's online repo which is hosted at hostupdate.vmware.com, however this may not be possible for everyone, especially for remote locations where connectivity may be spotty or simply is not allowed to have outbound connectivity.

For such environments, you might be interested in hosting your own ESXi update repo and as always, I was curious on how one could setup something simliar without much effort and well, here we are with this blog post 😀

[Read more...]

Categories // Uncategorized

How to limit the maximum supported VM Virtual Hardware/Compatibility in vSphere?

07.02.2022 by William Lam // 1 Comment

In the vSphere UI, customers have had the ability to specify the default VM Compatibility (formally known as Virtual Hardware Version) for some time now when creating a new VM by right clicking on either a vSphere Datacenter or Cluster object to set the default VM Compatibility.


However, this is simply just configures the default VM Compatibility and automatically fills in this value both from the UI/API standpoint but it does not actually prevent users from selecting another supported VM Compatibility.

While browsing the VMTN Community, I saw a question that asked if it was possible to limit the maximum supported VM Compatibility?

[Read more...]

Categories // Automation, vSphere

  • « Previous Page
  • 1
  • …
  • 110
  • 111
  • 112
  • 113
  • 114
  • …
  • 561
  • 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

  • Automating the vSAN Data Migration Pre-check using vSAN API 06/04/2025
  • VCF 9.0 Hardware Considerations 05/30/2025
  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/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...