<div dir="ltr">Hi All,<div><br></div><div>Please help me to solve this problem...or suggest me any workaround ??</div><div><br></div><div>Thanks,</div><div>Punit </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Aug 27, 2014 at 8:01 PM, Karli Sjöberg <span dir="ltr">&lt;<a href="mailto:Karli.Sjoberg@slu.se" target="_blank">Karli.Sjoberg@slu.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:<br>
&gt; Hi Itamar,<br>
&gt;<br>
&gt;<br>
</div><div class="">&gt; It&#39;s the same as i used and discussed in last reply...create the VM<br>
&gt; with 1GB virtual template and expand the disk size after<br>
&gt; deployment...but the problem here is disk will expand or resize...but<br>
&gt; it will not make any changes in the existing partition table..that<br>
&gt; means after expand disk all the existing partition will remain<br>
&gt; same....then you need to manual login in to server and make the<br>
&gt; changes with the help of fdisk and lvm commands..<br>
&gt;<br>
&gt;<br>
&gt; I am looking for the way we can resize the disk...and at the same time<br>
&gt; when the disk will expand...it should be resize the partition table...<br>
<br>
</div>I think this is what you were after:<br>
&quot;QEMU-GA<br>
<br>
    support for notifying the guest and updating the size of the visible<br>
