The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 717 other subscribers

Archive for the ‘VMware’ Category

There has been an ESXi static rsync 3.1.3 binary for a while now (and why I want a much newer version)

Posted by jpluimers on 2026/10/21

This post is a reminder to self to really work on rsync backup of your ESXi box: How to make a statically linked rsync binary.

I’m still catching up on things that happened during my (recovery) of all the cancer treatments in the 2019-2022 time frame.

Which is why I missed two things (actually three if you count the long list of rsync changes up to the current version).

The first is to install the static rsync 3.1.3 binary that runs on ESXi (at least versions 5 through 7, likely 8 as well) on some of my various ESXi boxes.

This is how you get it: Read the rest of this entry »

Posted in *nix, *nix-tools, C, Development, ESXi5, ESXi6, ESXi6.5, ESXi6.7, ESXi7, ESXi8, gcc, Power User, rsync, Software Development, Virtualization, VMware, VMware ESXi | Leave a Comment »

ESXi: rsync over ssh between two ESXi machines (and overcoming a potential “sh: rsync: not found”)

Posted by jpluimers on 2026/10/20

I have been using rsync for years now to sync directories around on VMware ESXi systems with great success.

Usually when upgrading to new physical machines, I synced the things to migrate to a big disk, then physically mounted that disk in a new machine.

Not this time: because of an unscheduled event I had to bring up the target machine in a different place before I could assemble the data on the big disk.

But since there was a network tunnel between the networks of both ESXi machines, I wanted to transfer over ssh: a thing I had done numerous times between various Linux and unix machines.

The cool thing is that rsync supports remote connections over ssh out of the box. Between ESXi machines, I bumped into this error though:

sh: rsync: not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.2]
Command exited with non-zero status 12

The last three lines are collateral of the first line, which I queried [Wayback/Archive] “sh: rsync: not found” – Google Search. Further below I will go deeper into the rabbit-hole I took, but the actual solution was to Read the rest of this entry »

Posted in *nix, *nix-tools, ash/dash, ash/dash development, BusyBox, Development, ESXi6, ESXi6.5, ESXi6.7, man/manual pages, OpenSSH, Power User, rsync, Scripting, Software Development, SSH, ssh/sshd, Virtualization, VMware, VMware ESXi | Leave a Comment »

Dell R730 – Google Search

Posted by jpluimers on 2026/08/24

For my link archive: [Wayback/Archive] dell r730 – Google Search because I first wanted to run a Dell PowerEdge R730 16 Bay SFF, but ended up using the Dell PowerEdge R730xd 24 Bay SFF (plus an additional two 2.5 inch devices in the back) running ESXi on it.

Read the rest of this entry »

Posted in Dell PowerEdge R730, ESXi6, ESXi7, Hardware, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

No more /etc/rc.local in ESXi 7 and up, use /etc/rc.local.d/local.sh in stead

Posted by jpluimers on 2026/08/18

Where in ESXi 6.x you could change /etc/rc.local in ESXi 7 and up tightened security and now use /etc/rc.local.d/local.sh [Wayback/Archive] virtualization – ESXi 7.X file permissions – how to buypass new security measures – Server Fault

Notes:

  • some ESXi (for instance when booting from PXE do not have persistent storage)
  • be sure to always backup an ESXi configuration after changing it

Via [Wayback/Archive] “esxi 7” run your own shell scripts – Google Search

–jeroen

Posted in ash/dash development, Development, ESXi6, ESXi6.5, ESXi6.7, ESXi7, ESXi8, Scripting, Software Development, Virtualization, VMware, VMware ESXi | Leave a Comment »

Increasing your web archiving impact: Guide to Setting Up Your 2nd (and more) ArchiveTeam Warrior in VirtualBox (Windows, MacOS, Linux…) or docker

Posted by jpluimers on 2026/08/03

With both the ever increasing amount of internet data, and ever increasing number of web sites pulling the plug, archiving them into the Internet Archive is ever more important.

The thread at [Wayback/Archive] Double Your Archiving Impact: Guide to Setting Up Your 2nd ArchiveTeam Warrior in VirtualBox (Windows) : Archiveteam has great tips on running ArchiveTeam Warrior instances, even running more than one on a machine.

It covers:

  • Running in VirtualBox
  • Running in docker

A third option is to run on ESXi which I have covered the ESXi quite a few times on my blog already. You can find the main post at Running ArchiveTeam Warrior version 3.2 on ESXi, and all posts at wiert.me/category/ArchiveTeamWarrior.

