Closed erpadmin closed 4 years ago
report is invalid, compat mode and disk mode were flipped, corrected original code
closing
I was unable to use the sample above to create an RDM. Debugging was painful, but in the hopes it helps some other poor soul down the road, I had to make the following changes to get it to work:
remove the line: disk_spec.device.backing.diskMode = 'persistent'
add the line: disk_spec.device.backing.fileName = '[
In my case, I am attaching a raw SAN volume as an RDM to a guest. The storage system does snaps, so I don't need any ESX magic for snaps.
code is modified sample. sample seems outdated since max disk slots is 65 not 16. maybe thats related to vmware paravirtual controller type