[one-users] launching ec2 instance

Javier Fontan jfontan at gmail.com
Mon Mar 22 11:14:40 PDT 2010


Hello,

Seems that here is the problem:

--8<------
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
------>8--

Try setting it in $ONE_LOCATION/etc/mad/vmm_ec2rc, add a line with the
correct JAVA_HOME.

Bye

On Mon, Mar 15, 2010 at 2:33 PM,  <tozaz at free.fr> wrote:
> 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
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org


More information about the Users mailing list