<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0' in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2952032#M110528</link>
    <description>&lt;P&gt;After troubleshooting it again, turns out the disk UID (naa.) characters are case sensitive as we are running our ESXI hosts on linux.&lt;/P&gt;&lt;P&gt;As soon as I used a lower case letter for the uid, the new-harddisk cmdlet worked a treat.&lt;/P&gt;&lt;P&gt;Thanks for your help troubleshooting this issue lucd... rookie mistake by me...&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 00:21:53 GMT</pubDate>
    <dc:creator>CODETL19</dc:creator>
    <dc:date>2023-02-02T00:21:53Z</dc:date>
    <item>
      <title>Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951040#M110408</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;When using the New-HardDisk cmdlet in an attempt to map an RDM disk to a VM, it fails with the below error:&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;- "Incompatible device backing specified for device '0'."&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I have mapped a disk from an external IBM storage unit to he ESXI hosts. The disk shows on the ESXI hosts in the cluster.&lt;/P&gt;&lt;P class=""&gt;Here is an example of my script:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;[hashtable]$unassignedDisks = @{&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 1Disk = "naa.600507681081001BA8000000000006FC";&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 2Disk = "naa.600507681081001BA8000000000006F8";&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 3Disk = "naa.600507681081001BA8000000000006F9";&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 4Disk = "naa.600507681081001BA8000000000006FA";&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 5Disk = "naa.600507681081001BA8000000000006FB"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;&lt;STRONG&gt;$vm = Get-VM "VM1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $SCSIControllers = Get-ScsiController -VM $vm&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $SCSIController1 = $SCSIControllers | Where-Object {$_.ExtensionData.BusNumber -eq 1}&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $SCSIController2 = $SCSIControllers | Where-Object {$_.ExtensionData.BusNumber -eq 2}&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $SCSIController3 = $SCSIControllers | Where-Object {$_.ExtensionData.BusNumber -eq 3}&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host "Creating Disk and SCSI Controller 1"&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;New-HardDisk -VM $vm -DeviceName "/vmfs/devices/disks/$($UnassignedDisks.1disk)" -Datastore "MY_DATASTORE" -DiskType RawPhysical -Controller $SCSIController1&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Not quite sure where I am going wrong here, all the parameters look to be correctly set, yet it always fails with the error listed above.&lt;/P&gt;&lt;P class=""&gt;I have seen that this may be a bug with PowerCLI, is it still the case now?. Those posts were years old.&lt;BR /&gt;I also saw a reference to a lucd fix by using the add-hd function, but it still returns the same error regarding the incompatible device backing.&lt;/P&gt;&lt;P class=""&gt;Here is my attempt to use add-hd&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;add-HD -VMName $vm -DSname "MY_DATASTORE" -Filename "/vmfs/devices/disks/$($UnassignedDisks.1disk)" -SCSIcntrl $SCSIController1&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;I would greatly appreciate some guidance here. Thanks!&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 01:17:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951040#M110408</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-01-27T01:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951065#M110410</link>
      <description>&lt;P&gt;How did you specify the &lt;SPAN&gt;BusSharingMode&lt;/SPAN&gt; on the SCSI controller?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 07:36:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951065#M110410</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-01-27T07:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951258#M110435</link>
      <description>&lt;P&gt;I created the SCSI controllers in the GUI, with a setup of VMWAREParavirtual and Physical Bus sharing.&lt;/P&gt;&lt;P&gt;I also can replicate this error if I pipe new-hard disk into new-scsicontroller with the same settings&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 21:55:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951258#M110435</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-01-27T21:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951259#M110436</link>
      <description>&lt;P&gt;Can you add the RDM form the Web GUI?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 22:22:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951259#M110436</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-01-27T22:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951663#M110472</link>
      <description>&lt;P&gt;Yes I can, with absolutely no issues. Just by hitting 'Add New Device' -&amp;gt; 'RDM Disk'.&lt;BR /&gt;When I do it via the GUI, I set the RDM disk file to our desired datastore for the pointer files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 06:16:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951663#M110472</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-01-31T06:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951671#M110473</link>
      <description>&lt;P&gt;Strange.&lt;BR /&gt;Are there any more details about the error in the vpxd log?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 06:53:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951671#M110473</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-01-31T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951831#M110502</link>
      <description>&lt;P&gt;Yeah, here is what I found:&lt;/P&gt;&lt;P&gt;-- ERROR task-3926929 -- vm-372898 -- vim.VirtualMachine.reconfigure: vim.fault.InvalidDeviceBacking:&lt;BR /&gt;--&amp;gt; Result:&lt;BR /&gt;--&amp;gt; (vim.fault.InvalidDeviceBacking) {&lt;BR /&gt;--&amp;gt; faultCause = (vmodl.MethodFault) null,&lt;BR /&gt;--&amp;gt; faultMessage = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; property = "backing.deviceName",&lt;BR /&gt;--&amp;gt; deviceIndex = 0&lt;BR /&gt;--&amp;gt; msg = "Incompatible device backing specified for device '0'."&lt;BR /&gt;--&amp;gt; }&lt;BR /&gt;--&amp;gt; Args:&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;--&amp;gt; Arg spec:&lt;BR /&gt;--&amp;gt; (vim.vm.ConfigSpec) {&lt;BR /&gt;--&amp;gt; changeVersion = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; name = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; version = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; createDate = "2023-01-12T01:45:56.272724Z",&lt;BR /&gt;--&amp;gt; uuid = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; instanceUuid = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivNodeWorldWideName = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivPortWorldWideName = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivWorldWideNameType = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivDesiredNodeWwns = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivDesiredPortWwns = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivTemporaryDisabled = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivOnNonRdmDisks = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; npivWorldWideNameOp = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; locationId = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; guestId = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; alternateGuestName = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; annotation = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; files = (vim.vm.FileInfo) {&lt;BR /&gt;--&amp;gt; vmPathName = "ds:///vmfs/volumes/5f16a8be-14e71f3e-3dcc-0025b531aa25/VMNAME/VMNAME.vmx",&lt;BR /&gt;--&amp;gt; snapshotDirectory = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; suspendDirectory = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; logDirectory = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; ftMetadataDirectory = &amp;lt;unset&amp;gt;&lt;BR /&gt;--&amp;gt; },&lt;BR /&gt;--&amp;gt; tools = (vim.vm.ToolsConfigInfo) null,&lt;BR /&gt;--&amp;gt; flags = (vim.vm.FlagInfo) null,&lt;BR /&gt;--&amp;gt; consolePreferences = (vim.vm.ConsolePreferences) null,&lt;BR /&gt;--&amp;gt; powerOpInfo = (vim.vm.DefaultPowerOpInfo) null,&lt;BR /&gt;--&amp;gt; numCPUs = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; vcpuConfig = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; numCoresPerSocket = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; memoryMB = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; memoryHotAddEnabled = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; cpuHotAddEnabled = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; cpuHotRemoveEnabled = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; virtualICH7MPresent = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; virtualSMCPresent = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; deviceChange = (vim.vm.device.VirtualDeviceSpec) [&lt;BR /&gt;--&amp;gt; (vim.vm.device.VirtualDeviceSpec) {&lt;BR /&gt;--&amp;gt; operation = "add",&lt;BR /&gt;--&amp;gt; fileOperation = "create",&lt;BR /&gt;--&amp;gt; device = (vim.vm.device.VirtualDisk) {&lt;BR /&gt;--&amp;gt; key = -100,&lt;BR /&gt;--&amp;gt; deviceInfo = (vim.Description) null,&lt;BR /&gt;--&amp;gt; backing = (vim.vm.device.VirtualDisk.RawDiskMappingVer1BackingInfo) {&lt;BR /&gt;--&amp;gt; fileName = "ds:///vmfs/volumes/6149dadc-dd45d8de-3e32-0025b531aa2b/VMNAME/VMNAME.vmdk",&lt;BR /&gt;--&amp;gt; datastore = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; backingObjectId = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; lunUuid = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; deviceName = "/vmfs/devices/disks/naa.600507681081001BA8000000000006F8",&lt;BR /&gt;--&amp;gt; compatibilityMode = "physicalMode",&lt;BR /&gt;--&amp;gt; diskMode = "persistent",&lt;BR /&gt;--&amp;gt; uuid = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; contentId = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; changeId = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; parent = (vim.vm.device.VirtualDisk.RawDiskMappingVer1BackingInfo) null,&lt;BR /&gt;--&amp;gt; deltaDiskFormat = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; deltaGrainSize = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; sharing = &amp;lt;unset&amp;gt;&lt;BR /&gt;--&amp;gt; },&lt;BR /&gt;--&amp;gt; connectable = (vim.vm.device.VirtualDevice.ConnectInfo) {&lt;BR /&gt;--&amp;gt; migrateConnect = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; startConnected = true,&lt;BR /&gt;--&amp;gt; allowGuestControl = false,&lt;BR /&gt;--&amp;gt; connected = true,&lt;BR /&gt;--&amp;gt; status = &amp;lt;unset&amp;gt;&lt;BR /&gt;--&amp;gt; },&lt;BR /&gt;--&amp;gt; slotInfo = (vim.vm.device.VirtualDevice.BusSlotInfo) null,&lt;BR /&gt;--&amp;gt; controllerKey = 1001,&lt;BR /&gt;--&amp;gt; unitNumber = 0,&lt;BR /&gt;--&amp;gt; numaNode = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; capacityInKB = 1,&lt;BR /&gt;--&amp;gt; capacityInBytes = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; shares = (vim.SharesInfo) null,&lt;BR /&gt;--&amp;gt; storageIOAllocation = (vim.StorageResourceManager.IOAllocationInfo) null,&lt;BR /&gt;--&amp;gt; diskObjectId = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; vFlashCacheConfigInfo = (vim.vm.device.VirtualDisk.VFlashCacheConfigInfo) null,&lt;BR /&gt;--&amp;gt; iofilter = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; vDiskId = (vim.vslm.ID) null,&lt;BR /&gt;--&amp;gt; virtualDiskFormat = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; nativeUnmanagedLinkedClone = &amp;lt;unset&amp;gt;,&lt;BR /&gt;--&amp;gt; independentFilters = &amp;lt;unset&amp;gt;&lt;BR /&gt;--&amp;gt; },&lt;BR /&gt;--&amp;gt; profile = (vim.vm.ProfileSpec) [&lt;BR /&gt;--&amp;gt; (vim.vm.EmptyProfileSpec) {&lt;BR /&gt;--&amp;gt; }&lt;BR /&gt;--&amp;gt; ],&lt;BR /&gt;--&amp;gt; backing = (vim.vm.device.VirtualDeviceSpec.BackingSpec) null,&lt;BR /&gt;--&amp;gt; filterSpec = &amp;lt;unset&amp;gt;&lt;BR /&gt;--&amp;gt; }&lt;BR /&gt;--&amp;gt; ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help thus far&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 00:18:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951831#M110502</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-02-01T00:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951847#M110504</link>
      <description>&lt;P&gt;Shouldn't the DeviceName value just be the LUN, without the '/vmfs/...' part?&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;New-HardDisk -VM $vm -DeviceName $UnassignedDisks.1disk -Datastore "MY_DATASTORE" -DiskType RawPhysical -Controller $SCSIController1&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 06:19:08 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951847#M110504</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-02-01T06:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951858#M110508</link>
      <description>&lt;P&gt;I tried that, it just gives me this error:&lt;/P&gt;&lt;P&gt;Cannot bind parameter 'DeviceName' to the target. Exception setting "DeviceName": "Invalid value specified for the DeviceName parameter. Please specify a valid console device name."&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:13:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951858#M110508</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-02-01T08:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951860#M110510</link>
      <description>&lt;P&gt;That sounds rather unlikely since your hastable is incorrect.&lt;BR /&gt;The Key can not start with a number.&lt;BR /&gt;Like this it works for me&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[hashtable]$unassignedDisks = @{
    Disk1 = "naa.600507681081001BA8000000000006FC"
    Disk2 = "naa.600507681081001BA8000000000006F8"
    Disk3 = "naa.600507681081001BA8000000000006F9"
    Disk4 = "naa.600507681081001BA8000000000006FA"
    Disk5 = "naa.600507681081001BA8000000000006FB"
}
$UnassignedDisks.Disk1
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:20:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951860#M110510</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-02-01T08:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951888#M110512</link>
      <description>&lt;P&gt;It definitely still does not work even if I make that change.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even if I try and run the cmdlet like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New-HardDisk -VM $vm -DeviceName "naa.600507681081001BA8000000000006FC" &lt;SPAN&gt;-Datastore "MY_DATASTORE" -DiskType RawPhysical -Controller $SCSIController1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New-HardDisk: Cannot bind parameter 'DeviceName' to the target. Exception setting "DeviceName": "Invalid value specified for the DeviceName parameter. Please specify a valid console device name."&lt;/P&gt;&lt;P&gt;Maybe it is something specific to my environment?.&lt;/P&gt;&lt;P&gt;What version of VMWare.PowerCLI and Powershell are you running?&lt;/P&gt;&lt;P&gt;I am PS version 7.3.1 in VSCode&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;PowerCLI Version&lt;BR /&gt;----------------&lt;BR /&gt;&amp;nbsp;&amp;nbsp; VMware.PowerCLI 13.0.0 build 20829139&lt;BR /&gt;---------------&lt;BR /&gt;Component Versions&lt;BR /&gt;---------------&lt;BR /&gt;&amp;nbsp;&amp;nbsp; VMware Common PowerCLI Component 13.0 build 20797081&lt;BR /&gt;&amp;nbsp;&amp;nbsp; VMware Cis Core PowerCLI Component PowerCLI Component 13.0 build 20797636&lt;BR /&gt;&amp;nbsp;&amp;nbsp; VMware VimAutomation VICore Commands PowerCLI Component PowerCLI Component 13.0 build 20797821&lt;BR /&gt;&amp;nbsp;&amp;nbsp; VMware VimAutomation Storage PowerCLI Component PowerCLI Component 13.0 build 20797966&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 10:40:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951888#M110512</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-02-01T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951891#M110513</link>
      <description>&lt;P&gt;I tested with PSv5.1 and PSv7.&lt;BR /&gt;&lt;BR /&gt;Did you check if that LUN is actually available on the ESXi node where that VM is located?&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Get-ScsiLun -VM ($vm.VMHost)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 10:53:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951891#M110513</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-02-01T10:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951892#M110514</link>
      <description>&lt;P&gt;Can confirm the LUN is showing / available on the ESXI host too&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:01:30 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951892#M110514</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-02-01T11:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951894#M110515</link>
      <description>&lt;P&gt;Did you also retry the Add-HD function with the correct LUN (without the full path /vmfs/...)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:18:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951894#M110515</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-02-01T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951895#M110516</link>
      <description>&lt;P&gt;Also, does the vpxd log show&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;deviceName = "naa.600507681081001BA8000000000006F8"&lt;/LI-CODE&gt;
&lt;P&gt;when you use the correct devicename?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:20:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951895#M110516</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-02-01T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951900#M110517</link>
      <description>&lt;P&gt;No, the log shows the devicename as '&lt;SPAN&gt;deviceName = "/vmfs/devices/disks/naa.600507681081001BA8000000000006F8"'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 11:54:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951900#M110517</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-02-01T11:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951907#M110518</link>
      <description>&lt;P&gt;Seems I made a mistake, the DeviceName has to be the ConsoleDeviceName.&lt;BR /&gt;So it should include the '/vmfs/devices/disks/...' path.&lt;BR /&gt;&lt;BR /&gt;Out of curiosity, do you get the same error when you call the API directly.&lt;BR /&gt;Something like this for example&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$vmName = 'MyVM'
$diskNAA = 'naa.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

$vm = Get-VM -Name $vmName
$scsi = Get-ScsiController -VM $vm | Where-Object {$_.ExtensionData.BusNumber -eq 1}
$scsiKey = $scsi.Key
$unitNr = Get-HardDisk -VM $vm | %{$_.ExtensionData.UnitNumber} |
    Measure-Object -Maximum | select -ExpandProperty Maximum
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$dev = New-Object VMware.Vim.VirtualDeviceConfigSpec
$disk = New-Object VMware.Vim.VirtualDisk
$back = New-Object VMware.Vim.VirtualDiskRawDiskMappingVer1BackingInfo
$back.CompatibilityMode = 'physicalMode'
$back.FileName = ''
$back.DiskMode = [VMware.Vim.VirtualDiskMode]::independent_persistent
$back.Sharing = [VMware.Vim.VirtualDiskSharing]::sharingNone
$back.DeviceName = "/vmfs/devices/disks/$($diskNAA)"
$disk.Key = -100
$disk.ControllerKey = $scsiKey
$disk.UnitNumber = $unitNr + 1
$disk.Backing = $back
$dev.Operation = [VMware.Vim.VirtualDeviceConfigSpecOperation]::add
$dev.FileOperation = [VMware.Vim.VirtualDeviceConfigSpecFileOperation]::create
$dev.Device = $disk
$spec.DeviceChange += $dev

$vm.ExtensionData.ReconfigVM($spec)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 12:25:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2951907#M110518</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-02-01T12:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2952022#M110527</link>
      <description>&lt;P&gt;In response to your question regarding using the add-HD function, I did try it with just the naa.id but that changed nothing.&lt;/P&gt;&lt;P&gt;I tried the script you provided, and got 1 out of 5 disks to be successfully added to the VM.&lt;BR /&gt;This disk ID worked -&amp;nbsp;&lt;SPAN&gt;naa.600507681081001ba8000000000006fc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The others give me the same error, even when calling the API using your script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MethodInvocationException: Exception calling "ReconfigVM" with "1" argument(s): "Incompatible device backing specified for device '0'."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Strangely, I have re-tested using New-Harddisk, and its adding disks this way now, so I'm slightly confused as to what I was doing wrong.&lt;/P&gt;&lt;P&gt;Bare with me, I want to re-test the troubleshooting steps we've been through to see where the issue lies on my side.&amp;nbsp;I will revert back once I have re-tested the disks and found which solution worked.&lt;/P&gt;&lt;P&gt;Your help has been much appreciated so far&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 23:10:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2952022#M110527</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-02-01T23:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2952032#M110528</link>
      <description>&lt;P&gt;After troubleshooting it again, turns out the disk UID (naa.) characters are case sensitive as we are running our ESXI hosts on linux.&lt;/P&gt;&lt;P&gt;As soon as I used a lower case letter for the uid, the new-harddisk cmdlet worked a treat.&lt;/P&gt;&lt;P&gt;Thanks for your help troubleshooting this issue lucd... rookie mistake by me...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 00:21:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2952032#M110528</guid>
      <dc:creator>CODETL19</dc:creator>
      <dc:date>2023-02-02T00:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding RDM Disks to first VM New-HardDisk Incompatible device backing specified for device '0'</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2952057#M110529</link>
      <description>&lt;P&gt;Great to hear, wasn't aware these UDI were case-sensitive.&lt;BR /&gt;&lt;BR /&gt;Does your "...&lt;EM&gt;as we are running our ESXI hosts on linux&lt;/EM&gt;" mean that you are running your ESXi nodes virtualised and nested on a Linux platform?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 06:42:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-RDM-Disks-to-first-VM-New-HardDisk-Incompatible-device/m-p/2952057#M110529</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2023-02-02T06:42:39Z</dc:date>
    </item>
  </channel>
</rss>

