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 admin
gives 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.12
which 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