Skip to content

Adding a new, empty virtual disk fails #393

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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