Skip to content

Get-VmdkFromWindowsDisk fails if the VM has a vvol and an RDM attahed. #66

Description

@nocentino

To reproduce, attach both a vvol and an RDM to a VM and use Get-VmdkFromWindowsDisk.

The issue is on line 907, there is a null exception if there's an RDM in the set of disks attached to a VM.

The workaround I used was to filter out RDMs:
$vmDisk = $vm | Get-HardDisk | Where-Object { $_.DiskType -ne 'RawPhysical' } |Where-Object {$_.ExtensionData.backing.uuid.replace("-","") -eq $VMdiskSerialNumber.SerialNumber}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions