<div dir="ltr"><div><div><div><div>Dear OpenNebula Community,<br></div><div><br></div><div>The environment: a VT enabled physical machine with ubuntu 12.04 server OS and opennebula 3.8.1 front end (KVM, QEMU and libvirtd installed for hypervisor).<br>
<br>Configure the ~/etc/oned.conf to support HOOKS as below:<br><br>VM_HOOK = [<br>name = "on_failure",<br>on = "FAILED",<br>command = "/var/lib/one/var/remotes/hooks/fail.sh",<br>arguments = "VM $VMID" ]<br>
<br>Create a script /var/lib/one/var/remotes/hooks/fail.sh to capture the FAILED state event and do desired action. <br><br>To create a FAILED state event, after creating a VM image (below 1) is the VM image creation template) and before creating a VM (below 2) is the VM creation template), chmod -r /var/lib/image/win-xp-2.qcow2 to remove the read permission from the VM image file which is referred in the VM image creation template, but the VM can still be created successfully, while the VM creation should be failed and there should be error message like "read permission denied” in the ~/var/oned.log file.<br>
<br></div><div>It is much appreciated if anyone can help with this, to explain why the VM image creation and VM creation process don't work as it should be? Thank very much !<br></div><div><br>1) VM image creation template:<br>
</div><br>NAME = "win-xp-1"<br>PATH = /var/lib/image/win-xp-2.qcow2<br>TYPE = OS<br><br></div>2) VM creation template:<br><br>HOSTNAME = OneHost<br>#CONTEXT definition section<br>CONTEXT=[FILES="/var/lib/one/.ssh/id_rsa.pub /var/lib/one/image/setcontextvals.bat /var/lib/one/image/sethostname.vbs",<br>
HOSTNAME=WinXP-$VMID,<br>IP_PUBLIC="$NIC[IP, NETWORK=\"Small network\"]",<br>PASSWORD=password,<br>ROOT_PUBKEY=id_rsa.pub,<br>USERNAME=user]<br>#CAPACITY Definition<br>NAME=WindowsXP-NoPers<br>CPU=1<br>
MEMORY=1024<br># OS image, mapped to hda.<br>DISK=[ DRIVER=qcow2, READONLY=no, IMAGE_ID = 1, TARGET=hda, TYPE=disk ]<br>FEATURES=[ ACPI=yes ]<br># I/O Devices Section<br>GRAPHICS=[ TYPE=vnc ]<br>#NETWORK Section:<br>NIC=[ model=e1000, network = "Small network" ]<br>
#OS and BOOT Options Section<br>OS=[ ARCH=i686, BOOT=hd ]<br>#RAW Section<br>RAW=[ TYPE=kvm ]<br><br></div>Best regards,<br></div>Q.D.S.<br><div><div><div><div></div></div></div></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, Jan 24, 2014 at 11:50 PM, Qiubo Su (David Su) <span dir="ltr"><<a href="mailto:qiubosu@gmail.com" target="_blank">qiubosu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Dear OpenNebula Community, I use OpenNebula 3.8.1, can't update it to 4.4, so what ds.conf should look like to achieve the purpose? Thanks.<br></div><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
On Fri, Jan 24, 2014 at 11:30 PM, Tino Vazquez <span dir="ltr"><<a href="mailto:cvazquez@c12g.com" target="_blank">cvazquez@c12g.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
If you want to use the ssh drivers, you need to configure the DS as follows:<br>
<br>
NAME = production<br>
DS_MAD = ssh<br>
TM_MAD = ssh<br>
<br>
Support for ssh drivers for VMware were dropped in more recent<br>
releases, so its use is discouraged. Please update to 4.4 and use<br>
'vmfs' DS and TM drivers<br>
<br>
Regards,<br>
<div><br>
-Tino<br>
<br>
--<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<br>
--<br>
Constantino Vázquez Blanco, PhD, MSc<br>
Senior Infrastructure Architect at C12G Labs<br>
<a href="http://www.c12g.com" target="_blank">www.c12g.com</a> | @C12G | <a href="http://es.linkedin.com/in/tinova" target="_blank">es.linkedin.com/in/tinova</a><br>
<br>
--<br>
Confidentiality Warning: The information contained in this e-mail and<br>
any accompanying documents, unless otherwise expressly indicated, is<br>
confidential and privileged, and is intended solely for the person<br>
and/or entity to whom it is addressed (i.e. those identified in the<br>
"To" and "cc" box). They are the property of C12G Labs S.L..<br>
Unauthorized distribution, review, use, disclosure, or copying of this<br>
communication, or any part thereof, is strictly prohibited and may be<br>
unlawful. If you have received this e-mail in error, please notify us<br>
immediately by e-mail at <a href="mailto:abuse@c12g.com" target="_blank">abuse@c12g.com</a> and delete the e-mail and<br>
attachments and any copy from your system. C12G thanks you for your<br>
cooperation.<br>
<br>
<br>
</div><div><div>On Thu, Jan 23, 2014 at 10:55 PM, Qiubo Su (David Su) <<a href="mailto:qiubosu@gmail.com" target="_blank">qiubosu@gmail.com</a>> wrote:<br>
> Dear Tino and OpenNebula Community,<br>
><br>
> 1) can update the TM_MAD for datastore in Sunstone.<br>
><br>
> 2) the content of ds.conf is as below.<br>
><br>
> NAME = production<br>
> DS_MAD = vmware<br>
> TM_MAD = shared<br>
><br>
> do you mean need to update it as below?<br>
><br>
> NAME = production<br>
> DS_MAD = vmfs<br>
> TM_MAD = vmfs<br>
><br>
> if using the 1st ds.conf, it has to manually create the<br>
> /var/lib/one/var/datastores/100, so to be able to thin provisioned the<br>
> disk.vmdk (actually the Ubuntu.vmdk file in the package download from<br>
> <a href="http://www.trendsigma.net/vmware/ubuntu1110t.html" target="_blank">http://www.trendsigma.net/vmware/ubuntu1110t.html</a>) by running "vmkfstools<br>
> -username root -password redhat123 -server esxi01 -i '[100]<br>
> /images/disk.vmdk' -d thin '[100] /images/disk1.vmdk'" in the front end<br>
> server? (the name of this experiment is called "OpenNebula 3.8.1 and VMware<br>
> ESXI 5.0.0 Using shared VMware and ssh transfer drivers").<br>
><br>
> if using the 2nd ds.conf, can & how can the purpose of the experiment be<br>
> achieved?<br>
><br>
> kind regards,<br>
> q.s.<br>
><br>
><br>
> On Wed, Jan 22, 2014 at 11:04 PM, Tino Vazquez <<a href="mailto:cvazquez@c12g.com" target="_blank">cvazquez@c12g.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> About 1), do you get the same behaviour if you try and change it<br>
>> through Sunstone?<br>
>><br>
>> Regarding 2), can you share the contents of the datastore template<br>
>> (ds.conf)? If you want to use VMware datastores, please note that the<br>
>> correct name for the TM and DS drivers are 'vmfs'. These drivers<br>
>> *won't* create a directory in the front-end since the datastores are<br>
>> only present in the ESX hosts.<br>
>><br>
>> Moreover, BASE_PATH in VMware datastores need to be set to /vmfs/volumes.<br>
>><br>
>> Best,<br>
>><br>
>> -Tino<br>
>><br>
>> --<br>
>> OpenNebula - Flexible Enterprise Cloud Made Simple<br>
>><br>
>> --<br>
>> Constantino Vázquez Blanco, PhD, MSc<br>
>> Senior Infrastructure Architect at C12G Labs<br>
>> <a href="http://www.c12g.com" target="_blank">www.c12g.com</a> | @C12G | <a href="http://es.linkedin.com/in/tinova" target="_blank">es.linkedin.com/in/tinova</a><br>
>><br>
>> --<br>
>> Confidentiality Warning: The information contained in this e-mail and<br>
>> any accompanying documents, unless otherwise expressly indicated, is<br>
>> confidential and privileged, and is intended solely for the person<br>
>> and/or entity to whom it is addressed (i.e. those identified in the<br>
>> "To" and "cc" box). They are the property of C12G Labs S.L..<br>
>> Unauthorized distribution, review, use, disclosure, or copying of this<br>
>> communication, or any part thereof, is strictly prohibited and may be<br>
>> unlawful. If you have received this e-mail in error, please notify us<br>
>> immediately by e-mail at <a href="mailto:abuse@c12g.com" target="_blank">abuse@c12g.com</a> and delete the e-mail and<br>
>> attachments and any copy from your system. C12G thanks you for your<br>
>> cooperation.<br>
>><br>
>><br>
>> On Sat, Jan 18, 2014 at 6:10 AM, Qiubo Su (David Su) <<a href="mailto:qiubosu@gmail.com" target="_blank">qiubosu@gmail.com</a>><br>
>> wrote:<br>
>> > Dear OpenNebula Community,<br>
>> ><br>
>> > For 2) problem listed in the below previous email, I created the<br>
>> > datastore<br>
>> > manually by running "onedatastore create ds.conf" and created another<br>
>> > one<br>
>> > from Sunstone, but in both cases, can't see the<br>
>> > /var/lib/one/var/datastores/101 directory in the file system (../102<br>
>> > directory in the Sunstone case), even though can see the "BASE PATH :<br>
>> > /var/lib/one/var/datastores/101" when run "onedatastore show 101".<br>
>> ><br>
>> > It is much appreciated if anyone can help with this, tell me why there<br>
>> > is<br>
>> > this problem and how to fix it? Thank you very much and Have a Great<br>
>> > Weekend<br>
>> > !<br>
>> ><br>
>> ><br>
>> > ******************************************************************************************<br>
>> ><br>
>> > Sat Jan 18 17:48:40 2014 [ReM][D]: Req:5712 UID:0 HostPoolInfo invoked<br>
>> > Sat Jan 18 17:48:40 2014 [ReM][D]: Req:5712 UID:0 HostPoolInfo result<br>
>> > SUCCESS, "<HOST_POOL><HOST><ID..."<br>
>> > Sat Jan 18 17:48:40 2014 [ReM][D]: Req:3376 UID:0 VirtualMachinePoolInfo<br>
>> > invoked, -2, -1, -1, -1<br>
>> > Sat Jan 18 17:48:40 2014 [ReM][D]: Req:3376 UID:0 VirtualMachinePoolInfo<br>
>> > result SUCCESS, "<VM_POOL></VM_POOL>"<br>
>> > Sat Jan 18 17:48:40 2014 [ReM][D]: Req:4704 UID:0 AclInfo invoked<br>
>> > Sat Jan 18 17:48:40 2014 [ReM][D]: Req:4704 UID:0 AclInfo result<br>
>> > SUCCESS,<br>
>> > "<ACL_POOL><ACL><ID>0..."<br>
>> > Sat Jan 18 17:48:43 2014 [AuM][D]: Message received: LOG I 79 ExitCode:<br>
>> > 0<br>
>> ><br>
>> > Sat Jan 18 17:48:43 2014 [AuM][I]: ExitCode: 0<br>
>> > Sat Jan 18 17:48:43 2014 [AuM][D]: Message received: AUTHENTICATE<br>
>> > SUCCESS 79<br>
>> > -<br>
>> ><br>
>> > Sat Jan 18 17:48:43 2014 [ReM][D]: Req:32 UID:0 DatastoreAllocate<br>
>> > invoked,<br>
>> > "DISK_TYPE="block"...", -1<br>
>> > Sat Jan 18 17:48:43 2014 [ReM][D]: Req:32 UID:0 DatastoreAllocate result<br>
>> > SUCCESS, 102<br>
>> > Sat Jan 18 17:48:43 2014 [ReM][D]: Req:6800 UID:0 DatastoreInfo invoked,<br>
>> > 102<br>
>> > Sat Jan 18 17:48:43 2014 [ReM][D]: Req:6800 UID:0 DatastoreInfo result<br>
>> > SUCCESS, "<DATASTORE><ID>102</..."<br>
>> > Sat Jan 18 17:48:45 2014 [ReM][D]: Req:1200 UID:0 DatastorePoolInfo<br>
>> > invoked<br>
>> > Sat Jan 18 17:48:45 2014 [ReM][D]: Req:1200 UID:0 DatastorePoolInfo<br>
>> > result<br>
>> > SUCCESS, "<DATASTORE_POOL><DAT..."<br>
>> > Sat Jan 18 17:48:51 2014 [ReM][D]: Req:6880 UID:0 TemplatePoolInfo<br>
>> > invoked,<br>
>> > -2, -1, -1<br>
>> > Sat Jan 18 17:48:51 2014 [ReM][D]: Req:6880 UID:0 TemplatePoolInfo<br>
>> > result<br>
>> > SUCCESS, "<VMTEMPLATE_POOL></V..."<br>
>> > Sat Jan 18 17:49:05 2014 [ReM][D]: Req:5360 UID:0 HostPoolInfo invoked<br>
>> > Sat Jan 18 17:49:05 2014 [ReM][D]: Req:5360 UID:0 HostPoolInfo result<br>
>> > SUCCESS, "<HOST_POOL><HOST><ID..."<br>
>> > Sat Jan 18 17:49:06 2014 [ReM][D]: Req:3328 UID:0 AclInfo invoked<br>
>> > Sat Jan 18 17:49:06 2014 [ReM][D]: Req:3328 UID:0 AclInfo result<br>
>> > SUCCESS,<br>
>> > "<ACL_POOL><ACL><ID>0..."<br>
>> ><br>
>> ><br>
>> > On Fri, Jan 17, 2014 at 9:49 PM, Qiubo Su (David Su) <<a href="mailto:qiubosu@gmail.com" target="_blank">qiubosu@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Dear OpenNebula Community,<br>
>> >><br>
>> >> 1) run "onedatastore list", get below return:<br>
>> >><br>
>> >>   ID NAME                   CLUSTER         IMAGES TYPE     TM<br>
>> >>   0 system                    -                      0 -<br>
>> >> shared<br>
>> >>   1 default                     -                      2 fs<br>
>> >> shared<br>
>> >><br>
>> >> run "onedatastore update 0" and change the TM_MAD from "shared" to<br>
>> >> "ssh"<br>
>> >> and save it, but the TM of datastore 0 is still "shared", doesn't<br>
>> >> change to<br>
>> >> "ssh". why?<br>
>> >><br>
>> >> 2) manually create a datastore production, and "onedatastore list"<br>
>> >> return<br>
>> >> as below:<br>
>> >><br>
>> >>   ID NAME                   CLUSTER         IMAGES TYPE     TM<br>
>> >>   0 system                    -                      0 -<br>
>> >> shared<br>
>> >>   1 default                     -                      2 fs<br>
>> >> shared<br>
>> >>   100 production            -                      vmware<br>
>> >> shared<br>
>> >><br>
>> >> but there is /var/lib/one/var/datastores/100 directory, only<br>
>> >> /var/lib/one/var/datastores/0 and /var/lib/one/var/datastores/1<br>
>> >> directories.<br>
>> >> why?<br>
>> >><br>
>> >> thanks for your help for these.<br>
>> >><br>
>> >> best regards,<br>
>> >> q.s.<br>
>> ><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Users mailing list<br>
>> > <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
>> > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>