vCenter Update Manager 6.7 Update 2 and later cannot update virtual machines with Virtual Hardware version 15
search cancel

vCenter Update Manager 6.7 Update 2 and later cannot update virtual machines with Virtual Hardware version 15

book

Article ID: 313870

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • When you attempt to scan any virtual machine with virtual hardware version 15, the scan operation fails.
  • In the vmware-vum-server-log4cpp.log you see:

[YYYY-MM-DDTHH:MM:SS 'SingleVMHardwareScanTask.SingleVMHardwareScanTask{726}' 139794540906240 ERROR] [singleVMHardwareScanTask, 365] VDB error while saving compliance state "ODBC error: (23503) - ERROR: insert or update on table "vci_vmhw_scanresults" violates foreign key constraint "fk_vci_sres_ref_versions"; Error while executing the query" is returned when executing SQL statement "INSERT INTO VCI_VMHW_SCANRESULTS(additional_details, host_vmhw_id, scanh_id, target_uid, target_vmhw_id) VALUES (?, ?, ?, ?, ?)"
[YYYY-MM-DDTHH:MM:SS 'SingleVMHardwareScanTask.SingleVMHardwareScanTask{726}' 139794540906240 ERROR] [singleVMHardwareScanTask, 432] Scanning error for VM VMNAME(vm-id): Error while scanning: VDB error while saving compliance state "ODBC error: (23503) - ERROR: insert or update on table "vci_vmhw_scanresults" violates foreign key constraint "fk_vci_sres_ref_versions"; Error while executing the query" is returned when executing SQL statement "INSERT INTO VCI_VMHW_SCANRESULTS(additional_details, host_vmhw_id, scanh_id, target_uid, target_vmhw_id) VALUES (?, ?, ?, ?, ?)"


Environment

VMware vCenter Update Manager 6.7.x
VMware vCenter Server 6.7.x

Cause

vSphere 6.7 Update 2 introduced a new version of virtual hardware 15 which vCenter Server and ESXi 6.7 Update 2 or later support. Currently Update Manager 6.7.x only supports up to vHW 14.

Resolution

As a workaround, please update the VM Hardware version manually.

Below are the steps to update the virtual hardware on multiple virtual machines:

You can upgrade virtual hardware on multiple virtual machines in a single operation using the following steps:

  • Login to vCenter Server
  • Navigate to Menu > Hosts and Clusters.
  • Select a host or a cluster from the inventory and click the Updates tab.
  • Select VM Hardware.
  • VM hardware version upgrade must be enabled on first use, Click Enable.     <====== If you get a message stating VM Hardware version upgrade must be enabled
  • The virtual machines on the host or cluster are listed.
  • To update the VM Compatibility and current status, click Scan Now.
  • Select the virtual machines whose hardware version you want to upgrade and click Upgrade to Match Host.
  • The Upgrade VM Hardware to Match Host dialog box appears.
  • (Optional) Expand Scheduling Options to postpone the upgrade.
  • You can select an option for virtual machines that are powered on, powered off or suspended.

    Note: By default, the upgrade follows immediately.
  • (Optional) To configure the use of snapshots, expand Rollback Options and change the default settings.
  • To enable or disable taking of snapshots of virtual machines before upgrading them, select or deselect the Take snapshot of VMs check box.
  • The option to take snapshots is selected by default.
  • Select a period for keeping the snapshots:

    Keep the snapshots indefinitely.
    Keep the snapshots for a fixed period.

  • Enter a snapshot name and, optionally, a description for the snapshot.
  • Include the virtual machine memory in the snapshot by selecting the respective check box.
  • Click Upgrade to Match Host.
  • The selected virtual machines are upgraded and the status is displayed in the Recent Tasks pane.


For more details, please refer the below KB article:
Upgrading a virtual machine to the latest hardware version (multiple versions) .