disk: To be integrated &quot;<br>
<br>
So maybe you could post an RFE on that for &quot;qemu-ga&quot;? Help testing?<br>
<br>
/K<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt;<br>
&gt; Is the cloud-init...custom script can do this or not ??<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Punit<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim &lt;<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>&gt; wrote:<br>
&gt;         On 08/27/2014 12:47 PM, Punit Dambiwal wrote:<br>
&gt;<br>
&gt;                 Hi Itamar,<br>
&gt;<br>
&gt;                 To edit the disk size are you referring this &quot;Another<br>
&gt;                 way i got is<br>
&gt;                 create the VM with 1GB virtual template and expand the<br>
&gt;                 disk size after<br>
&gt;                 deployment...but the problem here is disk will<br>
&gt;                 expand...but it will not<br>
&gt;                 done any changes in the existing partition table..that<br>
&gt;                 means after<br>
&gt;                 expand disk you need to manual login in to server and<br>
&gt;                 make the changes<br>
&gt;                 with the help of fdisk and lvm commands...&quot;<br>
&gt;<br>
&gt;                 Or it&#39;s different then the upper one...please let me<br>
&gt;                 know how to perform<br>
&gt;                 this...if any screen shot you can provide for better<br>
&gt;                 understanding..<br>
&gt;<br>
&gt;<br>
&gt;         <a href="http://www.ovirt.org/Features/Online_Virtual_Drive_Resize" target="_blank">http://www.ovirt.org/Features/Online_Virtual_Drive_Resize</a><br>
&gt;         adding derez for follow up questions<br>
&gt;<br>
&gt;<br>
&gt;                 Thanks,<br>
&gt;                 Punit<br>
&gt;<br>
&gt;<br>
&gt;                 On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim<br>
&gt;                 &lt;<a href="mailto:iheim@redhat.com">iheim@redhat.com</a><br>
&gt;<br>
&gt;                 &lt;mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;                     On 08/27/2014 12:08 PM, Punit Dambiwal wrote:<br>
&gt;<br>
&gt;                         Hi Itamar,<br>
&gt;<br>
&gt;                         Thanks for the update....Yes.. i want to<br>
&gt;                 create different size<br>
&gt;                         VM with<br>
&gt;                         the same OS template...<br>
&gt;<br>
&gt;                         ------------<br>
&gt;                         3. we support &quot;disk resize&quot; since 3.4 (iirc),<br>
&gt;                 which you can do<br>
&gt;                         post VM<br>
&gt;                         provisioning.<br>
&gt;<br>
&gt;                         considering #3, then #1 should be easy to<br>
&gt;                 support as well these<br>
&gt;                         days.<br>
&gt;                         please open an RFE.<br>
&gt;                         ------------<br>
&gt;<br>
&gt;                         Could you please more elaborate point number<br>
&gt;                 3...how to use<br>
&gt;                         it..i will<br>
&gt;                         go with this one ...<br>
&gt;<br>
&gt;<br>
&gt;                     iirc, you just need to edit the disk size when vm<br>
&gt;                 is down or up (for<br>
&gt;                     up, only for specific disk interfaces, virtio-blk,<br>
&gt;                 not ide, iirc)<br>
&gt;<br>
&gt;                         Thanks,<br>
&gt;                         Punit<br>
&gt;<br>
&gt;<br>
&gt;                         On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim<br>
&gt;                 &lt;<a href="mailto:iheim@redhat.com">iheim@redhat.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>&gt;<br>
&gt;<br>
&gt;                         &lt;mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>&gt;&gt;&gt; wrote:<br>
&gt;<br>
&gt;                              On 08/27/2014 04:18 AM, Punit Dambiwal<br>
&gt;                 wrote:<br>
&gt;<br>
&gt;                                  Hi Michal,<br>
&gt;<br>
&gt;                                  I want to deploy the VM with the<br>
&gt;                 template but the<br>
&gt;                         problem is in<br>
&gt;                                  ovirt<br>
&gt;                                  when you deploy the VM by template it<br>
&gt;                 copy the whole<br>
&gt;                         image(even<br>
&gt;                                  thin or<br>
&gt;                                  thick disk)...like if i have 40GB<br>
&gt;                 virtual size (actual<br>
&gt;                         size 1GB)<br>
&gt;                                  disk....it will copy the whole 40GB<br>
&gt;                 to provision the<br>
&gt;                         virtual<br>
&gt;                                  machine....so if i want to deploy 10<br>
&gt;                 VM simultaneous<br>
&gt;                         then it<br>
&gt;                                  will copy<br>
&gt;                                  4TB data and take long time to<br>
&gt;                 provision....<br>
&gt;<br>
&gt;                                  I want the way i can make the<br>
&gt;                 template with small<br>
&gt;                         size....and once i<br>
&gt;                                  choose to create the virtual machine<br>
&gt;                 with 40GB...the VM<br>
&gt;                         deploy<br>
&gt;                                  with the<br>
&gt;                                  small template on the 40GB disk... is<br>
&gt;                 it possible with<br>
&gt;                         ovirt.. ??<br>
&gt;<br>
&gt;<br>
&gt;                              so you want to provision a VM with a<br>
&gt;                 different disk size<br>
&gt;                         than template.<br>
&gt;                              good point. some thoughts:<br>
&gt;                              1. for thinly provisioned (qcow2) - its<br>
&gt;                 COW, hence the same<br>
&gt;                         size.<br>
&gt;                              2. for clone - actually, no reason<br>
&gt;                 shouldn&#39;t be supported<br>
&gt;                         easily.<br>
&gt;                              3. we support &quot;disk resize&quot; since 3.4<br>
&gt;                 (iirc), which you can<br>
&gt;                         do post<br>
&gt;                              VM provisioning.<br>
&gt;<br>
&gt;                              considering #3, then #1 should be easy to<br>
&gt;                 support as well these<br>
&gt;                              days. please open an RFE.<br>
&gt;<br>
&gt;<br>
&gt;                                  Thanks,<br>
&gt;                                  Punit<br>
&gt;<br>
&gt;<br>
&gt;                                  On Tue, Aug 26, 2014 at 9:01 PM,<br>
&gt;                 Michal Skrivanek<br>
&gt;                                  &lt;<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>&gt;<br>
&gt;                                  &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>&gt;&gt;<br>
&gt;<br>
&gt;                                  &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>&gt;__<a href="http://red__hat.com" target="_blank">red__hat.com</a><br>
&gt;                 &lt;<a href="http://redhat.com" target="_blank">http://redhat.com</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;                                  &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;                                       On Aug 26, 2014, at 12:01 ,<br>
&gt;                 Punit Dambiwal<br>
&gt;                                  &lt;<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;<br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;&gt;<br>
&gt;                                       &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;<br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;<br>
&gt;                                        &gt; Hi Michal,<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; 2. I find disk size can not<br>
&gt;                 modify at the time<br>
&gt;                         of VM<br>
&gt;                                       provisioning,is there any way to<br>
&gt;                 modify the VM<br>
&gt;                         disk size ??<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; well, not really, AFAIK.<br>
&gt;                                        &gt; create another disk, move<br>
&gt;                 your data, remove the<br>
&gt;                         original Or<br>
&gt;                                       create a bigger thin provisioned<br>
&gt;                 disk at the<br>
&gt;                         beginning...<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; I didn&#39;t understand the<br>
&gt;                 mean...i can create the<br>
&gt;                         another<br>
&gt;                                       disk...it&#39;s ok...but how to move<br>
&gt;                 the data from the<br>
&gt;                         existing<br>
&gt;                                  disk to<br>
&gt;                                       new disk at the time of the VM<br>
&gt;                 deployment... ?? is<br>
&gt;                         there<br>
&gt;                                  any way to<br>
&gt;                                       move the data.. ??<br>
&gt;                                       Hi,<br>
&gt;<br>
&gt;                                       You would have to do that inside<br>
&gt;                 the guest…the<br>
&gt;                         same way as<br>
&gt;                                  you would<br>
&gt;                                       do it on real hardware…mount<br>
&gt;                 both disks, move the<br>
&gt;                         relevant data<br>
&gt;                                       not trivial and not automated<br>
&gt;<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; Another question is there any<br>
&gt;                 way to mount the<br>
&gt;                         img like<br>
&gt;                                  i will<br>
&gt;                                       create the VM with blank<br>
&gt;                 template with my<br>
&gt;                         preferred disk<br>
&gt;                                  size and<br>
&gt;                                       leter on install the OS through<br>
&gt;                 any OS template<br>
&gt;                         ??? i know<br>
&gt;                                  i can<br>
&gt;                                       install the OS through CD-ISO<br>
&gt;                 but i don&#39;t want the<br>
&gt;                         manual<br>
&gt;                                  installation…<br>
&gt;<br>
&gt;                                       so you want to have a<br>
&gt;                 preinstalled OS…so how did<br>
&gt;                         you want<br>
&gt;                                  to use it?<br>
&gt;                                       I probably don&#39;t understand what<br>
&gt;                 are you trying to<br>
&gt;                         achieve.<br>
&gt;                                       Anything else than having a<br>
&gt;                 Template with OS and<br>
&gt;                         you deploy<br>
&gt;                                  VMs from<br>
&gt;                                       that….you need to change disk<br>
&gt;                 sizes for each such<br>
&gt;                         VM? Could<br>
&gt;                                  it be<br>
&gt;                                       done by adding an additional<br>
&gt;                 disk?<br>
&gt;<br>
&gt;                                       Thanks,<br>
&gt;                                       michal<br>
&gt;<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; Thanks,<br>
&gt;                                        &gt; Punit<br>
&gt;                                        &gt;<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; On Tue, Aug 26, 2014 at 5:51<br>
&gt;                 PM, Michal Skrivanek<br>
&gt;                                       &lt;<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>&gt;<br>
&gt;                                  &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>&gt;&gt;<br>
&gt;<br>
&gt;                                  &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>&gt;__<a href="http://red__hat.com" target="_blank">red__hat.com</a><br>
&gt;                 &lt;<a href="http://redhat.com" target="_blank">http://redhat.com</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;                                  &lt;mailto:<a href="mailto:michal.skrivanek@">michal.skrivanek@</a>__<a href="http://redhat.com" target="_blank">redhat.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>&gt;&gt;&gt;&gt;<br>
&gt;<br>
&gt;                                       wrote:<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; On Aug 26, 2014, at 05:26 ,<br>
&gt;                 Punit Dambiwal<br>
&gt;                                  &lt;<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;<br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;&gt;<br>
&gt;<br>
&gt;                                       &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;<br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;<br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; &gt; Hi All,<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; I have some questions<br>
&gt;                 regarding the VM deployment<br>
&gt;                                  through OS<br>
&gt;                                       template...<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; 1. I have imported centos<br>
&gt;                 template from openstack<br>
&gt;                                  glance (the<br>
&gt;                                       actual size of the template is<br>
&gt;                 16GB but used is<br>
&gt;                         1GB)...now my<br>
&gt;                                       question is if i deploy the new<br>
&gt;                 VM with this<br>
&gt;                         template,the<br>
&gt;                                  process<br>
&gt;                                       will copy the whole 16GB or just<br>
&gt;                 1 GB to create<br>
&gt;                         the new VM ??<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; if you deploy with thin<br>
&gt;                 provisioned disks it<br>
&gt;                         should be 1GB<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; 2. I find disk size can not<br>
&gt;                 modify at the<br>
&gt;                         time of VM<br>
&gt;                                       provisioning,is there any way to<br>
&gt;                 modify the VM<br>
&gt;                         disk size ??<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; well, not really, AFAIK.<br>
&gt;                                        &gt; create another disk, move<br>
&gt;                 your data, remove the<br>
&gt;                         original.<br>
&gt;                                        &gt; Or create a bigger thin<br>
&gt;                 provisioned disk at the<br>
&gt;                         beginning<br>
&gt;                                        &gt;<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; Thanks,<br>
&gt;                                        &gt; &gt; Punit<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; On Mon, Aug 25, 2014 at<br>
&gt;                 5:42 PM, Punit Dambiwal<br>
&gt;                                       &lt;<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;<br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;&gt;<br>
&gt;<br>
&gt;                                  &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;<br>
&gt;<br>
&gt;                         &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a><br>
&gt;                 &lt;mailto:<a href="mailto:hypunit@gmail.com">hypunit@gmail.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;                                        &gt; &gt; Hi All,<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; I have some questions<br>
&gt;                 regarding the VM deployment<br>
&gt;                                  through OS<br>
&gt;                                       template...<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; 1. I have imported centos<br>
&gt;                 template from openstack<br>
&gt;                                  glance (the<br>
&gt;                                       actual size of the template is<br>
&gt;                 16GB but used is<br>
&gt;                         1GB)...now my<br>
&gt;                                       question is if i deploy the new<br>
&gt;                 VM with this<br>
&gt;                         template,the<br>
&gt;                                  process<br>
&gt;                                       will copy the whole 16GB or just<br>
&gt;                 1 GB to create<br>
&gt;                         the new VM ??<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; 2. I find disk size can not<br>
&gt;                 modify at the<br>
&gt;                         time of VM<br>
&gt;                                       provisioning,is there any way to<br>
&gt;                 modify the VM<br>
&gt;                         disk size ??<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt; &gt; Thanks,<br>
&gt;                                        &gt; &gt; Punit<br>
&gt;                                        &gt; &gt;<br>
&gt;                                        &gt;<br>
&gt;                                        &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
<br>
Med Vänliga Hälsningar<br>
<br>
-------------------------------------------------------------------------------<br>
Karli Sjöberg<br>
Swedish University of Agricultural Sciences Box 7079 (Visiting Address<br>
Kronåsvägen 8)<br>
S-750 07 Uppsala, Sweden<br>
Phone:  <a href="tel:%2B46-%280%2918-67%2015%2066" value="+4618671566">+46-(0)18-67 15 66</a><br>
<a href="mailto:karli.sjoberg@slu.se">karli.sjoberg@slu.se</a><br>
</font></span></blockquote></div><br></div>