VMware Cloud Community
static-void
Contributor
Contributor

Error adding a new thin vhd

Hi there

Im trying to create a VM with a thin hard drive. I created the VM itself and deleted the existing disk I then ran the new-harddisk powershell script and it gave me an error

PS C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> new-harddisk -cap

acitykb 20971520 -thinprovisioned -devicename "test vm2" -datastore "vmstore (SA

N)" -vm "test vm2"

New-HardDisk : 1/09/2008 2:22:43 p.m. New-HardDisk No free LSI nodes

At line:1 char:13 + new-harddisk <<<< -capacitykb 20971520 -thinprovisioned -devicename "test vm 2" -datastore "vmstore (SAN)" -vm "test vm2"

Any ideas?

Thanks

Luke

0 Kudos
1 Reply
Dave_Mishchenko
Immortal
Immortal

Hi Luke, -devicename is meant for raw device mappings. You'll want to use -DiskType flat instead.

0 Kudos