I've downloaded this image from marketplace, Also tried debian and the shs
key's doesn't work.
Can't log to my VM's running on linux distros :( (windows with first boot
ask for admin password). Any idea how to do this without changing anything
in image ? (my os image is rbd)
2014-04-02 17:10
I also noticed that my VM doesn't get hostname and ip address (cannot ping
with the ip address i can see in VM management in sunstone). It looks like
the contextualization doesn't even work. Do i need to setup it in some
special way?
2014-04-03 13:14 GMT+02:00 Leszek Master keks...@gmail.com:
How can i push root password to a VM for example using context?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Leszek,
Create a script, call it init.sh, upload it to the Files Kernel tab (as
a Context type). Select it under the Context - Files section of the VM
Template.
Whatever you put inside that init.sh script will get executed.
The contents of the script depend on the distro you are using, but if
I'm trying to do this on ubuntu, i did what you said i've created file
names init.sh upload it to Files and named there init.sh too. Next i
applied it to template ($FILE[IMAGE_ID=10]) added ROOT_PASSWORD base 64
encoded and it doesn't work :(
My init.sh:
#!/bin/bash
usermod -p $ROOT_PASSWORD
You should decode the ROOT_PASSWORD inside that script, something in the
lines of:
#!/bin/bash
PASS=$(echo $ROOT_PASSWORD | base64 -d)
usermod -p $PASS root
On Wed, Apr 2, 2014 at 3:13 PM, Leszek Master keks...@gmail.com wrote:
I'm trying to do this on ubuntu, i did what you said i've created
It still doesn't work :(. Can i see is init.sh executed in my VM?
2014-04-02 15:16 GMT+02:00 Jaime Melis jme...@opennebula.org:
You should decode the ROOT_PASSWORD inside that script, something in the
lines of:
#!/bin/bash
PASS=$(echo $ROOT_PASSWORD | base64 -d)
usermod -p $PASS root
Try adding a debugging line to the script, like:
echo ROOT_PASSWORD: $ROOT_PASSWORD and PASS: $PASS /tmp/debug
after booting take a look at the /tmp/debug contents
On Wed, Apr 2, 2014 at 3:31 PM, Leszek Master keks...@gmail.com wrote:
It still doesn't work :(. Can i see is init.sh executed
Now i see i can't even log to my VM using ssh-keys added to template. I
need to do something more with image downloaded form market place to get
this working?
2014-04-02 15:32 GMT+02:00 Jaime Melis jme...@opennebula.org:
Try adding a debugging line to the script, like:
echo ROOT_PASSWORD:
Hi,
are you saying before trying to use a init.sh the ssh-keys did work, and
after they don't? Have you tried removing the init.sh option from the
template again see if you regain ssh access, or it has never worked? If it
hasn't, please send us: onevm show id and oneuser show id
On Wed, Apr 2,
I havent tryied them before. Now i checked this.
It has never worked.
onevm show 36:
USER 2 INFORMATION
ID : 2
NAME: leni
GROUP : oneadmin
PASSWORD: dasa2d2bc9d8dasda98213cd2abd5f505bc9
AUTH_DRIVER : core
ENABLED : Yes
USER TEMPLATE
That should work. Just so we're clear, you're trying to ssh from the
oneadmin account in node02 to the *root* account of the VM:
oneadmin@node-02:~ $ ssh root@172.100.0.109
Do you even get the password prompt?
--
Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
i'm trying to ssh from node-02 using leni account (leni@node-02) as in the
ssh-key added to template. And i've got password prompt, the same is when i
use ssh root@172.100.0.109 - password prompt. It should but it isn't :(
2014-04-02 16:29 GMT+02:00 Jaime Melis jme...@opennebula.org:
That
Hi Leszek,
I don't understand either why it's not working for you then, the only
explanation is that the image is not correct. Could you try with another
image? I think that would the easiest option.
Another option would be to open that image and replace the root password
manually. To do so,
14 matches
Mail list logo