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.createonly 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.createis from the older JSON-RPC API, not the REST API. -
I'm currently using the JSON-RPC method
vm.createfor 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.
-
@bufanda yes I have checked that feature too. Let me dig further to make it useable for my use case.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login