<div dir="ltr">Hi Darren,<div><br></div><div>Is it possible to change the Storage Allocation policy by cloud-init ?? as i want to deploy every VM with thin provisioning...i think the default method for the Template Provisioning is clone...</div>
<div><span class="" style="white-space:pre">        </span></div><div><span class="" style="white-space:pre">Thanks,</span></div><div><span class="" style="white-space:pre">Punit</span></div><div><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Aug 27, 2014 at 10:20 AM, Darren Hart <span dir="ltr">&lt;<a href="mailto:darren.hart@otago.ac.nz" target="_blank">darren.hart@otago.ac.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>So you essentially want to just deploy a new VM based on a template with a thin provisioned disk ? </div>
<div><br>
</div>
<div>When you create your VM based on the template check in advanced options – Resource allocation and see if the option there for template provisioning is set to clone or to thin provision. Clone in your case I believe would create a 40GB image file based
 on the template whereas thin provision will create you a thin provisioned disk just using the same actual data amount as the thin provisioned template. I’m pretty sure you can only do this if your template disk is thin (not preallocated) provisioned.</div>

<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;font-family:&#39;Times New Roman&#39;,serif;font-size:12pt">
<span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif">Darren Hart </span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif">|</span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif"> IT
 Manager </span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif">|</span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif"> Department of Biochemistry </span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif">|</span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif"> University
 of Otago<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0pt;margin-left:0cm;font-family:&#39;Times New Roman&#39;,serif;font-size:12pt">
<b><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif">T</span></b><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif"> - <a href="tel:%2B6434794965" value="+6434794965" target="_blank">+6434794965</a> </span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif">|</span><span style="color:rgb(31,73,125);font-size:10pt;font-family:&#39;Lucida Sans&#39;,sans-serif"> <b>M</b> -
 <a href="tel:%2B6421991638" value="+6421991638" target="_blank">+6421991638</a></span></p>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">

<span style="font-weight:bold">From: </span>Punit Dambiwal &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday, 27 August 2014 1:18 pm<br>
<span style="font-weight:bold">To: </span>Michal Skrivanek &lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;<br>
<span style="font-weight:bold">Cc: </span>&quot;<a href="mailto:ahadas@redhat.com" target="_blank">ahadas@redhat.com</a>&quot; &lt;<a href="mailto:ahadas@redhat.com" target="_blank">ahadas@redhat.com</a>&gt;, &quot;<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>&quot; &lt;<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>&gt;<br>

<span style="font-weight:bold">Subject: </span>Re: [ovirt-users] VM Deployment By Template<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi Michal,
<div><br>
</div>
<div>I want to deploy the VM with the template but the problem is in ovirt when you deploy the VM by template it copy the whole image(even thin or thick disk)...like if i have 40GB virtual size (actual size 1GB) disk....it will copy the whole 40GB to provision
 the virtual machine....so if i want to deploy 10 VM simultaneous then it will copy 4TB data and take long time to provision....</div>
<div><br>
</div>
<div>I want the way i can make the template with small size....and once i choose to create the virtual machine with 40GB...the VM deploy with the small template on the 40GB disk... is it possible with ovirt.. ??</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Punit </div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek <span dir="ltr">
&lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
On Aug 26, 2014, at 12:01 , Punit Dambiwal &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Michal,<br>
&gt;<br>
&gt; 2. I find disk size can not modify at the time of VM provisioning,is there any way to modify the VM disk size ??<br>
&gt;<br>
&gt; well, not really, AFAIK.<br>
&gt; create another disk, move your data, remove the original Or create a bigger thin provisioned disk at the beginning...<br>
&gt;<br>
&gt; I didn&#39;t understand the mean...i can create the another disk...it&#39;s ok...but how to move the data from the existing disk to new disk at the time of the VM deployment... ?? is there any way to move the data.. ??<br>

</div>
Hi,<br>
<br>
You would have to do that inside the guest…the same way as you would do it on real hardware…mount both disks, move the relevant data<br>
not trivial and not automated<br>
<br>
&gt;<br>
&gt; Another question is there any way to mount the img like i will create the VM with blank template with my preferred disk size and leter on install the OS through any OS template ??? i know i can install the OS through CD-ISO but i don&#39;t want the manual installation…<br>

<br>
so you want to have a preinstalled OS…so how did you want to use it?<br>
I probably don&#39;t understand what are you trying to achieve.<br>
Anything else than having a Template with OS and you deploy VMs from that….you need to change disk sizes for each such VM? Could it be done by adding an additional disk?<br>
<br>
Thanks,<br>
michal<br>
<div>
<div><br>
&gt;<br>
&gt; Thanks,<br>
&gt; Punit<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek &lt;<a href="mailto:michal.skrivanek@redhat.com" target="_blank">michal.skrivanek@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On Aug 26, 2014, at 05:26 , Punit Dambiwal &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi All,<br>
&gt; &gt;<br>
&gt; &gt; I have some questions regarding the VM deployment through OS template...<br>
&gt; &gt;<br>
&gt; &gt; 1. I have imported centos template from openstack glance (the actual size of the template is 16GB but used is 1GB)...now my question is if i deploy the new VM with this template,the process will copy the whole 16GB or just 1 GB to create the new VM ??<br>

&gt;<br>
&gt; if you deploy with thin provisioned disks it should be 1GB<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; 2. I find disk size can not modify at the time of VM provisioning,is there any way to modify the VM disk size ??<br>
&gt;<br>
&gt; well, not really, AFAIK.<br>
&gt; create another disk, move your data, remove the original.<br>
&gt; Or create a bigger thin provisioned disk at the beginning<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Punit<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal &lt;<a href="mailto:hypunit@gmail.com" target="_blank">hypunit@gmail.com</a>&gt; wrote:<br>
&gt; &gt; Hi All,<br>
&gt; &gt;<br>
&gt; &gt; I have some questions regarding the VM deployment through OS template...<br>
&gt; &gt;<br>
&gt; &gt; 1. I have imported centos template from openstack glance (the actual size of the template is 16GB but used is 1GB)...now my question is if i deploy the new VM with this template,the process will copy the whole 16GB or just 1 GB to create the new VM ??<br>

&gt; &gt;<br>
&gt; &gt; 2. I find disk size can not modify at the time of VM provisioning,is there any way to modify the VM disk size ??<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Punit<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br></div>