How to Resolve VMware VIX Error Code 21009

When using VMware for virtual machine management and operation, many users may encounter an error message like "vmware vix error code 21009." This issue often hinders the normal upgrade of VMware Tools. How to effectively resolve this issue?

Crystal

By Crystal / Updated on February 20, 2025

Share this: instagram reddit

VMware VIX Error Code 21009

When you upgrade VMware Tools on a virtual machine running on VMware ESXI 5.5 or higher, you may encounter an automatic upgrade failure of VMware Tools, displaying the error message "vix error code = 21009."

In the virtual machine, there will be specific files, such as in the Microsoft Windows system, the file path is "C:\windows\ \temp\ \vmware-system\ \vmwaretoolupgrader.exe";

This article will delve into the error, its causes, and detailed solutions, helping you to smoothly resolve the VMware vix error code 21009.

vmware vix error code 21009

Why Does VMware VIX Error Code 21009 Occur

According to feedback and technical documentation, here are 2 main causes of Error Code 21009:

(1) Residual old upgrade files

A common cause of this issue is outdated upgrade files left over from a previous VMware Tools upgrade. These residual files may interfere with the current upgrade process, causing the upgrade to fail and resulting in a 21009 error code.

(2) The folder is missing in the target virtual machine's guest operating system.

During the upgrade process, the installer will copy some binary files and installation files to the "C:\windows\temp\vmware - system" folder. If this folder is missing in the guest operating system of the target virtual machine, the installation will fail, resulting in a vix error code 21009 error.

How to Resolve VMware VIX Error Code 21009 [2 Methods]

Here are the detailed solutions for Error Code 21009:

Method 1. Resolving Residual Old Upgrade Files

System version update fix: This issue has been resolved in VMware ESXi 6.0 Update 1 and VMware ESXi 5.5 Update 3b versions. If your system version is lower than the above versions, you might consider upgrading to obtain the official fix.

Steps to manually resolve VMware VIX error code 21009:

1. Restart the virtual machine to clear temporary error states, creating favorable conditions for subsequent upgrade operations.

2. Manually upgrade VMware Tools:

Windows system: Log in to the virtual machine as an administrator, open an elevated command prompt, and run the command:

attrib -r C:\windows\temp\vmware - system\vmwaretoolupgrader.exe

Red Hat Enterprise Linux system: Log in to the virtual machine as an administrator user, and use the terminal or graphical user interface to delete the file "/tmp/vmware - root". For multiple virtual machines, you can use the PowerCLI command Invoke-VMScript to automate these solutions.

Method 2. Fixing Missing Folders

1. Check automatic tasks and operations: First, it is necessary to confirm whether there are any automatic tasks or operations in the client's operating system that will delete folders under "C:\windows\temp\".

If there are any, the settings of these tasks or operations need to be adjusted to avoid accidentally deleting critical folders.

2. Restart the virtual machine and confirm the folder creation: Restart the target virtual machine and check if the "C:\windows\temp\vmware - system" folder is recreated. Once the folder is available, perform the VMware Tools upgrade operation again.

Reliable Choice for VMware Virtual Machine Backups

In a VMware ESXi virtual machine environment, data security is crucial, and AOMEI Cyber Backup is an excellent VMware ESXi backup software. It has efficient data backup and recovery features, enabling you to quickly back up VMware ESXi virtual machines, preventing data loss due to unexpected events such as system failures, upgrade errors (like the VMware vix error code 21009 that causes upgrade failures), and hardware damage.

With this professional backup tool, you can schedule comprehensive backup tasks for free.

Agentless Backup: Backup virtual machines at host level without installing agent on each VM, reducing O&M costs.
Automate VMware Backup: Run VM backup tasks automatically to offer continuous VM protection and reduce human errors.
Instant Disaster Recovery: Once the VMware crashes, quickly restore VMware to normal state and easily migrate VM to another host.
Role-Assignment: allow one administrator to create sub-accounts with limited privilege, effectively reduce administration cost and manual errors.

Please hit the button below to download and use AOMEI Cyber Backup for free:

Download FreewareVMware ESXi and Hyper-V
Secure Download

*You can choose to install this VM backup software on either Windows or Linux system.

Safeguard VMware ESXi Backup for Free

1. Click Backup Task >> Create New Task to schedule VMware ESXi backups.

create VMware ESXi Backup

2. In the opened wizard, enter the Task Name and select VMware ESXi Backup.

In Device Name section, select one or more virtual machines to back up simultaneously.

select multiple virtual machines

In Target section, specify a location to store VM backups such as network or local place. If you connect to NAS, you can easily backup VM to NAS.

Backup Target

In Schedule section, enable schedule task and choose full/incremental/differential backup, then specify backup time and frequency as daily/weekly/monthly.

schedule VMware backup

Click Start Backup. From the drop-down menu, you can decide to perform backup later or now.

3. Restore: You can restore the whole VM and virtual environment within a few clicks. It doesn’t require any complicated reinstallation and configuration.

✍ While the Free Edition covers most of the VM backup needs, you can also upgrade to Premium Edition to enjoy:
✦ Batch VM Backup: Batch backup large numbers of VMs managed by vCenter Server or standalone ESXi hosts.
✦ Backup Cleanup: Configure retention policy to auto delete the old backup files and save storage space.
✦ Restore to new location: Easily make a clone of a virtual machine in the same or another datastore/host, without reinstalling or configuring a new VM.

Restore to new location

Whether you are an enterprise-level user or a personal tech enthusiast, AOMEI Cyber Backup can be a reliable assistant in safeguarding data security within a VMware ESXi virtual machine environment.

Conclusion

When you get the "VMware vix error code 21009" issue, don't freak out. In most situations, you can successfully fix the problem and finish the VMware Tools upgrade without any problems, guaranteeing the virtual machine's stable operation and performance optimization, by closely examining the error symptoms, examining the potential causes, and carefully following the corresponding solutions step by step.

Crystal
Crystal · Editor
Crystal is an editor from AOMEI Technology. She mainly writes articles about virtual machine. She is a positive young lady likes to share articles with peolpe. Off work she loves travelling and cooking which is wonderful for life.