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

My Subscriptions

Loading

Knowledge Base

Corrupted esx.conf file prevents network settings from displaying (1004451)

Last Updated: 3/20/2024Categories: How toTotal Views: 36077Language:
Chinese (Simplified)JapaneseEnglish

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

The command esxcfg-vswitch -l does not always produce any output.

The file /etc/vmware/esx.conf is corrupted; it is blank or is missing information

vMotion fails

VMware Infrastructure (VI) Client does not display the network layout on the Configuration tab

Network changes (such as add portgroup or vswitch) do not show in the VI Client connection

If you refresh network settings, you see the error:

object or item referred could not be found

ESX host network settings do not display in VI Client, even though the correct information is displayed by the commands:

esxcfg-vswitch -l

esxcfg-vswif -l

esxcfg-vmknic -l

SSH Connection to the ESX host is working

VMware High Availability (HA) fails

The hostd logs contain an entry similar to:

[2008-08-04 11:50:56.177 'NetworkProvider' 3076445088 error] An error occurred while fetching virtual switch: Unable to find Vswitch configuration for vSwitch0

The vmkernel logs contain an entry similar to:

[33555066] for VNIC vswif1
[2008-08-04 11:41:23.730 'NetworkProvider' 3076424608 error] Cannot find portid
Aug 4 11:46:06 bct1esx02 vmkernel: 15:01:11:46.798 cpu2:1037)Tcpip_Support: 3367: ether attach complete
Aug 4 11:46:08 bct1esx02 vmkernel: 15:01:11:48.810 cpu0:1024)Tcpip_Support: 2723: index = 10049264, ip_addr = 0xe73a260a, netmask = 0xfeffff
Aug 4 11:46:08 bct1esx02 vmkernel: 15:01:11:48.810 cpu0:1024)WARNING: Tcpip_Support: 2756: Failed to set netmask. (error = 0x11)
Aug 4 11:46:08 bct1esx02 vmkernel: 15:01:11:48.836 cpu0:1024)VMNIX: NetCos: 206: checking fea9,ffff,0
Aug 4 11:46:08 bct1esx02 vmkernel: 15:01:11:48.836 cpu0:1024)VMNIX: NetCos: 208: dup
Aug 4 11:46:08 bct1esx02 vmkernel: 15:01:11:48.836 cpu0:1024)Tcpip_Support: 2823: add dstAddr=0xfea9, netMask=0xffff, gwAddr=0x0 ifName=0x0, ifNameLen=0
Aug 4 11:46:08 bct1esx02 vmkernel: 15:01:11:48.836 cpu0:1024)Tcpip: 3172: change route failed

Cause

This issue occurs when the esx.conf file is corrupted.

Resolution

To resolve this issue, restore the uncorrupted file. If you are unable to restore the file, you must rebuild it.

Restoring the esx.conf file for ESX 3.x and 4.x

To restore the esx.conf file, copy the file from /var/log/oldconf with the commands:

mv /etc/vmware/esx.conf /etc/vmware/esx.conf-backup

cp /var/log/oldconf/esx.conf /etc/vmware/esx.conf

service mgmt-vmware restart

If the backup file does not exist in /var/log/oldconf or if that file is also corrupted, you must rebuild it.

Rebuilding the esx.conf file on ESX 3.x

To rebuild the esx.conf file on ESX 3.x:

Connect to the ESX host with an SSH client or connect directly to the ESX console using KVM.

Back up the corrupted esx.conf file using the command:

# cp esx.conf /tmp/esx.bad

Copy the image to a temporary directory using a command similar to:

# cp /boot/initrd-2.4.21-47.0.1.ELvmnix.img /tmp

Note:The initrd version of the image is different than the ESX 3.x version. If the version in the cp /boot/initrd-2.4.21-47.0.1.ELvmnix.img /tmp command is different, cd to the /boot directory and run the ls command to see your version.

Uncompress the image file using the command:

# cd /tmp
# gunzip -dc initrd-2.4.21-47.0.1.ELvmnix.img > initrd.unziped

Make a directory and mount the uncompressed image using the commands:

# mkdir initrd
# mount -o loop initrd.unziped initrd

Copy the esx.conf file from the mounted directory to /etc/vmware/ using the commands:

# cd /tmp/initrd/etc/vmware
# cp esx.conf /etc/vmware/

Unmount the directory mounted in step 5 using the commands:

# cd /tmp
# umount /tmp/initrd

Restart the management agents for the changes to take effect. For more information, see Restarting the Management agents on an ESX Server (1003490).

Reconnect to your ESX host using VI Client. The network layout displays on the Configuration tab. If it does not, re-add the host in VI Client and populate the information again.

When the network layout displays correctly, backup the uncorrupted esx.conf file for future use.

Rebuilding the esx.conf file on ESX 4.x:

To rebuild the esx.conf file on ESX 4.x:

Copy the boot image from the /boot folder to the /tmp folder with the command:

# cp /boot/initrd-2.4.21-47.0.1.ELvmnix.img /tmp

Decompress the .img file and output the file to /tmp/initrd with the command:

# cd /tmp
# mkdir initrd
# cd initrd/
# gunzip -c ../initrd-2.6.18-128.ESX.img | cpio -id

Copy esx.conf to /etc/vmware with the command:

# cd /tmp/initrd/etc/vmware
# cp esx.conf /etc/vmware

Update the boot configuration with the command:

# cd /tmp
# esxcfg-boot -b

Reboot the host with the command:

# reboot

Note: Network settings may appear before rebooting, but VMware recommends rebooting at your earliest convenience.

Related Information

esx.conf ファイルが破損しているため、ネットワーク設定が表示されない
损坏的 esx.conf 文件阻止显示网络设置

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
コマンド ラインを使用して Cisco Virtual Ethernet Module (VEM) を ESX/ESXi ホストにインストールする (1013551)

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
VMware Consolidated Backup のインストール手順 (1010092)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-4 of 4

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware VirtualCenter

VMware vCenter Server

VMware ESX Server

Related Versions:

VMware VirtualCenter 2.5.x

VMware VirtualCenter 2.0.x

VMware vCenter Server 4.1.x

VMware vCenter Server 4.0.x

VMware ESX Server 3.5.x

VMware ESX Server 3.0.x

VMware ESX 4.1.x

VMware ESX 4.0.x

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