# CentOS VM login problem

**URL:** <https://forum.opennebula.io/t/centos-vm-login-problem/1561>\
**Category:** Product Support\
**Created:** [December 4, 2015, 2:32pm UTC](https://forum.opennebula.io/t/centos-vm-login-problem/1561 "2015-12-04T14:32:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trainiste](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@trainiste](https://forum.opennebula.io/u/trainiste)\
**Post date:** [December 4, 2015, 2:32pm UTC](https://forum.opennebula.io/t/centos-vm-login-problem/1561/1 "2015-12-04T14:32:16Z")

</div>

Hi all,  
I have an issue with login in my CentOS VM on opennebula.  
At start the VM ask me the username and password to login, but I don’t know the right username and password. I have tried to setup SSH conncection as write in to the guide but doesn’t work.  
Some suggestions?

---

<div class="post-metadata">

**Author:** ![VURoland](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vuroland/32/7682_2.png) [@VURoland](https://forum.opennebula.io/u/VURoland)\
**Post date:** [December 7, 2015, 7:54pm UTC](https://forum.opennebula.io/t/centos-vm-login-problem/1561/2 "2015-12-07T19:54:24Z")

</div>

hi,

im assuming you got the image from the marketplace ?  
If I remember correctly, it has no password for a user (if it would, it would state so in the marketplace comment) so you will need to use SSH contextualization. This will get your ssh key into the VM on deployment. You will also need to add your ssh pub key to your user account details.

more info here: [http://docs.opennebula.org/4.12/user/virtual\_machine\_setup/bcont.html](http://docs.opennebula.org/4.12/user/virtual_machine_setup/bcont.html)

- activate ssh contextualization in your template
- add ssh key to your account in opennebula
- deploy VM
- login as root with your ssh key as always

---

<div class="post-metadata">

**Author:** ![n40lab](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/n40lab/32/4311_2.png) [@n40lab](https://forum.opennebula.io/u/n40lab)\
**Post date:** [December 14, 2015, 7:24am UTC](https://forum.opennebula.io/t/centos-vm-login-problem/1561/3 "2015-12-14T07:24:42Z")

</div>

A bit late, but in case someone reads this post. The user and password for the OpenNebula CentOS sandbox are:

User: root  
Password: opennebula
