Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

Products and Accounts

Support

Knowledge

Communities

Success

Learning

My Subscriptions

Loading

Knowledge Base

Starting a virtual machine generates a syntax error (1003597)

Last Updated: 2/18/2021Categories: TroubleshootingTotal Views: 36835Language:
Chinese (Simplified)Portuguese (European)JapaneseEnglish

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Details

The virtual machine fails to power on.

The .vmx file contains garbled data or is zero bytes long or is corrupted.

You see the error:

"<VM_Name>.vmx" line <x>: syntax error

Solution

This issue occurs if the .vmx file is corrupted. To resolve this issue, either build a new .vmx file or manually repair the existing file.

Restore from backup

If available, restore the .vmx file from the backup.

Creating a new .vmx file

To create a new .vmx file:

Locate the virtual machine files and delete the .VMX file.

Open the VMware product or VMware Infrastructure Client.

Click File > New > Virtual Machine (if listed).

Follow the new virtual machine wizard making sure to select the Custom configuration installation option. When prompted to create a new virtual hard disk file, choose to specify an existing file. Specify the existing .vmdk file.

Note: For related information when using a Fusion virtual machine, see Creating a virtual machine from an existing virtual disk in Fusion (1023555).

Manually rebuilding the .vmx file

It is possible to reconstruct the corrupted .vmx file provided a copy of the vmware.log is available where the virtual machine started correctly.

To manually rebuild the .vmx file:

Locate the virtual machine files. For Fusion, see Locating the virtual machine bundle in VMware Fusion (1007599)

Open the vmware.log file where the virtual machine started successfully with a text editor. In Macs, use Text Edit.

Find the line in the log file that contains: --- CONFIGURATION. Beyond this line -- until the next line that contains --- -- are the complete contents of the .vmx file as it was parsed by the vmx process.

Copy the text into a new .vmx file, overwriting the damaged .vmx file.

From the new file, clean the logging output from the text to restore the original configuration.

For example, change the line that reads:

vmx| DICT svga.vramSize = 134217728

To:

svga.vramSize = "134217728"

Save the file and start the VMware product or re-register the virtual machine in an ESX host.

You can also refer to the article Rebuilding the virtual machine's .vmx file from vmware.log (1023880)

Note:The old vmx file can be deleted/removed.

Additional Information

For translated versions of this article, see:

Español:

Português: A inicialização de uma máquina virtual gera um erro de sintaxe (2081361)

日本語: 仮想マシンを起動すると構文エラーが発生する (2080068)

简体中文: 启动虚拟机时生成语法错误 (2079033)

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)Portuguese (European)JapaneseEnglish

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Workstation

VMware Fusion

Related Versions:

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant