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.
Are you sure there is no Storage Policy on that datastore?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
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
Ok, that NFS part is important, see NFS and Hardware Acceleration (vmware.com)
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference