Error Creating New VMs using PowerShell

0

I'm struggling to create a new virtual machine on Hyper-V using a simple example from the help file. I can create VMs manually using the GUI but I was trying to learn how to do this using PowerShell but I'm getting the error below.

New-VM -Name "base" -MemoryStartupBytes 1GB -NewVHDPath "J:\Hyper-V machines\dc.vhdx" -NewVHDSizeBytes 100GB

Error Message:

New-VM : Failed to create a new virtual machine. 'base' failed to realize.
(Virtual machine ID  80967A7D-7380-4771-B200-99129D63496C) Failed to access
configuration store: The device is not ready. (0x80070015).
At line:1 char:1
+ New-VM -Name "base" -MemoryStartupBytes 1GB -NewVHDPath J:\VM\base.vh ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-VM], VirtualizationExcept     ion
    + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.NewVM

My VMs are located in an external harddrive and the path exists ...there's not much help about this error online.

powershell
hyper-v
asked on Stack Overflow Aug 5, 2017 by Ogbobe Buko • edited Aug 6, 2017 by Ansgar Wiechers

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0