Add-VMDisk

Apr 20, 2012 at 12:33 PM

I make a couple of VM's in batch with this settings:

New-VM -Name "TEST" -Path "E:\TEST"

Set-VMMemory "TEST" 512MB

Add-VMDisk "TEST" 0 0 "E:\TEST\Test.vhd" --> this one gives error: WARNING: Could not add disk - could not find or create drive for it.

Add-VMNIC "TEST" -Virtualswitch "Extern"

A few months ago, this configuration still worked.

Anyone have an idea?

 

 

May 22, 2012 at 3:04 PM

I think this is because you have not created the disk in the first place.

Try doing this :

Add-VMNewHardDisk "TEST" 0 0 "E:\TEST\Test.vhd".

Regards,

JJ