Opennebula Virtual Machine localhost login

5.3k views Asked by At

Following this Opennebula quickstart guide on Ubuntu 12.04, I was able to create and instantiate a CentOS 6.4 virtual machine. However, I don't know what login credentials to use (i.e. username and password) to remotely access the vm. I can ping the vm and onevm list command is saying it's running. I've already tried oneadmin and the password inside ~/.one/one_auth file but it's not working. I also tried root with no password, and oneadmin with opennebula as password. But still, it's not working. Here's a snapshot of the VM created: enter image description here

Apologies if the question is too simple. It's just that I don't see any username/password to be used or to be set on the guide, for the virtual machine created. Thanks in advance!

1

There are 1 answers

0
dmamolina On

Assuming you have followed the steps in the quickstart guide:

  • specifying the --ssh in the onetemplate create command

    $ onetemplate create --name "CentOS-6.4" --cpu 1 --vcpu 1 --memory 512 \
    --arch x86_64 --disk "CentOS-6.4_x86_64" --nic "private" --vnc \
    --ssh
    
  • including your ssh public key in the user template using:

    $ EDITOR=vi oneuser update oneadmin
    SSH_PUBLIC_KEY="ssh-dss AAAAB3NzaC1kc3MAAACBANBWTQmm4Gt..."
    

You have to ssh as root using your ssh key. You can retrieve the IP of the VM using the onevm command and the ID returned by the onetemplate instantiate command.