Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new, empty virtual disk fails #393

Open
Rokory opened this issue Apr 27, 2021 · 0 comments
Open

Adding a new, empty virtual disk fails #393

Rokory opened this issue Apr 27, 2021 · 0 comments

Comments

@Rokory
Copy link
Contributor

Rokory commented Apr 27, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant