[one-users] problems with ec2query_templates/m1.small.erb
Daniel Molina Aranda
danmolin at fdi.ucm.es
Tue Aug 24 03:40:33 PDT 2010
Hi Stephan,
We have implemented a new Image Repository for OpenNebula 2.0. Now the disk
section in the template looks like this:
DISK = [ IMAGE_ID = <%= erb_vm_info[:img_id] %> ]
There are some more changes in the template for the new version features.
For example you can specify user data to be made available to the instance
by using the -d option of the econe-run-instance command.
The new template:
NAME = eco-vm
#Adjust Capacity for this instance type
CPU = 0.2
MEMORY = 256
DISK = [ IMAGE_ID = <%= erb_vm_info[:img_id] %> ]
NIC=[NETWORK="Public EC2"]
IMAGE_ID = <%= erb_vm_info[:ec2_img_id] %>
INSTANCE_TYPE = <%= erb_vm_info[:instance_type ]%>
<% if erb_vm_info[:user_data] %>
CONTEXT = [
EC2_USER_DATA="<%= erb_vm_info[:user_data] %>",
TARGET="hdc"
]
<% end %>
Regards.
On 18 August 2010 14:51, Stephan <one at askaban.net> wrote:
> Hi all,
>
> I'm trying to get a OpenNebula 2.0 beta to work (everything is working
> fine with our 1.4 install). I'm facing the following problem:
>
> - using shared nfs/nfs transport
> - trying to deploy ami-style (econe-server) using the provided
> demo-template (which works with 1.4)
>
> Owner ImageId Status
> Visibility Location
>
> ------------------------------------------------------------------------------
> test ami-00000001 public
> 30e8a008981881fbd8560bae7f11c05a62625fed
> test ami-00000002 private
> 1b820d8502b63bb1ef9e5bac5bbe7002c4ae63e8
>
> now I can deploy the image running econe-run-instances - the deploy
> however fails. I think it is because of this action
> of the deployment scripts:
>
> cat transfer.0.prolog:
> LN host:1 host:/kvm1/one/var/14/images/disk.0
>
> this links the image to "1" which does not make any sense. This is because
> I use
>
> DISK = [ source = <%= erb_vm_info[:ec2_img_id] %>,
>
> in the template - the original:
>
> DISK = [ source = <%= erb_vm_info[:img_path] %>,
>
> seems to be deprecated completely (deploying with :img_path ends in a
> parse error of oned)
>
> So how is the actual path to an econe instance specified in the
> template? I've tried different img variables but with no luck.
>
> Has anyone succeeded on deploying an instance using the suggested
> template in an KVM/nfs environment?
>
> thanks in advance and best regards,
> Stephan
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Daniel Molina, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100824/52cb734d/attachment.htm>
More information about the Users
mailing list