VMware Cloud Community
sautax
Contributor
Contributor

VM creation, setting -DiskStorageFormat to Thin doesn’t work

Hello,

I’m trying to create a virtual machine with powercli and i want the disk to be Thin provisioned.

When i execute the command

 

 

New-VM -Name test -DiskGB 32 -MemoryGB 2 -NumCpu 1 -DiskStorageFormat Thin -Datastore FS_CLUSTERTEST_VMWARE -ResourcePool test-pool 

 

 

The virtual machine is created, no errors in the output but the disk created is Thick Provision Eager Zeroed.

I searched on internet for a solution but i found nothing, what did i do wrong ?

I tested on VCenter 7, PowerCLI 12.2.0 & powershell 7.1.3 running on linux.

I also tried

Get-HardDisk test | Move-HardDisk -StorageFormat Thin -Datastore FS_CLUSTERTEST_VMWARE 

 but the disk doesn’t change and stays "Thick Provision Eager Zeroed".

Thanks in advance.

0 Kudos
3 Replies
LucD
Leadership
Leadership

Are you sure there is no Storage Policy on that datastore?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
sautax
Contributor
Contributor

The datastore has a default configuration, no storage policy as far as i know.

The only spectial thing that i can think of is that the type of the datastore is NFS 3

0 Kudos
LucD
Leadership
Leadership

Ok, that NFS part is important, see NFS and Hardware Acceleration (vmware.com)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos