[one-users] Managing VMs on EC2 with OpenNebula 3.4
André Monteiro
andremonteiro at ua.pt
Mon May 7 03:39:44 PDT 2012
Hello everyone,
I'me trying configure my EC2 account with my OpenNebula 3.4, but so far I
didn't succeed. Some of the instructions on
http://opennebula.org/documentation:rel3.4:ec2g are not up to date, i.e.
creating the ec2 host is described as "$ onehost create ec2 im_ec2 vmm_ec2
tm_dummy" but in 3.4 the transfer manager is not used. All my EC2
configuration data and variables are ok and double-checked, I can manage
images with the ec2-api-tools.
When creating a new image from a basic template,
EC2=[
AMI="ami-77770a91e",
AUTHORIZED_PORTS="22",
INSTANCETYPE="t1.micro",
KEYPAIR="aws_hpc" ]
NAME="EC2_MICRO"
REQUIREMENTS="HOSTNAME='ec2'"
I get this in the log:
Fri May 4 18:00:38 2012 [DiM][I]: New VM state is ACTIVE.
Fri May 4 18:00:38 2012 [LCM][I]: New VM state is PROLOG.
Fri May 4 18:00:38 2012 [VM][I]: Virtual Machine has no context
Fri May 4 18:00:38 2012 [LCM][I]: New VM state is BOOT
Fri May 4 18:00:38 2012 [VMM][E]: deploy_action, error getting driver
vmm_ec2
Fri May 4 18:00:38 2012 [DiM][I]: New VM state is FAILED
Can anyone help me?
My *vmm_ec2.conf* is
<TEMPLATE>
<EC2>
<KEYPAIR>aws_hpc</KEYPAIR>
<AUTHORIZEDPORTS>22</AUTHORIZEDPORTS>
<INSTANCETYPE>t1.micro</INSTANCETYPE>
</EC2>
</TEMPLATE>
My *vmm_ec2rc* is
EC2_HOME=/home/oneadmin/ec2-api-tools/ec2-api-tools-1.5.2.3/
EC2_PRIVATE_KEY=~/.ec2/pk.pem
EC2_CERT=~/.ec2/cert.pem
EC2_URL=https://ec2.us-east-1.amazonaws.com
JAVA_HOME=/usr
EC2_JVM_ARGS="-Xms16m -Xmx64m"
EC2_JVM_CONCURRENCY=10
and my ec2 part on *oned.conf* is
IM_MAD = [
name = "im_ec2",
executable = "one_im_ec2",
arguments = "im_ec2/im_ec2.conf",
default = "im_ec2/im_ec2.conf" ]
VM_MAD = [
name = "vmm_ec2",
executable = "one_vmm_ec2",
arguments = "-u https://ec2.us-east-1.amazonaws.com -k
/home/oneadmin/.ec2/pk.pem -c /home/oneadmin/.ec2/cert.pem -h
/home/oneadmin/ec2-api-tools/ec2-api-tools-1.5.2.3 vmm_ec2/vmm_ec2.conf",
type = "xml" ]
Paths are all confirmed more than twice. What am I missing?
--
André Monteiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120507/2fdd7813/attachment-0001.htm>
More information about the Users
mailing list