Posted On August 25, 2022

Incomplete VM Configuration

kimconnect 0 comments
blog.KimConnect.com >> Virtualization >> Incomplete VM Configuration

Quick Script:

# fixIncompleteVmConfig.ps1

$IncompleteVMConfig=Get-SCVirtualMachine|?{$_.StatusString -eq 'Incomplete VM Configuration'}
if($IncompleteVMConfig.count){
  foreach($vm in $IncompleteVMConfig){
    try{
      write-host "Fixing $($vm.Name)..."
      $vm|refresh-vm
      $dvd=Get-SCVirtualDVDDrive -VM $vm
      if ($null -ne $dvd.Connection -and $dvd.Connection -ne 'None') {
        Set-SCVirtualDVDDrive -VirtualDVDDrive $dvd -NoMedia
      }      
    }catch{
      write-warning $_
    }
  }
}

Errors related to this issue:

refresh-vm : VMM could not find the specified path C:\win10iso\KMS
SW_DVD9_Win_Pro_10_20H2.2_64BIT_English_Pro_Ent_EDU_N_MLF_-2_X22-46651.ISO on the HYPERV-NODE25 server.
(Error ID: 2904, Detailed Error: The system cannot find the path specified (0x80070003))

Ensure that you have specified a valid file name parameter, and then try the operation again.

To restart the job, run the following command:
PS> Restart-Job -Job (Get-VMMServer localhost | Get-Job | where { $_.ID -eq "{fce569ca-bd01-4493-b27c-e3a433cee5f4}"})
At line:1 char:38
+ $incompleteVmConfigs|select -first 1|refresh-vm -force
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (:) [Read-SCVirtualMachine], CarmineException
+ FullyQualifiedErrorId : 2904,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.RefreshVmCmdlet

Resolution:

Remove the virtual DVD ISO that is being attached to the guest VM. 

Leave a Reply

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

Related Post

Windows Domain Controller restore Procedure

1. Terminate instance on AWS or Delete VM from VMWare 2. Perform these steps on…

VMware ESX Installation Procedures

1. Install ESX from ISO Putty Rufus MWware-VCSA-all-6.0.0-2562643.iso VMware-viclient.exe KVM console (ie. Lantronix) 2. Install…

Hyper-V: How to Convert IDE to SCSI on a Guest VM

Plan A: 1. Clone the existing Guest VM as a full backup2. While having target…