VMWare: Getting "No space left on device" when executing efibootmgr or mokutil command to add entries

Solution Verified - Updated -

Issue

  • When executing efibootmgr -C command to add a boot entry, the following error message is displayed

    # efibootmgr -C -L "TEST Red Hat Enterprise Linux" -d /dev/sda -o 1 -l "\\EFI\\redhat\\shimx64.efi"
    Could not prepare Boot variable: No space left on device
    
  • When executing mokutil --import command to import a certificate, the following error message is displayed

    # mokutil --import ./<cert>.cer --root-pw
    Failed to enroll new keys
    

Environment

  • Red Hat Enterprise Linux 7 and later
    • VMWare VMs in UEFI mode

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content