VMware Cloud Community
sanshis
Enthusiast
Enthusiast
Jump to solution

ReconfigVM_Task CD/DVD backing - "Incompatible device backing specified for device '0'."

Hi All

I am trying to reconfigure VM using "ReconfigVM_Task". if CD/DVD is connected to the VM i want it to disconnect and change it to passthrough client device.
i know this can be done in following way and its working fine for me..

Get-CDDrive $_.Name | Set-CDDrive -NoMedia -Connected:$false -StartConnected:$false  -Confirm:$false

but i like/want to do it in quicker manner.

please guide me towards resolution. the error i am getting is "Incompatible device  backing specified for  device '0'." at vCenter there is no error in powercli console


i am suspecting following line in attached code is causing the real problem..

$spec.deviceChange[0].device.backing.DeviceName = $dev.backing.DeviceName

Thanks in Advance

-- Kind Regards

Sanshis

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try with the attached version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Try with the attached version


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
sanshis
Enthusiast
Enthusiast
Jump to solution

Thanks Luc;
that worked...

0 Kudos