I went on and tried..
- Snapshot VM and check that our Veeam has a copy of the VM (in case of emergency).
- Shutdown VM.
- SSH to the ESXi-host.
- Remove audio-device from .vmx-file:
- vi <path-to-vm>\VMname.vmx
- Delete lines:
sound.autoDetect = "TRUE"
sound.virtualDev = "hdaudio"
sound.fileName = "-1"
sound.present = "TRUE"
sound.pciSlotNumber = "35"
- Find the Vmid for the affected VM:
- vim-cmd vmsvc/getallvms
- Reload configuration for the VM:
- vim-cmd vmsvc/reload <Vmid-of-VM>
Refresh your vCenter (or log out/in) and confirm that the device is now missing from the VM's settings.
Start the VM and confirm that everything is working properly.
I used following articles:
1 person found this helpful
I recently ran into this issue. Same scenario as the OP. If you go directly to ESXi on the host with the offending VM, the "HD Audio" device is listed in the settings there (I can only confirm on ESXi 6.7u3). All you have to do is power the VM off and remove the device as you would normally via the GUI. As soon a I did this, I was able to migrate the machines I was having issues with normally. I'm sure the marked solution does work, but this eliminates the headache of editing your vmx file manually.
I know the thread is pretty old at this point, but I wanted to put it here since it's the first search result I got when I started to research the issue.