Fail to create new Virtual Machine on Microsoft Server 2019

Asyraf Othman 1 Reputation point
2020-08-26T03:20:24.68+00:00

I have never use nor do I have experience in dealing with Microsoft Server 2019 so excuse me if I'm wrong or have limited knowledge. I was assigned to deploy Rasa on the VM that was given to me by my supervisor.

VM's specs is as below:

  • 4vcpu
  • 8gb ram
  • 100gb hdisk
  • Windows Server 2019 DC

I was trying to create another VM in the VM that is specified above. The problem is the creation gave a generic error when I used the VM wizard. Using powershell gives me this error :

New-VM : The operation failed. At line:1 char:1 + New-VM -Name Win10VM -MemoryStartupBytes 4GB -BootDevice VHD -VHDPath ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-VM], VirtualizationException + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.NewVM

I have Googled on the error but still cant find the solution. Can anyone help?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,706 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 85,786 Reputation points
    2020-08-26T07:03:16.493+00:00

    Hi @Asyraf Othman ,

    Can you post the whole PowerShell script that you are trying to run on the Hyper-V host?

    You'll find examples on how to use the New-VM PowerShell cmdlet over here:
    https://video2.skills-academy.com/en-us/powershell/module/hyper-v/new-vm?view=win10-ps

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon


  2. TimCerling(ret) 1,156 Reputation points
    2020-08-26T13:22:58.22+00:00

    "I was trying to create another VM in the VM that is specified above"

    From this statement in your original post, it sounds like you are trying to create a VM within a VM. That is possible with Hyper-V 2019. However, your PowerShell command is attempting to create the VM in a location on Drive D:. Does the hosting VM have a drive D: defined? If you are trying to define a VM within a VM, the drive location must be available from within the VM, not from the host system.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.