Listing LUN serial numbers on Windows Powershell 2016
search cancel

Listing LUN serial numbers on Windows Powershell 2016

book

Article ID: 313972

calendar_today

Updated On:

Products

VMware VMware Aria Suite VMware Cloud Director VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:

This error does not happen with Windows server 2008 and 2012 only with 2016.

 

Windows 2012 R2

Windows 2008 R2

Windows 2016 - The lun serial number is empty.


Environment

VMware Cloud Director for Service Provider 8.20.x
VMware vRealize Orchestrator 7.1.x
VMware vCenter Converter Standalone 6.x
VMware vCenter Server 6.5.x
VMware vRealize Orchestrator 7.2.x
VMware vCenter Server 6.0.x
VMware vSphere ESXi 6.0
VMware Cloud Director for Service Provider 8.0.x
VMware vCenter Server 6.0 Beta
VMware Cloud Director for Service Provider 9.0.x
VMware Cloud Director for Service Provider 8.10.x
VMware vCenter Server Appliance 6.5.x
VMware vCenter Server Appliance 6.0.x
VMware vCenter Server 6.7.x
VMware vRealize Orchestrator 7.3.x
VMware vRealize Orchestrator 7.0.x

Cause

This issue occurs when the script is unable to read the disk UUID or Serial Number value for one or more virtual machine disks.
If the VM is not created with vSphere WebClient, the advanced parameter "disk.EnableUUID" is not set.

Note: This issue affects other products like vCloud Director, vCenter Server 6.5 HTML5 WebClient.

Resolution

This issue is resolved in ESXi 6.7, available at VMware Downloads.

To workaround this issue, create the Virtual Machine using the vSphere WebClient.
 



    Workaround:

    To workaround this issue, set the disk.EnableUUID variable to true.

    To configure disk.EnableUUID using the vSphere Web Client:

    1. Right-click the virtual machine and click Shut Down Guest OS.
    2. Right-dick the virtual machine and click Edit Settings.
    3. Click VM Options.
    4. Expand the Advanced section and click Edit Configuration.
    5. Click Add Row.
    6. In the Name column, type disk.EnableUUID.
    7. In the Value column, type TRUE.
    8. Click OK and click Save.
    9. Power on the virtual machine.