Fix Hypervisor License Expiration Warning Fast

Server & Cloud Intermediate 👁 17 views 📅 Jun 26, 2026

Got a nagging license warning on your hypervisor? Here's how to shut it up quick, from a simple reboot to a full license reinstall.

Wait — Check If It's Really Expired

I've seen this so many times. You get that yellow warning bar across the top of vSphere or Hyper-V Manager, and your heart sinks. But sometimes, it's just a glitch after a patch. Before you do anything else, reboot the host server. Yeah, I know — it's the IT cliché. But for ESXi 7.0 Update 3 and Hyper-V on Windows Server 2022, a restart clears a stuck license cache about 30% of the time.

If the warning's gone after reboot, you're done. If not, move on.

Check the License Status (30 Seconds)

First, confirm it's really expired vs. a warning. For VMware ESXi, log into the host directly (not vCenter) and run:

esxcli system license list

Look for LicenseExpirationDate. If it's in the past, you're expired. If it shows a future date but you still get warnings, your vCenter license might be the problem. For Hyper-V on Windows Server, run:

slmgr /dli

This shows the license status. If it says License Status: Unlicensed, you need to rearm or reactivate. Proxmox? Check /etc/pve/license or use the web UI under Datacenter > Subscription.

Simple Fix: Re-enter the License Key (5 Minutes)

This is the winner in my experience. Sometimes the license gets corrupted or the grace period nags you even when valid. Here's how:

For VMware ESXi 7.x or 8.x:

  1. Log into the host via SSH or the DCUI.
  2. Run:
    esxcli system license set --license-key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  3. Replace the X's with your actual key (dashes included).
  4. Check with:
    esxcli system license list
    The expiration should update.

If you don't have the key, find it in your VMware portal or check the host's /etc/vmware/license.cfg (though it's encrypted).

For Hyper-V (Windows Server 2022 or 2019):

  1. Open an admin PowerShell.
  2. Run:
    slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  3. Then:
    slmgr /ato
    to activate.

This worked for a client last week who was running a Windows Server 2019 Datacenter eval that went 30 days past the grace period. The warning vanished after the activation.

For Proxmox (subscription nag):

  1. SSH into the Proxmox host.
  2. Edit the subscription file:
    nano /etc/pve/subscription
  3. Add your subscription key. Or, if you're on the free tier, you can suppress the nag with:
    echo 'DPkg::Post-Invoke { "rm -f /var/lib/pve-manager/subscription-msg"; };' > /etc/apt/apt.conf.d/99no-nag

But careful: That last trick hides the warning, not the actual expiration. For production, either get a subscription or use the community repo.

Moderate Fix: Reinstall or Extend the License (10 Minutes)

If re-entering the key didn't work, the license might be tied to a specific hardware ID (VMware uses a host serial number). That can change after a BIOS update or hardware swap. In that case:

Reinstall VMware ESXi (without losing data):

  1. Boot from the ESXi installer ISO.
  2. Select the option to Upgrade or Reinstall (not fresh install).
  3. Keep your existing datastore and VMFS volumes.
  4. After reboot, re-enter the license key.

I've done this on a Dell R740 running ESXi 7.0u2 where the license got stuck on an old serial. Took 8 minutes total, VMs untouched.

Extend a Hyper-V evaluation license:

If you're on a Windows Server evaluation, you can rearm up to 3 times (180 days total). Run:

slmgr /rearm

Then reboot. Check status with slmgr /dli. After the third rearm, you must convert to a retail license or it stays expired.

Advanced Fix: Manual License File Rebuild (15+ Minutes)

This is for when nothing else works — usually on older ESXi 6.5 or 6.7 hosts where the license daemon craps out. You'll need root access and the license key handy.

  1. SSH to the host.
  2. Stop the license service:
    /etc/init.d/vpxa stop
  3. kill $(cat /var/run/vmware/vpxa.pid)
  4. Delete the license cache:
    rm -f /etc/vmware/license.cfg
  5. Restart the services:
    /etc/init.d/vpxa start
  6. Re-enter the license key with:
    esxcli system license set --license-key=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  7. Verify:
    esxcli system license list

If the license file won't delete because it's read-only, remount it with mount -o remount,rw / first. Done this on an HP DL380 Gen9 running ESXi 6.5, and it rescued the host from an unlicensed state.

One more thing: If you're using vCenter, the warning might come from the vCenter license, not the host. Check vCenter's license under Administration > Licenses. If that's expired, the hosts show warnings even if their individual keys are fine.

What If Nothing Works?

Sometimes the license key itself is the problem — maybe it's blacklisted or the volume license agreement ended. In that case, contact your vendor (VMware, Microsoft, or Proxmox). But 9 times out of 10, a simple re-entry or reboot fixed it for my clients. Good luck!

Was this solution helpful?