[one-users] launching ec2 instance
tozaz at free.fr
tozaz at free.fr
Mon Mar 15 06:33:15 PDT 2010
Hello everybody,
I try to figure out with amazon ec2 instance.
I run ubuntu 9.10 with the opennebula package 1.4
I follow this link http://www.opennebula.org/documentation:rel1.4:ec2g
but i have an issue with the ec2-run-instances command as follow :
Mon Mar 15 14:25:40 2010 [DiM][I]: New VM state is ACTIVE.
Mon Mar 15 14:25:40 2010 [LCM][I]: New VM state is PROLOG.
Mon Mar 15 14:25:40 2010 [VM][I]: Virtual Machine has no context
Mon Mar 15 14:25:40 2010 [LCM][I]: New VM state is BOOT
Mon Mar 15 14:25:40 2010 [VMM][I]: Generating deployment file:
/var/lib/one/7/deployment.0
Mon Mar 15 14:25:40 2010 [VMM][I]: Command execution fail:
/root/ec2-api-tools/bin/ec2-run-instances ami-00bafcb5 -k ec2-keypair -t
m1.small
Mon Mar 15 14:25:40 2010 [VMM][I]: STDERR follows.
Mon Mar 15 14:25:40 2010 [VMM][I]: /root/ec2-api-tools/bin/ec2-cmd: line 17:
JAVA_HOME: JAVA_HOME is not set
Mon Mar 15 14:25:40 2010 [VMM][I]: ExitCode: 1
Mon Mar 15 14:25:40 2010 [VMM][E]: Error deploying virtual machine
Mon Mar 15 14:25:40 2010 [DiM][I]: New VM state is FAILED
Mon Mar 15 14:25:40 2010 [TM][W]: Ignored: TRANSFER SUCCESS 7 -
here my ec2 template :
CPU = 0.5
MEMORY = 128
#Xen or KVM template machine, this will be use when submitting this VM to local
resources
OS = [kernel="/vmlinuz",initrd= "/initrd.img",root="sda1" ]
DISK = [source="/root/test.img",target="sda",readonly="no"]
NIC = [bridge="eth0"]
#EC2 template machine, this will be use wen submitting this VM to EC2
EC2 = [ AMI="ami-00bafcb5",
KEYPAIR="ec2-keypair",
AUTHORIZED_PORTS="22",
INSTANCETYPE=m1.small]
#Add this if you want to use only EC2 cloud
#REQUIREMENTS = 'HOSTNAME = "ec2"'
Best regards,
Xavier
More information about the Users
mailing list