Search the VMware Knowledge Base (KB)
View by Article ID

Setting the license key from the command line (1009244)

  • 8 Ratings


  • When performing a mass deployment, scripted installation of VMware Fusion, the resulting installation does not have the serial number in the installation.

  • A command similar to this may have been used:

    installer -pkg /Volumes/files/Install\ VMware\
    Resources/Install\ VMware\ Fusion.pkg -target /

  • The product installs, however, the the license.txt file fails to enter the serial number for the installation.


Use these commands to set the serial number after the installation is finished, or in an installation script:

Fusion 4.x and later

echo <valid Fusion 4 or Fusion 5 license key (25 character key plus the hyphens)> > /Applications/VMware\'License Key.txt'

sudo /Applications/VMware\'Initialize VMware Fusion.tool' set

Fusion 3.x

/Library/Application\ Support/VMware\ Fusion/vmware-licenseTool enter <serialNumber> <name> <companyName> <productVersionString> <productName> <dormantPath>

All the fields can be left blank except serialNumber, productVersionString, and productName.


If Fusion 3.1.3 were being deployed, the completed command would look like this:

./vmware-licenseTool enter XXXXX-XXXXX-XXXXX-XXXXX-XXXXX "" "" "3.1.3" "VMware Fusion for Mac OS" ""

where XXXXX-XXXXX-XXXXX-XXXXX-XXXXX is your Fusion 3 license key.

Fusion 2.x

/Library/Application\ Support/VMware\ Fusion/vmware-vmx --new-sn <serialNumber>

Each value between the angle brackets should be filled in with your desired value with quotations before and after the value.

Additional Information

For more information, see the Fusion Mass Deployment instructions guide.

Update History

06/25/2010 - Added Fusion 3 command. 09/16/2011 - Added Fusion 4 information.

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


  • 8 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)

Please enter the Captcha code before clicking Submit.
  • 8 Ratings