Import-DSvRepo - One Script to Import Everything

Available now

This is the third piece of the air-gapped VMware patching puzzle. DSvClient downloads the repository from Broadcom, DSvRepoImport is the PowerShell module that knows how to talk to each vCenter API, and Import-DSvRepo is the wrapper script that ties them together into a single command.

If you’ve read my posts on DSvClient 0.8.0 and DSvRepoImport, you know the individual pieces. This post covers how the wrapper orchestrates them.

Why a Wrapper Script?

The DSvRepoImport module exports eight functions, each handling a different data type. Calling them one by one with the right parameters and credentials gets tedious fast — especially when you’re doing it regularly across multiple vCenter instances.

[]

DSvRepoImport - Importing VMware Repos into Air-Gapped vCenter

Available now

If you run vCenter in an air-gapped environment — no internet access, no Broadcom CDN connectivity — getting vSAN HCL databases, VCG compatibility data, vLCM offline depot bundles, and VCSA appliance patches onto the appliance is a multi-step manual process that’s easy to get wrong.

I wrote DSvRepoImport to automate that entire pipeline. It’s a PowerShell module that takes a DSvClient-downloaded repository and imports everything into vCenter over SSH and REST API, with no internet connectivity required on the vCenter side.

[]

DSvClient 0.8.0 - VCSA Patch Layout Fix and On-Disk CDN Mirror

A few critical bugs have been fixed in the DSvClient to make it work when patching vCenter, some blobs where missing and layout didnt align with vCenters expectations when used for an online repo. This make it ready to use with the up coming patch module for vCenter, very useful in airgapped environments.

Here’s what changed and why.

Previous DSvClient versions downloaded every VCSA patch file — RPMs, container image blobs, .manifest files, script zips, and root metadata — into a single flat directory at valm/<version>/. That worked for local inspection, but it didn’t match how the Broadcom CDN actually serves those files.

[]

Capturing VM Switch‑Port Traffic with a simple script

When I’m troubleshooting a virtual machine’s network behavior, the first thing I reach for is a packet capture. In theory it’s simple: locate the switch‑port the VM is attached to, start a capture on that port, and save the results for later analysis. In practice I kept forgetting the exact commands—especially the quirky combination of pktcap-uw and tcpdump-uw that ESXi require.

To solve that, I wrote a tiny shell script that does everything in one go. Below I walk through the script, explain each step, so you can use it in your own environment.

[]

Automating VMware/Broadcom URL Whitelisting Checks with a Simple Bash Script

I wrote another piece of bash script that I think others might fine useful, hence the blog post :) It is some what inspired by DSvClient which I also recently did a new release of check it out here on MichaelRyom.dk or here on GitHub!

Why I wrote this script

I ran into issues working with vCenter and network security. It was a very practical problem: firewall and proxy rules were silently breaking essential VMware/Broadcom services.

[]

DSvClient 0.6 - Broadcom ready and bug fixes

Hi,

Since the initial release, I’ve been addressing quite a few bugs that came with the new Broadcom token, as well as other minor issues and slowdowns.

I’ve also open-sourced the software. It’s still not perfect, but hey, whose code that, right? 😉

Going forward, I’ll be supporting Windows and Linux only. If you need it for other operating systems, you’ll have to build it yourself.

The latest version, 0.6, can be found here: https://github.com/MichaelRyom/DSvClient/tree/Main/releases/latest

[]