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

Failed to create the virtual hard disk. #47

Open
henrikmotzkus opened this issue Nov 14, 2024 · 0 comments
Open

Failed to create the virtual hard disk. #47

henrikmotzkus opened this issue Nov 14, 2024 · 0 comments

Comments

@henrikmotzkus
Copy link

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>

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