<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all.<br>
<br>
I have OpenNebula 1.4b and 2 x VMWare ESX server. Disk sharing is via
NFS. VM manipulation is mostly working. Creating, deploying, listing
hosts and VMs is fine.<br>
<br>
I would like to setup contextualization in this scenario, but I am
running into missing pieces, I would say. It seams to me that some
piece of the puzzle is missing for VMWare.<br>
<br>
This is our template file:<br>
===============================================<br>
MEMORY=512<br>
CPU=1<br>
<br>
DISK = [<br>
source="/srv/cloud/images/vmt-linux-ubuntu9",<br>
clone="yes",<br>
save="yes"<br>
]<br>
<br>
CONTEXT = [<br>
admin_user = "admin",<br>
admin_pass = "admin",<br>
admin_group = "admin",<br>
files =
"/srv/cloud/contexts/vmt-linux-ubuntu9/setup_admin.sh
/srv/cloud/contexts/vmt-linux-ubuntu9/cleanup.sh",<br>
target = "hdb"<br>
]<br>
===============================================<br>
<br>
When I deploy an instance using this template this is what appears in
the log:<br>
<br>
[TM][D]: Message received: LOG - 69 tm_clone.sh:
vadmin:/srv/cloud/images/vmt-linux-ubuntu9
gc2.levi9.com:/srv/cloud/one/var/69/images/disk.0<br>
[TM][D]: Message received: LOG - 69 tm_clone.sh: Cloning
vadmin:/srv/cloud/images/vmt-linux-ubuntu9<br>
[TM][D]: Message received: LOG - 69 tm_context.sh: Executed "mkdir -p
/srv/cloud/one/var/69/images/isofiles".<br>
[TM][D]: Message received: LOG - 69 tm_context.sh: Executed "cp -R
/srv/cloud/one/var/69/context.sh /srv/cloud/one/var/69/images/isofiles".<br>
[TM][D]: Message received: LOG - 69 tm_context.sh: Executed "cp -R
/srv/cloud/contexts/vmt-linux-ubuntu9/setup_admin.sh
/srv/cloud/one/var/69/images/isofiles".<br>
[TM][D]: Message received: LOG - 69 tm_context.sh: Executed "cp -R
/srv/cloud/contexts/vmt-linux-ubuntu9/cleanup.sh
/srv/cloud/one/var/69/images/isofiles".<br>
[TM][D]: Message received: LOG - 69 tm_context.sh: Executed "cp -R
/srv/cloud/contexts/vmt-linux-ubuntu9/run.sh
/srv/cloud/one/var/69/images/isofiles".<br>
[TM][D]: Message received: LOG - 69 tm_context.sh: Executed "mkisofs -o
/srv/cloud/one/var/69/images/disk.1 -J -R
/srv/cloud/one/var/69/images/isofiles".<br>
[TM][D]: Message received: LOG - 69 tm_context.sh: Executed "rm -rf
/srv/cloud/one/var/69/images/isofiles".<br>
[TM][D]: Message received: TRANSFER SUCCESS 69 -<br>
[VMM][D]: Message received: DEPLOY SUCCESS 69 one-69-69<br>
[VMM][D]: Message received: dddd<br>
<br>
The machine is started just fine, but the ISO file, here named "disk.1"
is not copied to ${ONE_LOCATION}/var/one-69. Furthermore, there is no
change in VM's devices, the old CD-ROM is still a "raw-device", just as
it was. I would expect OpenNebula to alter the VMX file of the virtual
machine and to set the existing or an additional CD/ROM to be served
from that ISO file. This is not happening.<br>
<br>
Now, if I log into VMWare management console and manually set the the
CD-ROM device to be "ISO file" and point it to the "disk.1", I can
mount that ISO file in Ubuntu.<br>
<br>
So, the one piece of the puzzle that seams to be missing, IMO, is some
part of the code to either manipulate VMX file and define a CD-ROM, or
to issue a Web Service request to VMWare, via VIM 2.5 API to do this.<br>
<br>
So, guys, what would be your take on this issue?<br>
<br>
Nix.<br>
<div class="moz-signature">-- <br>
<title>Levi9 Signature</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
.signs1{ font-size: 11pt; font-family: Wingdings }
.signs2{ font-size: 11pt; font-family: Webdings }
</style>
<div
style="font-family: Tahoma,sans-serif; font-size: 8pt; color: black;">
<span style="font-size: 10pt;"> Met vriendelijke groet / Kind regards,<br>
Nikola Milutinovic<br>
Sr Java Developer<br>
Levi9 Global Sourcing<br>
</span>
<hr> <font face="Wingdings" size="3">.</font> <span> Jan van
Goyenkade 8, 1075 HP Amsterdam, The Netherlands</span> <br>
<font face="Wingdings" size="3">(</font> <span> +31 (0) 20 7547900
ext 2056</span> <br>
<font face="Wingdings" size="3">(</font> <span> +381 (0) 21 4895800
ext 2056</span> <br>
<font face="Webdings" size="3">È</font> <span> +381 (0) 64 2202824</span>
<br>
<font face="Wingdings" size="3">*</font> <span> <a
href="mailto:n.milutinovic@Levi9.com">n.milutinovic@Levi9.com</a></span>
<br>
<font face="Webdings" size="3">^</font> <span> Skype:
nikola.milutinovic</span> <br>
<font face="Webdings" size="3">ü</font> <span> <a target="_blank"
title="http://www.levi9.com/" href="http://www.levi9.com/">www.levi9.com</a></span>
<br>
<span> <br>
Chamber of commerce Levi9 Global Sourcing BV: 34221951<br>
Chamber of commerce Levi9 Global Sourcing Benelux BV: 34224746<br>
</span>
<hr> <span> This e-mail may contain confidential or privileged
information. If you are not (one of) the intended recipient(s), please
notify the sender immediately by reply e-mail and delete this message
and any attachments permanently without retaining a copy. Any review,
disclosure, copying, distribution or taking any action in reliance on
the contents of this e-mail by persons or entities other than the
intended recipient(s) is strictly prohibited and may be unlawful. <br>
<br>
The services of Levi9 are exclusively subject to its general terms and
conditions. These general terms and conditions can be found on <a
target="_blank" title="http://www.levi9.com/"
href="http://www.levi9.com/">www.levi9.com</a> and a copy will be
promptly submitted to you on your request and free of charge.<br>
</span> </div>
</div>
</body>
</html>