Skip to content

Failed to create the virtual hard disk. #47

Description

Just tried to run the Sandbox script in a new Azure Host.

PS C:\AzHCI_Sandbox\AzSHCISandbox-main> .\New-AzSHCISandbox.ps1
VERBOSE: Enabling PS Remoting on client...
VERBOSE: Performing simple validation of Product Keys
VERBOSE: No Multiple Hyper-V Hosts defined. Using Single Hyper-V Host Installation
VERBOSE: Testing VHDX Path
VERBOSE: Generating Single Host Placement
VERBOSE: Creating Internal Switch
VERBOSE: Creating NAT Switch
VERBOSE: Creating Internal NAT Switch: InternalNAT
VERBOSE: Applying IP Address to NAT Switch: InternalNAT
VERBOSE: Creating new NETNAT
VERBOSE: Getting local Parent VHDX Path
VERBOSE: Configuring Hyper-V Settings on localhost
VERBOSE: Copying VHDX Files to Host
VERBOSE: Copying C:\AzHCIVHDs\gui.vhdx to V:\VMs\GUI.VHDX
VERBOSE: Copying C:\AzHCIVHDs\azshci.vhdx to V:\VMs\AzSHCI.VHDX
VERBOSE: Generating the VM: @{AzSHOST=AzSMGMT; VMHost=AzSHCIHost001}
VERBOSE: Virtual Machine FABRIC NIC MAC is =
Failed to create the virtual hard disk.
The system failed to create 'V:\VMs\AzSMGMT.vhdx'.
Failed to create the virtual hard disk.
The system failed to create 'V:\VMs\AzSMGMT.vhdx': The file or directory is corrupted and unreadable. (0x80070570).
At C:\AzHCI_Sandbox\AzSHCISandbox-main\New-AzSHCISandbox.ps1:407 char:5

  • $vmMac = Invoke-Command -ComputerName $VMHost -ScriptBlock {
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [New-VHD], VirtualizationException
    • FullyQualifiedErrorId : OperationFailed,Microsoft.Vhd.PowerShell.Cmdlets.NewVhd
    • PSComputerName : AzSHCIHost001

PS C:\AzHCI_Sandbox\AzSHCISandbox-main>

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