We have successfully installed Opennebula with vCenter 6.7 with Nginx proxy and everything is working such as Public Networking as well as private networking.
We have created a template in vCenter and imported into Opennebula and SSH authentication is working as expected. However we would also like to have the option of also using password based authentication but cannot seem to get this working.
We have tried adding PASSWORD as a user input on the contextualization but this does not seem to work.
Is is possible to have password with with vCenter templates and if so what is the correct user input ? The OS we are testing on is CentOS 7.
Thank you for the information. I had already reviewed the documentation that you provided.
A few questions:-
As we are using vCenter ( not vonecloud ) I noticed the there are two options in the context section. One for vcenter contextualization and the other for Openebula. Which once is correct ?
I tested with both and using the vcenter option the VM does not boot. Using Opennebula the VM boots but no password is injected.
I shall past the template sections for your review. I can confirm that the CentOS7 contexulization packages are installed and working as SSH key auth works just fine.
I noticed the template tab there is a generated password which is not the one entered in the user input above. I also tried the password below and that does not work also.
One for vcenter contextualization and the other for Openebula. Which once is correct ?
The vCenter one is to use vCenter customization, if you don’t use them you should avoid this option. The OpenNebula contextualization is the one that you need for this purporse.
I noticed the template tab there is a generated password which is not the one entered in the user input above. I also tried the password below and that does not work also.
In the VM template you can find the password encrypted using the one_key. So, it will be always different from the one you entered. Another thing is that if you want to use the password you entered with the user inputs, you should add this to context section:
PASSWORD="$PASSWORD"
Finally, take in account that this password will only work if you have the contextualization packages installed and will only work in VNC connection. If you are trying to connect using SSH, you need to configure your SSH public key.