–jeroen

Posted in ArchiveTeamWarrior, Cloud, Containers, Docker, Infrastructure, Internet, InternetArchive, Power User, VirtualBox, Virtualization, VMware, VMware ESXi, WayBack machine | Leave a Comment »

freebsd – Expanding the disk size on pfsense under VMWare ESXi – Unix & Linux Stack Exchange

Posted by jpluimers on 2026/01/30

It’s a tricky process, but I might need this in the future:

–jeroen

Posted in Hardware, Network-and-equipment, pfSense, Power User, routers, Virtualization, VMware, VMware ESXi | Leave a Comment »

The death of ESXi finally confirmed by Broadcom

Posted by jpluimers on 2024/02/12

Quite a few people already bumped into this the last two days (will add those links later), so today’s confirmation by Broadcom – who have a similar modus operandi as companies like Computer Associates and Symantec were and Idera is now – as of the ESXi death does not come as a surprise.

Read the rest of this entry »

Posted in Internet, InternetArchive, Power User, Virtualization, VMware, VMware ESXi, WayBack machine | Leave a Comment »

ESXi 8 licenses seem still available, if you might need it: register while you can as it looks like Broadcom will kill registration

Posted by jpluimers on 2024/01/18

This is where you can still register for a free ESXi 8 account (until Broadcom kills that):

Because of:

Note that slightly more than a year ago, there was a problem getting licenses because too many were registering at once: [Wayback/Archive] Solved: esxi 8 Free registration – VMware Technology Network VMTN

Read the rest of this entry »

Posted in ESXi7, ESXi8, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

Script to rename a virtual machine in ESXi 6

Posted by jpluimers on 2024/01/10

I bumped into [Wayback/Archive] Script to rename a virtual machine in ESXi 6: gist.github.com/Gremgoll/8bd91258d71fe895c0d416e2543ca2dc.

Then I forked it with the intent to make usage more clear, as the current usage on my ESXi rig (which has mos VMs not in the root of data stores) is like the bold italic portion here:

[root@X9SRI3F-ESXi:/vmfs/volumes/608be754-f21556ad-1082-0025907d9d5c/VM] vm-rename.sh NVMe980PRO_1TB/VM X9SRI-3F-W10P-NL-OFFICE X9SRI-3F-W10P-NL X9SRI-3F-W10P-NL-OFFICE
VOLNAME=NVMe980PRO_1TB/VM
DIRNAME=X9SRI-3F-W10P-NL-OFFICE
OLDNAME=X9SRI-3F-W10P-NL
NEWNAME=X9SRI-3F-W10P-NL-OFFICE
VM_DIRPATH=/vmfs/volumes/NVMe980PRO_1TB/VM/X9SRI-3F-W10P-NL-OFFICE
NW_DIRPATH=/vmfs/volumes/NVMe980PRO_1TB/VM/X9SRI-3F-W10P-NL-OFFICE
Failed to rename './X9SRI-3F-W10P-NL-flat.vmdk' to './X9SRI-3F-W10P-NL-OFFICE-flat.vmdk': The file specified is not a virtual disk (15)
renaming ./X9SRI-3F-W10P-NL-41260b40.vmem to ./X9SRI-3F-W10P-NL-OFFICE-41260b40.vmem
renaming ./X9SRI-3F-W10P-NL-41260b40.vmss to ./X9SRI-3F-W10P-NL-OFFICE-41260b40.vmss
renaming ./X9SRI-3F-W10P-NL-6a4b8f29.hlog to ./X9SRI-3F-W10P-NL-OFFICE-6a4b8f29.hlog
renaming ./X9SRI-3F-W10P-NL.nvram to ./X9SRI-3F-W10P-NL-OFFICE.nvram
renaming ./X9SRI-3F-W10P-NL.vmsd to ./X9SRI-3F-W10P-NL-OFFICE.vmsd
renaming ./X9SRI-3F-W10P-NL.vmx to ./X9SRI-3F-W10P-NL-OFFICE.vmx
renaming ./X9SRI-3F-W10P-NL.vmx.backup to ./X9SRI-3F-W10P-NL-OFFICE.vmx.backup
renaming ./X9SRI-3F-W10P-NL.vmxf to ./X9SRI-3F-W10P-NL-OFFICE.vmxf
renaming ./vmx-X9SRI-3F-W10P-NL-1093012288-1.vswp to ./vmx-X9SRI-3F-W10P-NL-OFFICE-1093012288-1.vswp
All Done. You now need to register X9SRI-3F-W10P-NL-OFFICE to the inventory.

