Hello Daniel,
I tried to create the vm passing the tag <target> but it does not work,
the target tag is not passed to the disk of the compute.
Finnally it's working modifiying the /etc/one/occi_templates/common.erb
file. I write here the modifications if somebody needs to do the same.
I've modified the disk loop for this:
<% @vm_info.each('DISK') do |disk| %>
<% if disk.attr('STORAGE','href') %>
DISK = [ IMAGE_ID =<%= disk.attr('STORAGE','href').split('/').last %>
<% if disk['TARGET'] %>
, TARGET="<%= disk['TARGET'] %>"
<%end%>
]
<%end%>
<% end %>
Cheers!
On 16/02/12 16:17, Daniel Molina wrote:
Hi Oriol,
2012/2/15 Oriol Martí<[email protected]>:
Hello, I'm trying to create a vm through OCCI with 2 disks and context, I've
this problem:
http://comments.gmane.org/gmane.comp.distributed.opennebula.user/4731
If I want to create the virtual machine through OCCI, its possible to attach
more than one disk? Why Opennebula its assgning hde to my second disk, I've
tried to create with libvirt and config file deployment.0 changing hde with
hdd directly with libvirt and it works fine.
You can specify the target device manually using the TARGET argument:
<COMPUTE>
<DISK>
<STORAGE href='http://cloud.server:4567/storage/3' />
<TARGET>hdd</TARGET>
</DISK>
....
Cheers
Thanks!
--
......................................................................
__
/ / Oriol Martí i Bonvehí
C E / S / C A Departament de Sistemes i Xarxes
/_/ Centre de Serveis Científics i Acadèmics de Catalunya
Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
T. 93 551 62 12 · F. 93 205 6979 · [email protected]
Facebook (http://on.fb.me/vPv3oN) · Twitter @CE5CA · Linkedin
Subscriu-te al butlletí (www.cesca.cat/butlleti)
......................................................................
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
......................................................................
__
/ / Oriol Martí i Bonvehí
C E / S / C A Departament de Sistemes i Xarxes
/_/ Centre de Serveis Científics i Acadèmics de Catalunya
Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
T. 93 551 62 12 · F. 93 205 6979 · [email protected]
Facebook (http://on.fb.me/vPv3oN) · Twitter @CE5CA · Linkedin
Subscriu-te al butlletí (www.cesca.cat/butlleti)
......................................................................
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org