Skip to content

Adding a new, empty virtual disk fails #393

@Rokory

Description

@Rokory

I am trying to create and add a new, empty VHDX to a VM using this configuration data:

            Lability_HardDiskDrive = @(
                @{
                    Name = '10961C-SVR1-Allfiles.vhd'
                    Type = 'Dynamic'
                    MaximumSizeBytes = 127GB
                }
            )

However, when I try to run the configuration, it fails with error:

(Re)setting VHDX configuration '10961-LON-SVR1.vhdx'.
Remove-LabVirtualMachineHardDiskDrive
+ ...     $null = Remove-LabVirtualMachineHardDiskDrive @removeLabVirtualMa ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Remove-LabVirtualMachineHardDiskDrive], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull,Remove-LabVirtualMachineHardDiskDrive

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions