Configuring a connection to the RHEVM server
To configure a connection to the RHEVM server, you must run the script and respond to prompts.
Before you begin
- Download the security certificate that is available at the following path:
http://[RHEVM-IP]/ovirt-engine/services/pki-resource?resource=cacertificate&format=X509-PEM-CA
Depending on the browser, the certificate is either downloaded or imported into the browser's Keystore.
- If the browser downloads the certificate: Save the file as
rhvm.cer
- If the browser imports the certificate: Export it from the browser's certification options and
save it as
rhvm.cer
- If the browser downloads the certificate: Save the file as
- Use the keytool utility to import the security certificate file to
generate a local keystore file:
keytool -import -alias ALIAS -file CERTIFICATE_FILE -keystore
KEYSTORE_FILEExample keytool -import -alias RHEVM36vmwt9 -file hjs495-vmw-t-9.cer
-keystore RHEVM36KeyStoreWhere- ALIAS
- A unique reference for each certificate that is added to the certificate truststore of the agent, for example, an appropriate alias for the certificate from datasource.example.com is datasource.
- CERTIFICATE_FILE
- The complete path and file name to the data source certificate that is being added to the truststore.
- KEYSTORE_FILE
- The name of the keystore file that you want to specify.
Tip: The keytool utility is available with Java™ Runtime Environment (JRE). The keystore file is stored at the same location from where you run the command. - Ensure that the user, who connects to the RHEVM, is an administrator with the SuperUser role. Use can use an existing user ID with this role, or you can create a new user ID by completing the steps that are mentioned in Creating a user and granting required permissions.
Procedure
What to do next
If you need help with troubleshooting, see the Troubleshooting section.