xo-cli and using self signed certificates
-
Is there a command line option for xo-cli to use a self signed certificate? Or is answer to have the server also listening on http as well?
Running this command
xo-cli --register https://localhost/api/admin@admin.net admingives this error
"type": "error", "message": "self signed certificate", "error": { "code": "DEPTH_ZERO_SELF_SIGNED_CERT" -
Pinging @julien-f about this
-
@lawrencesystems I've just published
xo-cli@0.12which supports this:xo-cli --register --allowUnauthorized https://localhost/api/admin@admin.net admin -
Awesome, thanks!
One other question, and what sent me learning about the xo-cli, how would I filter for running VM's that are using a particular shared storage? I have a multiple shared storage systems attached to the pool. I need to update and reboot one of those storage units so I would like to move or stop the VM's that are using it. I know I can see which ones are running by going and see which attached drives are green but I figured there was an object I could filter for withing XO in the search.
-
@lawrencesystems Not possible/easy to do with
xo-cli, please see this post: https://xcp-ng.org/forum/topic/4816/bash-script-for-migrating/9 -
That's the part where are potential/future public API could be very helpful

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