There also was a renaming bug (see the italic line).

I managed to fix both that and added more documentation plus output.

Repositories and code

  1. Original:
  2. Fork with added VSAN functionality (see [Wayback/Archive] Revisions · Script to rename a virtual machine in ESXi 6):
  3. My fork of 2:
  4. My fix:

Code before modifying: [Wayback/Archive] gist.githubusercontent.com/jpluimers/fcc601dd41ac89f601a5174be92c841c/raw/e3683fbb6bdf1e73d65d2b784027c70cf42a5512/vm-rename

Code after modifying: [Wayback/Archive] raw.githubusercontent.com/jpluimers/vm-rename/master/vm-rename.sh.

Yes, that is not in a gist any more (see below why), it is now part of [Wayback/Archive] jpluimers/vm-rename: Script to rename a virtual machine in ESXi 6; fork from https://gist.github.com/jpluimers/fcc601dd41ac89f601a5174be92c841c as [Wayback/Archive] vm-rename/vm-rename.sh at master · jpluimers/vm-rename.

The reason was

Yesterday I described the workaround in Fork Gist to Repo on GitHub – Stack Overflow.

Queries

I found the original via [Wayback/Archive] script esxi rename vmx vmxf and related files – Google Search.

My start was [Wayback/Archive] script esxi duplicate vm and rename vmdk – Google Search which found:

  1. [Wayback/Archive] Renaming a virtual machine and its files in VMware ESXi (1029513) which has a PowerCLI script (that requires Windows to run PowerCLI on)
  2. [Wayback/Archive] Solved: How to clone a VM on a ESXI 6.5 server? – VMware Technology Network VMTN which pointed me to the next Google Search result :
  3. [Wayback/Archive] VMware esxi – Script to clone a VM without vSphere or vCenter. | GrangerX which I put in this gist:
  4. [Wayback/Archive] Script to create Linked Clones on ESXi | RedNectar’s Blog which is great, but way to complicate for my use case. It references a few other cool scripts though, and shows how to use Resource Pools in ESXi (which the Web-UI does not seem to support):
  5. [Wayback/Archive] [script] Cloning VMs using ESXi shell/admin console – Virtualizing Unraid – Unraid
  6. [Wayback/Archive] Script to clone a VM with free VMware ESXi – Rob Pomeroy (again: PowerCLI)

–jeroen

Posted in *nix, *nix-tools, ash/dash, ash/dash development, Development, ESXi6, ESXi6.5, ESXi6.7, Power User, PowerCLI, Scripting, Software Development, Virtualization, VMware, VMware ESXi | Leave a Comment »

While migrating VMs, I keep forgetting ESXi likes the text .vmdk file with a binary -flat.vmdk, where Fusion/ Workstation/Player like binary .vmdk file (and how to fix this)

Posted by jpluimers on 2024/01/02

I keep forgetting this, but ESXi likes the text .vmdk file with a binary -flat.vmdk, where Fusion/ Workstation/Player like binary .vmdk file.

Most sites that mention how to solve it love the cryptic parameters like -i  (software developers: when inventing command-line parameters, please use a more descriptive letter for a command) in stead of --clonevirtualdisk), so for instance Migrate VMware Workstation / Fusion VM to ESXi | Ming’s Blog comes up with

[root...] mv Windows-10-64-Enterprise-disk1.vmdk Windows-10-64-Enterprise-disk1.vmdk.fusion
[root...] vmkfstools -i Windows-10-64-Enterprise-disk1.vmdk.fusion Windows-10-64-Enterprise-disk1.vmdk
Destination disk format: VMFS zeroedthick
Cloning disk 'Windows-10-64-Enterprise-disk1.vmdk.fusion'...
Clone: 100% done.

is more readable as

[root...] vmkfstools --clonevirtualdisk Windows-10-64-Enterprise-disk1.vmdk.fusion Windows-10-64-Enterprise-disk1.vmdk

And yes, I wrote about this before, but keep forgetting it applies :

–jeroen

Posted in ESXi6, ESXi6.5, ESXi6.7, Fusion, Power User, Virtualization, VMware, VMware ESXi, VMware Workstation | Leave a Comment »