VM creation progress
-
How can we check the progress of a VM creation process on XO? is there any api which returns the progress % or anything else that help in this regards?
-
VM creation is almost instantaneous for me, and I'm running on older hardware (E5-2680). How long does it typically take for VM creation on your end?
-
@Danp it doesn't takes much time like its very fast but is there any way to check the progress if i want?
-
@irtaza9 Not AFAIK.
-
@Danp when we use a custom temp which contains cloud-init configs then the the complete boot takes some time but the rest-api
vm.create
only deliver the payload to the server and does not record the operation further. We want to have a loading indicator until operation of vm creation is 100% complete. -
@irtaza9 Can you elaborate on how you are making this API call? FWIW,
vm.create
is from the older JSON-RPC API, not the REST API. -
I'm currently using the JSON-RPC method
vm.create
for VM creation. As far as I know, both methods are the same because you don’t create an operation if the action takes a long time to complete—for example, VM creation. If you were to create an operation for the action and provide a way to check its completion, we could handle the loading state on our end.Async operations:
Any operation which may take more than a second to be done must be done in the background, returning a background operation ID to the client.The client will then be able to either poll for a status update or wait for a notification using the long-poll API.
-
In the Tasks menu on the left it should show all active tasks including the VM creation or it's sub tasks like VDI cloning.