VMware Cloud Community
helgew
Contributor
Contributor

Unhandled Exception in the vSphere 6.5 UI after adding raw device to VM

After adding a raw device (based on an SSD disk) as an "existing hard drive" to a VM, I am getting an Unhandled Exception whenever I am trying to edit the VM's setting:

Cause: TypeError: undefined is not an object (evaluating '$scope.hardwareStackView.hardDiskBlock[_length]')

Version: 1.8.0

Build: 4516221

ESXi: 6.5.0

Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8

Exception stack:

https://esxi/ui/scripts/main.js:315:984

https://esxi/ui/scripts/main.js:265:9466

$digest@https://esxi/ui/scripts/main.js:265:15052

https://esxi/ui/scripts/main.js:265:16584

e@https://esxi/ui/scripts/main.js:264:5651

https://esxi/ui/scripts/main.js:264:7653


Hitting escape a couple of times, the UI seems to be unhappy with the size and the number of shares specified for the disk. Those fields, while grayed out, are highlighted with a red frame. I am not able to use the UI to make any changes to the settings.

I have added raw devices to other VMs without problems (haven't tried with this vmdk though) and the affected VM is able to use the disk just fine.

Any advice or pointers would be greatly appreciated!

0 Kudos
2 Replies
parmarr
VMware Employee
VMware Employee

Create a VMFS file system on the SSD and use a vmdk for Mac OS or attach the Lun as physical RDM.

Sincerely, Rahul Parmar VMware Support Moderator
0 Kudos
RParker
Immortal
Immortal

I have added raw devices to other VMs without problems (haven't tried with this vmdk though) and the affected VM is able to use the disk just fine.

Any advice or pointers would be greatly appreciated!

Well this happened in client as well and you can simply remove raw device from VM, shut down VM remove from inventory.  log out, log in client, add VM back to inventory and add raw device again. it's probably a bad DB pointer for the object.

It happens.

0 Kudos