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