You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I can't see any way to thin provision the disks via the REST API when creating the VM, is this not possible?
Secondly, on attempting to provision the VM I get the following error:
INFO:root:Resource pool group-v1172 and folder resgroup-1053 with datastore datastore-952 selected
INFO:root:Creating VM
Traceback (most recent call last):
File "create_vm.py", line 70, in <module>
vm = client.vcenter.VM.create(vm_create_spec)
File "/home/jambyr/.virtualenvs/vmware/lib/python3.6/site-packages/com/vmware/vcenter_client.py", line 3660, in create
'spec': spec,
File "/home/jambyr/.virtualenvs/vmware/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 345, in _invoke
return self._api_interface.native_invoke(ctx, _method_name, kwargs)
File "/home/jambyr/.virtualenvs/vmware/lib/python3.6/site-packages/vmware/vapi/bindings/stub.py", line 298, in native_invoke
self._rest_converter_mode)
com.vmware.vapi.std.errors_client.Unsupported: {messages : [LocalizableMessage(id='com.vmware.api.vcenter.vm.device.disk.unsupported_gos_get_disk_size', default_message="Unable to get recommended disk size for the guest OS. Guest OS 'CENTOS_7' is not supported.", args=['CENTOS_7'], params=None, localized=None)], data : None, error_type : None}
Expected behavior
I would expect by defining the vmdkspec / disk spec that it shouldn't be trying to pull the recommended disk size from the CENTOS_7 profile. Also I was expecting (perhaps via the vmdkspec) to be able to specify the provisioning type.
Any help gratefully received!
All the best
The text was updated successfully, but these errors were encountered:
It turns out using GuestOS.CENTOS or GuestOS.RHEL-7 works fine. I guess this is the based on the host version?
Though the disk also ended up being thin provisioned, I'd be interested to understand whether it's a missing feature of the REST API to specify the provisioning type?
"...The REST API vmdk create spec doesn't support desired provisioning like LAZY, THICK, THIN etc...." stuck with this as well, is there any estimation when we can expect that to be available? The provisioning of HDD (vmdk) is OK, but it's odd to think in direction to convert from thin to tick (or vice versa) because of lack of ability to specify that in advance.
Environment
python version:
Python 3.6.8
vSphere version: 6.7
Operating System/Shell (used to run SDK-based apps): bash / centos7
Steps or code snippet to reproduce
Actual behavior
Two things (related, I promise!)
Firstly, I can't see any way to thin provision the disks via the REST API when creating the VM, is this not possible?
Secondly, on attempting to provision the VM I get the following error:
Expected behavior
I would expect by defining the vmdkspec / disk spec that it shouldn't be trying to pull the recommended disk size from the CENTOS_7 profile. Also I was expecting (perhaps via the vmdkspec) to be able to specify the provisioning type.
Any help gratefully received!
All the best
The text was updated successfully, but these errors were encountered: