For testing installations I used to do the following with the centos7 image:
oneimage create --name testvm --path http://marketplace.opennebula.systems/appliance/4e3b2788-d174-4151-b026-94bb0b987cbb/download --datastore default --prefix vd --driver qcow2
onetemplate create --name testvm --cpu 1 --vcpu 1 --memory 256 --arch x86_64 --disk testvm --nic private --vnc --ssh --net_context'
echo CONTEXT = [ USERNAME = root, PASSWORD = password, NETWORK = YES ] > context.one
onetemplate update testvm -a context.one
onetemplate instantiate testvm
Currently this still results in a template that lists password authentication, but I’m unable to login (from vnc console, or over ssh - it hangs) with root/password to the VM.
[oneadmin@frontend ~]$ onetemplate show 0
TEMPLATE 0 INFORMATION
ID : 0
NAME : testvm
USER : oneadmin
GROUP : oneadmin
REGISTER TIME : 01/30 17:23:16
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
TEMPLATE CONTENTS
CONTEXT=[
NETWORK="YES",
PASSWORD="password",
USERNAME="root" ]
CPU="1.0"
DISK=[
IMAGE="testvm" ]
GRAPHICS=[
LISTEN="0.0.0.0",
TYPE="vnc" ]
MEMORY="256"
NIC=[
NETWORK="private" ]
OS=[
ARCH="x86_64" ]
VCPU="1"
Is it my mistake or maybe the password authentication has been disabled in the image?
I thought the images don’t change but a new image will get a new ID.