Connecting to Redhat Virtualization Manager, CLI

#login to the server through ssh or console, as a non privileged user and pull the Redhat Manager certificate from the #server
[user@linuxserver~]$ curl -o rhvm.cer http://serverhostname/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA

#You can use wget instead:

$ wget -O rhvm.cer http://[manager-fqdn]/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA

#On your current directory you will see an output file, i.e. rhvm.cer

RUNNING THE CLI

ovirt-shell <then follow the prompt to login or use the below>

ovirt-shell -c -l “https://rhevmsrv.serverone.net/ovirt-engine/api” -P 443 -u “jdoe@domain.net” -A rhvm.cer

#This will then log you in and you will get into a connected prompt.

connected to ovirt-shell.

#To list running vm’s you can issue the below command

list vms

Leave a Reply

Your email address will not be published. Required fields are marked *