VMware vSphere Common Issues Summary (Ⅳ)

1. Compliance Error when Applying Host Profiles

Issue:

Applying Host Profiles to a host fails with the following errors:

  1. Specification state absent from host: device ‘<datastore>’ state needs to be set to ‘on’
  2. Host state doesn’t match specification: device ‘<datastore>’ needs to be reset
  3. Specification state absent from host: device ‘<datastore>’ Path Selection Policy needs to be set to ‘VMW_PSP_FIXED’
  4. Host state doesn’t match specification: device ‘<datastore>’ Path Selection Policy needs to be set to default for claiming SATP

Analysis:

This is caused by the PSA (Pluggable Storage Architecture) component.

Solution:

  1. Right-click Host Profiles and select Enable/Disable Profiles configuration option.
  2. Expand “Storage Configuration” and then expand “Pluggable Storage Architecture”.
  3. Uncheck “PSA Device Configuration”.
  4. Expand “Native Multi-Pathing (NMP)” and then expand “PSP and SATP configuration for NMP device”.
  5. Uncheck “PSP configuration for” and click OK.

2. Resolving VM/Storage Performance Degradation and High VM Disk Latency Due to IOPS

Issue:

  1. Low VM performance.
  2. High disk latency during backups.
  3. High vmdk disk latency.

Analysis:

These issues are usually due to insufficient IOPS (Input/Output Per Second) for the VM or IOPS below 30.

Solution:

  1. Understand what IOPS is: IOPS is a critical metric for measuring disk and storage performance. Higher IOPS can significantly improve system performance.
  2. Calculate the IOPS for each VM: Determine the total IOPS available from the storage and divide by the number of VMs to get the IOPS per VM.
  3. Account for additional IOPS consumption during backups, and use tools like I/O meter to test IOPS if necessary.

3. VM Fails to Power On Due to Missing or Locked Files

Issue:

  1. VM fails to power on.
  2. Errors encountered include:
    • Unable to open Swap File.
    • Unable to access a file since it is locked.
    • Unable to access Virtual machine configuration.
  3. /var/log/vmkernel contains warnings about swap file lock and initialization failures.
  4. Errors connecting to the VMX file.
  5. VM hangs at 95% during power on.
  6. New VM deployed from template cannot be powered on.
  7. Console power status conflicts reported between vCenter Server and ESXi/ESX host.

Analysis:

The issue is often due to file corruption or locked files. Common VM files include:

  • *.vswp
  • *-flat.vmdk
  • *-delta.vmdk
  • *.vmx
  • *.log

Solution:

  1. Identify locked files:
    • Use vSphere Client to log into the ESXi/ESX host or vCenter Server.
    • Locate the VM in the datastore.
    • Check vmware.log for errors.
  2. Delete locked files:
    • Use vmkfstools -D /vmfs/volumes/<UUID>/<VM directory>/<locked file> to report the MAC address.
    • Check /var/log/vmkernel for the host locking the file.

4. Storage vMotion Fails with “CBTMotion” Error

Issue:

  1. Storage vMotion fails.
  2. Error message: A general system error occurred: Storage VMotion failed to copy one or more of the VM’s disks. Please consult the VM’s log for more details, looking for lines starting with “CBTMotion-“.
  3. /var/log/vmware/hostd.log contains similar error messages.

Analysis:

This is likely due to the VM’s hardware version being too old.

Solution:

Power off the VM, right-click and select Upgrade Virtual Machine Hardware.

5. Adding LUN Results in HostDatastoreSystem.QueryVmfsDatastoreCreateOptions Error

Issue:

The system scans the Devices LUN but fails to add it, displaying the error: HostDatastoreSystem.QueryVmfsDatastoreCreateOptions.

Analysis:

This issue is usually due to the LUN size being too large. VMware ESXi/ESX Server supports a maximum LUN size of 2TB-512Byte.

Solution:

  1. If the LUN is already set to 2TB, adjust it to around 1.88TB and try again.
  2. For new LUN planning, strictly follow official documentation and design parameters, recommending around 1.88TB per LUN.

6. vCenter Converter Fails to Push Agent: Converter Agent Installer/Uninstaller Failed

Issue:

  1. vCenter Converter fails to push the Agent to Windows Server 2003.
  2. Error message: Converter Agent installer/uninstaller failed on ‘xxxxxxxxx’.
  3. converter-server.log contains similar errors.

Analysis:

Possible causes include:

  1. Port 445 not open.
  2. Previously installed and uninstalled Agent.
  3. Windows Server service not started, causing IPC$ connection failure.
  4. Firewall blocking.

Solution:

  1. Ensure port 445 or NetBIOS protocol is operational.
  2. Disable the firewall during the conversion.
  3. If the issue persists, use Converter Standalone version or Converter CD for cold cloning.

7. Insufficient Datastore Heartbeating When Enabling HA in vSphere 5.0

Issue:

Configuring HA for ESXi 5.0+vCenter 5.0 results in insufficient Datastore Heartbeating error.

Analysis:

vSphere 5.0 HA has been rewritten to include Datastore Heartbeating for network partition heartbeat support.

Solution:

  1. Add more storage for heartbeat detection, or
  2. Ignore the issue by adding the parameter:
    • Log into vCenter Server 5.0 via vSphere Client.
    • Right-click HA Cluster, select Edit, and add the parameter das.ignoreinsufficienthbdatastore. The default value is false.

8. “Updating” Issue When Logging into ESXi Host via vSphere Client

Issue:

Logging into vCenter Server 4.1 via vSphere Client is normal, but logging into ESXi host results in an “Updating” prompt.

Analysis:

The client needs updating via ‘vSphereclient.vmware.com’, indicating an issue with the client version.

Solution:

Install a higher version of the vSphere Client.

9. Red Flag 32-bit Linux “udevu” Error Prevents System Entry

Issue:

System entry is blocked by a “udevu” prompt, requiring Ctrl+C to proceed.

Analysis:

Virtual machine driver issues are suspected since the issue does not occur on physical machines.

Solution:

Download and install the latest VMware tools from the official website to resolve the issue.

Stay tuned for a sequel to the VMware vSphere Common Issues Summary!

Leave a Reply

Your email address will not be published. Required fields are marked *