Re: [ovirt-users] VM Deployment By Template

2014-09-02 Thread Punit Dambiwal
Hi All,

Can anyone suggest me the good way to achieve thisor any script which i
can put in to cloud-init...to modify the root partition..

Thanks,
Punit


On Fri, Aug 29, 2014 at 9:25 AM, Punit Dambiwal  wrote:

> Hi All,
>
> I read this article...can this help...
>
> https://catn.com/2013/06/03/resize-a-centos-virtual-machine-image/
>
> Thanks,
> Punit
>
>
> On Thu, Aug 28, 2014 at 10:33 PM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
>
>>
>> On Aug 27, 2014, at 13:52 , Punit Dambiwal  wrote:
>>
>> > Hi Itamar,
>> >
>> > It's the same as i used and discussed in last reply...create the VM
>> with 1GB virtual template and expand the disk size after deployment...but
>> the problem here is disk will expand or resize...but it will not make any
>> changes in the existing partition table..that means after expand disk all
>> the existing partition will remain samethen you need to manual login in
>> to server and make the changes with the help of fdisk and lvm commands..
>> >
>> > I am looking for the way we can resize the disk...and at the same time
>> when the disk will expand...it should be resize the partition table...
>> >
>> > Is the cloud-init...custom script can do this or not ??
>>
>> needs to be a custom script specific to the particular guest OS, I
>> suppose.
>> something like "lvresize --resizefs …"
>> Maybe some rescan of partitions (if the missing piece is indeed the
>> missing qemu-ga notification) - then just force it with fdisk
>>
>> Thanks,
>> michal
>>
>> >
>> > Thanks,
>> > Punit
>> >
>> >
>> > On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
>> > On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
>> > Hi Itamar,
>> >
>> > To edit the disk size are you referring this "Another way i got is
>> > create the VM with 1GB virtual template and expand the disk size after
>> > deployment...but the problem here is disk will expand...but it will not
>> > done any changes in the existing partition table..that means after
>> > expand disk you need to manual login in to server and make the changes
>> > with the help of fdisk and lvm commands..."
>> >
>> > Or it's different then the upper one...please let me know how to perform
>> > this...if any screen shot you can provide for better understanding..
>> >
>> > http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
>> > adding derez for follow up questions
>> >
>> >
>> > Thanks,
>> > Punit
>> >
>> >
>> > On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim > > > wrote:
>> >
>> > On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
>> >
>> > Hi Itamar,
>> >
>> > Thanks for the updateYes.. i want to create different size
>> > VM with
>> > the same OS template...
>> >
>> > 
>> > 3. we support "disk resize" since 3.4 (iirc), which you can do
>> > post VM
>> > provisioning.
>> >
>> > considering #3, then #1 should be easy to support as well these
>> > days.
>> > please open an RFE.
>> > 
>> >
>> > Could you please more elaborate point number 3...how to use
>> > it..i will
>> > go with this one ...
>> >
>> >
>> > iirc, you just need to edit the disk size when vm is down or up (for
>> > up, only for specific disk interfaces, virtio-blk, not ide, iirc)
>> >
>> > Thanks,
>> > Punit
>> >
>> >
>> > On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim > > 
>> > >> wrote:
>> >
>> >  On 08/27/2014 04:18 AM, Punit Dambiwal wrote:
>> >
>> >  Hi Michal,
>> >
>> >  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)
>> >  diskit will copy the whole 40GB to provision the
>> > virtual
>> >  machineso if i want to deploy 10 VM simultaneous
>> > then it
>> >  will copy
>> >  4TB data and take long time to provision
>> >
>> >  I want the way i can make the template with small
>> > sizeand 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.. ??
>> >
>> >
>> >  so you want to provision a VM with a different disk size
>> > than template.
>> >  good point. some thoughts:
>> >  1. for thinly provisioned (qcow2) - its COW, hence the same
>> > size.
>> >  2. for clone - actually, no reason shouldn't be supported
>> 

Re: [ovirt-users] VM Deployment By Template

2014-08-28 Thread Punit Dambiwal
Hi All,

I read this article...can this help...

https://catn.com/2013/06/03/resize-a-centos-virtual-machine-image/

Thanks,
Punit


On Thu, Aug 28, 2014 at 10:33 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On Aug 27, 2014, at 13:52 , Punit Dambiwal  wrote:
>
> > Hi Itamar,
> >
> > It's the same as i used and discussed in last reply...create the VM with
> 1GB virtual template and expand the disk size after deployment...but the
> problem here is disk will expand or resize...but it will not make any
> changes in the existing partition table..that means after expand disk all
> the existing partition will remain samethen you need to manual login in
> to server and make the changes with the help of fdisk and lvm commands..
> >
> > I am looking for the way we can resize the disk...and at the same time
> when the disk will expand...it should be resize the partition table...
> >
> > Is the cloud-init...custom script can do this or not ??
>
> needs to be a custom script specific to the particular guest OS, I suppose.
> something like "lvresize --resizefs …"
> Maybe some rescan of partitions (if the missing piece is indeed the
> missing qemu-ga notification) - then just force it with fdisk
>
> Thanks,
> michal
>
> >
> > Thanks,
> > Punit
> >
> >
> > On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
> > On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
> > Hi Itamar,
> >
> > To edit the disk size are you referring this "Another way i got is
> > create the VM with 1GB virtual template and expand the disk size after
> > deployment...but the problem here is disk will expand...but it will not
> > done any changes in the existing partition table..that means after
> > expand disk you need to manual login in to server and make the changes
> > with the help of fdisk and lvm commands..."
> >
> > Or it's different then the upper one...please let me know how to perform
> > this...if any screen shot you can provide for better understanding..
> >
> > http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
> > adding derez for follow up questions
> >
> >
> > Thanks,
> > Punit
> >
> >
> > On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim  > > wrote:
> >
> > On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
> >
> > Hi Itamar,
> >
> > Thanks for the updateYes.. i want to create different size
> > VM with
> > the same OS template...
> >
> > 
> > 3. we support "disk resize" since 3.4 (iirc), which you can do
> > post VM
> > provisioning.
> >
> > considering #3, then #1 should be easy to support as well these
> > days.
> > please open an RFE.
> > 
> >
> > Could you please more elaborate point number 3...how to use
> > it..i will
> > go with this one ...
> >
> >
> > iirc, you just need to edit the disk size when vm is down or up (for
> > up, only for specific disk interfaces, virtio-blk, not ide, iirc)
> >
> > Thanks,
> > Punit
> >
> >
> > On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim  > 
> > >> wrote:
> >
> >  On 08/27/2014 04:18 AM, Punit Dambiwal wrote:
> >
> >  Hi Michal,
> >
> >  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)
> >  diskit will copy the whole 40GB to provision the
> > virtual
> >  machineso if i want to deploy 10 VM simultaneous
> > then it
> >  will copy
> >  4TB data and take long time to provision
> >
> >  I want the way i can make the template with small
> > sizeand 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.. ??
> >
> >
> >  so you want to provision a VM with a different disk size
> > than template.
> >  good point. some thoughts:
> >  1. for thinly provisioned (qcow2) - its COW, hence the same
> > size.
> >  2. for clone - actually, no reason shouldn't be supported
> > easily.
> >  3. we support "disk resize" since 3.4 (iirc), which you can
> > do post
> >  VM provisioning.
> >
> >  considering #3, then #1 should be easy to support as well
> these
> >  days. please open an RFE.
> >
> >
> >  Thanks,
> >  Punit
> >
> >
> >  

Re: [ovirt-users] VM Deployment By Template

2014-08-28 Thread Michal Skrivanek

On Aug 27, 2014, at 13:52 , Punit Dambiwal  wrote:

> Hi Itamar,
> 
> It's the same as i used and discussed in last reply...create the VM with 1GB 
> virtual template and expand the disk size after deployment...but the problem 
> here is disk will expand or resize...but it will not make any changes in the 
> existing partition table..that means after expand disk all the existing 
> partition will remain samethen you need to manual login in to server and 
> make the changes with the help of fdisk and lvm commands..
> 
> I am looking for the way we can resize the disk...and at the same time when 
> the disk will expand...it should be resize the partition table...
> 
> Is the cloud-init...custom script can do this or not ??

needs to be a custom script specific to the particular guest OS, I suppose.
something like "lvresize --resizefs …" 
Maybe some rescan of partitions (if the missing piece is indeed the missing 
qemu-ga notification) - then just force it with fdisk

Thanks,
michal

> 
> Thanks,
> Punit 
> 
> 
> On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
> On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
> Hi Itamar,
> 
> To edit the disk size are you referring this "Another way i got is
> create the VM with 1GB virtual template and expand the disk size after
> deployment...but the problem here is disk will expand...but it will not
> done any changes in the existing partition table..that means after
> expand disk you need to manual login in to server and make the changes
> with the help of fdisk and lvm commands..."
> 
> Or it's different then the upper one...please let me know how to perform
> this...if any screen shot you can provide for better understanding..
> 
> http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
> adding derez for follow up questions
> 
> 
> Thanks,
> Punit
> 
> 
> On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim  > wrote:
> 
> On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
> 
> Hi Itamar,
> 
> Thanks for the updateYes.. i want to create different size
> VM with
> the same OS template...
> 
> 
> 3. we support "disk resize" since 3.4 (iirc), which you can do
> post VM
> provisioning.
> 
> considering #3, then #1 should be easy to support as well these
> days.
> please open an RFE.
> 
> 
> Could you please more elaborate point number 3...how to use
> it..i will
> go with this one ...
> 
> 
> iirc, you just need to edit the disk size when vm is down or up (for
> up, only for specific disk interfaces, virtio-blk, not ide, iirc)
> 
> Thanks,
> Punit
> 
> 
> On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim  
> >> wrote:
> 
>  On 08/27/2014 04:18 AM, Punit Dambiwal wrote:
> 
>  Hi Michal,
> 
>  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)
>  diskit will copy the whole 40GB to provision the
> virtual
>  machineso if i want to deploy 10 VM simultaneous
> then it
>  will copy
>  4TB data and take long time to provision
> 
>  I want the way i can make the template with small
> sizeand 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.. ??
> 
> 
>  so you want to provision a VM with a different disk size
> than template.
>  good point. some thoughts:
>  1. for thinly provisioned (qcow2) - its COW, hence the same
> size.
>  2. for clone - actually, no reason shouldn't be supported
> easily.
>  3. we support "disk resize" since 3.4 (iirc), which you can
> do post
>  VM provisioning.
> 
>  considering #3, then #1 should be easy to support as well these
>  days. please open an RFE.
> 
> 
>  Thanks,
>  Punit
> 
> 
>  On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek
>   
>   >
>   __red__hat.com 
> 
> 
>   

Re: [ovirt-users] VM Deployment By Template

2014-08-28 Thread Punit Dambiwal
Hi Ovirt&KVM,

Here is the details :-
1. Ovirt :- 3.4
2. VM :- Centos 6.5
3. VM Disk Partition :- Based on LVM
4. Base Datastorage :- Gluster

I am able to expend the disk...but the disk expand doesn't touch the
partition table..so after expand all the existing partition remain with the
same disk sizenow i need to manually create another partition and add
it in to Volgroup and resize the logical volume...

Thanks,
Punit


On Thu, Aug 28, 2014 at 3:27 PM, OvirtAndKvm  wrote:

> Punit,
>
> What file system is your VM's partition, what operating system and version
> ?
>
> A question to others, if the doco says "we support "disk resize" since
> 3.4", for what virtual disk type, and which operating systems and their
> partition types are supported by this.  I would have believed you would
> needed to have used LVM and then add the new disk space as a new LUN, and
> map the new lun, while also using a file system that allows for expansion.
> Some file systems like XFS can be extended (i.e. grow) while being mounted.
> This is about the limit of my knowledge so if you know more, please let us
> know what is possible.
>
>
> > > >  3. we support "disk resize" since 3.4
> > > > (iirc), which you can
> > > > do post
> > > >  VM provisioning.
>
> http://www.gnu.org/software/parted/manual/html_node/parted_31.html
> Grow partition 1, into the adjacent free space:
>
> (parted) resize 1 0.063 874.9
>
> http://geekpeek.net/resize-filesystem-fdisk-resize2fs/
> http://www.linuxuser.co.uk/features/resize-your-disks-on-the-fly-with-lvm
>
> http://docs.oracle.com/cd/E37670_01/E37355/html/ol_grow_xfs.html
> You can use the *xfs_growfs* command to increase the size of a mounted
> XFS file system if there is space on the underlying devices to accommodate
> the change.
>
> http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
> Features/Online Virtual Drive Resize
> QEMU-GA
>
>- support for notifying the guest and updating the size of the visible
>disk: [Yet?] *To be integrated*
>
>
>
> http://serverfault.com/questions/122042/kvm-online-disk-resize
> AFAIK, this is not possible -- you can add new disk images, and as you
> point out you could also add new images to an LVM volume, but in order to
> resize an active, bootable disk image you need to be able to shut it down
> and edit the partitions.
>
> It is possible to move a Linux system between disks while it's running.
> The limitation is that you cannot alter *partitions* on a disk that has
> *partitions* in use.
>
> To do this your root filesystem must be on an LVM, this often means that
> you have to have a separate boot filesystem (this is not, however,
> essential, it just makes things easier)
>
>
>
>
>
> At Thursday, 28-08-2014 on 16:49 Shahar Havivi wrote:
>
> On 28.08.14 11:05, Punit Dambiwal wrote:
> > Hi All,
> >
> > Please help me to solve this problem...or suggest me any workaround ??
> >
> > Thanks,
> > Punit
> >
> >
> > On Wed, Aug 27, 2014 at 8:01 PM, Karli Sjöberg 
> wrote:
> >
> > > On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:
> > > > Hi Itamar,
> > > >
> > > >
> > > > It's the same as i used and discussed in last reply...create the VM
> > > > with 1GB virtual template and expand the disk size after
> > > > deployment...but the problem here is disk will expand or resize...but
> > > > it will not make any changes in the existing partition table..that
> > > > means after expand disk all the existing partition will remain
> > > > samethen you need to manual login in to server and make the
> > > > changes with the help of fdisk and lvm commands..
> > > >
> > > >
> > > > I am looking for the way we can resize the disk...and at the same
> time
> > > > when the disk will expand...it should be resize the partition
> table...
> > >
> > > I think this is what you were after:
> > > "QEMU-GA
> > >
> > > support for notifying the guest and updating the size of the
> visible
> > > disk: To be integrated "
> > >
> > > So maybe you could post an RFE on that for "qemu-ga"? Help testing?
> > >
> > > /K
> > >
> > > >
> > > >
> > > > Is the cloud-init...custom script can do this or not ??
> You may be able to do that with cloud-init custom-script section,
> The following link will show you how to add a file to the client, you may
> write a code
> that change the partition table, you need to make the file executable and
> put
> it in a init section (such as /etc/init.d sections), the only problem is
> that
> it may be too late since cloud-init may be loaded after that phase... (so
> maybe other place...)
>
> http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files
>
> Another option is to set a command under this section:
>
> http://cloudinit.readthedocs.org/en/latest/topics/examples.html#run-commands-on-first-boot
>
>   Shahar.
>
> > > >
> > > >
> > > > Thanks,
> > > > Punit
> > > >
> > > >
> > > > On Wed, Aug 27, 2014 

Re: [ovirt-users] VM Deployment By Template

2014-08-28 Thread OvirtAndKvm
Punit,

What file system is your VM's partition, what operating system and
version ?

A question to others, if the doco says "we support "disk resize" since
3.4", for what virtual disk type, and which operating systems and
their partition types are supported by this.  I would have believed
you would needed to have used LVM and then add the new disk space as a
new LUN, and map the new lun, while also using a file system that
allows for expansion. Some file systems like XFS can be extended (i.e.
grow) while being mounted. This is about the limit of my knowledge so
if you know more, please let us know what is possible.

> > >  3. we
support "disk resize" since 3.4
> > > (iirc), which you can
> > > do post
> > >  VM
provisioning.

http://www.gnu.org/software/parted/manual/html_node/parted_31.html
Grow partition 1, into the adjacent free space: 

(parted) resize 1 0.063
874.9http://geekpeek.net/resize-filesystem-fdisk-resize2fs/
http://www.linuxuser.co.uk/features/resize-your-disks-on-the-fly-with-lvm

http://docs.oracle.com/cd/E37670_01/E37355/html/ol_grow_xfs.html
You can use the xfs_growfs command to increase the size of a mounted
XFS file system if there is space on the underlying devices to
accommodate the change.

http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
Features/Online Virtual Drive Resize 
QEMU-GA 

*  support for notifying the guest and updating the size of the
visible disk: [Yet?] To be integrated 
http://serverfault.com/questions/122042/kvm-online-disk-resize 
AFAIK, this is not possible -- you can add new disk images, and as you
point out you could also add new images to an LVM volume, but in order
to resize an active, bootable disk image you need to be able to shut
it down and edit the partitions.

It is possible to move a Linux system between disks while it's
running. The limitation is that you cannot alter partitions on a disk
that has partitions in use.



To do this your root filesystem must be on an LVM, this often means
that you have to have a separate boot filesystem (this is not,
however, essential, it just makes things easier)






At Thursday, 28-08-2014 on 16:49 Shahar Havivi wrote:


On 28.08.14 11:05, Punit Dambiwal wrote:
> Hi All,
> 
> Please help me to solve this problem...or suggest me any workaround
??
> 
> Thanks,
> Punit
> 
> 
> On Wed, Aug 27, 2014 at 8:01 PM, Karli Sjöberg  wrote:
> 
> > On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:
> > > Hi Itamar,
> > >
> > >
> > > It's the same as i used and discussed in last reply...create the
VM
> > > with 1GB virtual template and expand the disk size after
> > > deployment...but the problem here is disk will expand or
resize...but
> > > it will not make any changes in the existing partition
table..that
> > > means after expand disk all the existing partition will remain
> > > samethen you need to manual login in to server and make the
> > > changes with the help of fdisk and lvm commands..
> > >
> > >
> > > I am looking for the way we can resize the disk...and at the
same time
> > > when the disk will expand...it should be resize the partition
table...
> >
> > I think this is what you were after:
> > "QEMU-GA
> >
> > support for notifying the guest and updating the size of
the visible
> > disk: To be integrated "
> >
> > So maybe you could post an RFE on that for "qemu-ga"? Help
testing?
> >
> > /K
> >
> > >
> > >
> > > Is the cloud-init...custom script can do this or not ??
You may be able to do that with cloud-init custom-script section,
The following link will show you how to add a file to the client, you
may write a code
that change the partition table, you need to make the file executable
and put
it in a init section (such as /etc/init.d sections), the only problem
is that
it may be too late since cloud-init may be loaded after that phase...
(so
maybe other place...)
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files

Another option is to set a command under this section:
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#run-commands-on-first-boot

  Shahar.

> > >
> > >
> > > Thanks,
> > > Punit
> > >
> > >
> > > On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
> > > On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
> > >
> > > Hi Itamar,
> > >
> > > To edit the disk size are you
referring this "Another
> > > way i got is
> > > create the VM with 1GB virtual
template and expand the
> > > disk size after
> > > deployment...but the problem
here is disk will
> > > expand...but it will not
> > > done any changes in the existing
partition table..that
> > > means after
> > > expand disk you need to manual
login in to server and
> > > make the changes
> > > 

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Shahar Havivi
On 28.08.14 11:05, Punit Dambiwal wrote:
> Hi All,
> 
> Please help me to solve this problem...or suggest me any workaround ??
> 
> Thanks,
> Punit
> 
> 
> On Wed, Aug 27, 2014 at 8:01 PM, Karli Sjöberg  wrote:
> 
> > On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:
> > > Hi Itamar,
> > >
> > >
> > > It's the same as i used and discussed in last reply...create the VM
> > > with 1GB virtual template and expand the disk size after
> > > deployment...but the problem here is disk will expand or resize...but
> > > it will not make any changes in the existing partition table..that
> > > means after expand disk all the existing partition will remain
> > > samethen you need to manual login in to server and make the
> > > changes with the help of fdisk and lvm commands..
> > >
> > >
> > > I am looking for the way we can resize the disk...and at the same time
> > > when the disk will expand...it should be resize the partition table...
> >
> > I think this is what you were after:
> > "QEMU-GA
> >
> > support for notifying the guest and updating the size of the visible
> > disk: To be integrated "
> >
> > So maybe you could post an RFE on that for "qemu-ga"? Help testing?
> >
> > /K
> >
> > >
> > >
> > > Is the cloud-init...custom script can do this or not ??
You may be able to do that with cloud-init custom-script section,
The following link will show you how to add a file to the client, you may write 
a code
that change the partition table, you need to make the file executable and put
it in a init section (such as /etc/init.d sections), the only problem is that
it may be too late since cloud-init may be loaded after that phase... (so
maybe other place...)
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files

Another option is to set a command under this section:
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#run-commands-on-first-boot

  Shahar.

> > >
> > >
> > > Thanks,
> > > Punit
> > >
> > >
> > > On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
> > > On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
> > >
> > > Hi Itamar,
> > >
> > > To edit the disk size are you referring this "Another
> > > way i got is
> > > create the VM with 1GB virtual template and expand the
> > > disk size after
> > > deployment...but the problem here is disk will
> > > expand...but it will not
> > > done any changes in the existing partition table..that
> > > means after
> > > expand disk you need to manual login in to server and
> > > make the changes
> > > with the help of fdisk and lvm commands..."
> > >
> > > Or it's different then the upper one...please let me
> > > know how to perform
> > > this...if any screen shot you can provide for better
> > > understanding..
> > >
> > >
> > > http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
> > > adding derez for follow up questions
> > >
> > >
> > > Thanks,
> > > Punit
> > >
> > >
> > > On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim
> > >  > >
> > > > wrote:
> > >
> > > On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
> > >
> > > Hi Itamar,
> > >
> > > Thanks for the updateYes.. i want to
> > > create different size
> > > VM with
> > > the same OS template...
> > >
> > > 
> > > 3. we support "disk resize" since 3.4 (iirc),
> > > which you can do
> > > post VM
> > > provisioning.
> > >
> > > considering #3, then #1 should be easy to
> > > support as well these
> > > days.
> > > please open an RFE.
> > > 
> > >
> > > Could you please more elaborate point number
> > > 3...how to use
> > > it..i will
> > > go with this one ...
> > >
> > >
> > > iirc, you just need to edit the disk size when vm
> > > is down or up (for
> > > up, only for specific disk interfaces, virtio-blk,
> > > not ide, iirc)
> > >
> > > Thanks,
> > > Punit
> > >
> > >
> > > On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim
> > >  > > 
> > >
> > >  > > 

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Punit Dambiwal
Hi All,

Please help me to solve this problem...or suggest me any workaround ??

Thanks,
Punit


On Wed, Aug 27, 2014 at 8:01 PM, Karli Sjöberg  wrote:

> On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:
> > Hi Itamar,
> >
> >
> > It's the same as i used and discussed in last reply...create the VM
> > with 1GB virtual template and expand the disk size after
> > deployment...but the problem here is disk will expand or resize...but
> > it will not make any changes in the existing partition table..that
> > means after expand disk all the existing partition will remain
> > samethen you need to manual login in to server and make the
> > changes with the help of fdisk and lvm commands..
> >
> >
> > I am looking for the way we can resize the disk...and at the same time
> > when the disk will expand...it should be resize the partition table...
>
> I think this is what you were after:
> "QEMU-GA
>
> support for notifying the guest and updating the size of the visible
> disk: To be integrated "
>
> So maybe you could post an RFE on that for "qemu-ga"? Help testing?
>
> /K
>
> >
> >
> > Is the cloud-init...custom script can do this or not ??
> >
> >
> > Thanks,
> > Punit
> >
> >
> > On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
> > On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
> >
> > Hi Itamar,
> >
> > To edit the disk size are you referring this "Another
> > way i got is
> > create the VM with 1GB virtual template and expand the
> > disk size after
> > deployment...but the problem here is disk will
> > expand...but it will not
> > done any changes in the existing partition table..that
> > means after
> > expand disk you need to manual login in to server and
> > make the changes
> > with the help of fdisk and lvm commands..."
> >
> > Or it's different then the upper one...please let me
> > know how to perform
> > this...if any screen shot you can provide for better
> > understanding..
> >
> >
> > http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
> > adding derez for follow up questions
> >
> >
> > Thanks,
> > Punit
> >
> >
> > On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim
> >  >
> > > wrote:
> >
> > On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
> >
> > Hi Itamar,
> >
> > Thanks for the updateYes.. i want to
> > create different size
> > VM with
> > the same OS template...
> >
> > 
> > 3. we support "disk resize" since 3.4 (iirc),
> > which you can do
> > post VM
> > provisioning.
> >
> > considering #3, then #1 should be easy to
> > support as well these
> > days.
> > please open an RFE.
> > 
> >
> > Could you please more elaborate point number
> > 3...how to use
> > it..i will
> > go with this one ...
> >
> >
> > iirc, you just need to edit the disk size when vm
> > is down or up (for
> > up, only for specific disk interfaces, virtio-blk,
> > not ide, iirc)
> >
> > Thanks,
> > Punit
> >
> >
> > On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim
> >  > 
> >
> >  > >> wrote:
> >
> >  On 08/27/2014 04:18 AM, Punit Dambiwal
> > wrote:
> >
> >  Hi Michal,
> >
> >  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)
> >  diskit will copy the whole 40GB
> > to provision the
> > virtual
> >  machineso if i want

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Karli Sjöberg
On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:
> Hi Itamar,
> 
> 
> It's the same as i used and discussed in last reply...create the VM
> with 1GB virtual template and expand the disk size after
> deployment...but the problem here is disk will expand or resize...but
> it will not make any changes in the existing partition table..that
> means after expand disk all the existing partition will remain
> samethen you need to manual login in to server and make the
> changes with the help of fdisk and lvm commands..
> 
> 
> I am looking for the way we can resize the disk...and at the same time
> when the disk will expand...it should be resize the partition table...

I think this is what you were after:
"QEMU-GA

support for notifying the guest and updating the size of the visible
disk: To be integrated "

So maybe you could post an RFE on that for "qemu-ga"? Help testing?

/K

> 
> 
> Is the cloud-init...custom script can do this or not ??
> 
> 
> Thanks,
> Punit 
> 
> 
> On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:
> On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
> 
> Hi Itamar,
> 
> To edit the disk size are you referring this "Another
> way i got is
> create the VM with 1GB virtual template and expand the
> disk size after
> deployment...but the problem here is disk will
> expand...but it will not
> done any changes in the existing partition table..that
> means after
> expand disk you need to manual login in to server and
> make the changes
> with the help of fdisk and lvm commands..."
> 
> Or it's different then the upper one...please let me
> know how to perform
> this...if any screen shot you can provide for better
> understanding..
> 
> 
> http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
> adding derez for follow up questions
> 
> 
> Thanks,
> Punit
> 
> 
> On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim
>  
> > wrote:
> 
> On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
> 
> Hi Itamar,
> 
> Thanks for the updateYes.. i want to
> create different size
> VM with
> the same OS template...
> 
> 
> 3. we support "disk resize" since 3.4 (iirc),
> which you can do
> post VM
> provisioning.
> 
> considering #3, then #1 should be easy to
> support as well these
> days.
> please open an RFE.
> 
> 
> Could you please more elaborate point number
> 3...how to use
> it..i will
> go with this one ...
> 
> 
> iirc, you just need to edit the disk size when vm
> is down or up (for
> up, only for specific disk interfaces, virtio-blk,
> not ide, iirc)
> 
> Thanks,
> Punit
> 
> 
> On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim
>  
> 
>  >> wrote:
> 
>  On 08/27/2014 04:18 AM, Punit Dambiwal
> wrote:
> 
>  Hi Michal,
> 
>  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)
>  diskit will copy the whole 40GB
> to provision the
> virtual
>  machineso if i want to 

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Punit Dambiwal
Hi Itamar,

It's the same as i used and discussed in last reply...create the VM with
1GB virtual template and expand the disk size after deployment...but the
problem here is disk will expand or resize...but it will not make any
changes in the existing partition table..that means after expand disk all
the existing partition will remain samethen you need to manual login in
to server and make the changes with the help of fdisk and lvm commands..

I am looking for the way we can resize the disk...and at the same time when
the disk will expand...it should be resize the partition table...

Is the cloud-init...custom script can do this or not ??

Thanks,
Punit


On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim  wrote:

> On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
>
>> Hi Itamar,
>>
>> To edit the disk size are you referring this "Another way i got is
>> create the VM with 1GB virtual template and expand the disk size after
>> deployment...but the problem here is disk will expand...but it will not
>> done any changes in the existing partition table..that means after
>> expand disk you need to manual login in to server and make the changes
>> with the help of fdisk and lvm commands..."
>>
>> Or it's different then the upper one...please let me know how to perform
>> this...if any screen shot you can provide for better understanding..
>>
>
> http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
> adding derez for follow up questions
>
>
>> Thanks,
>> Punit
>>
>>
>> On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim > > wrote:
>>
>> On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
>>
>> Hi Itamar,
>>
>> Thanks for the updateYes.. i want to create different size
>> VM with
>> the same OS template...
>>
>> 
>> 3. we support "disk resize" since 3.4 (iirc), which you can do
>> post VM
>> provisioning.
>>
>> considering #3, then #1 should be easy to support as well these
>> days.
>> please open an RFE.
>> 
>>
>> Could you please more elaborate point number 3...how to use
>> it..i will
>> go with this one ...
>>
>>
>> iirc, you just need to edit the disk size when vm is down or up (for
>> up, only for specific disk interfaces, virtio-blk, not ide, iirc)
>>
>> Thanks,
>> Punit
>>
>>
>> On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim > 
>> >> wrote:
>>
>>  On 08/27/2014 04:18 AM, Punit Dambiwal wrote:
>>
>>  Hi Michal,
>>
>>  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)
>>  diskit will copy the whole 40GB to provision the
>> virtual
>>  machineso if i want to deploy 10 VM simultaneous
>> then it
>>  will copy
>>  4TB data and take long time to provision
>>
>>  I want the way i can make the template with small
>> sizeand 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.. ??
>>
>>
>>  so you want to provision a VM with a different disk size
>> than template.
>>  good point. some thoughts:
>>  1. for thinly provisioned (qcow2) - its COW, hence the same
>> size.
>>  2. for clone - actually, no reason shouldn't be supported
>> easily.
>>  3. we support "disk resize" since 3.4 (iirc), which you can
>> do post
>>  VM provisioning.
>>
>>  considering #3, then #1 should be easy to support as well
>> these
>>  days. please open an RFE.
>>
>>
>>  Thanks,
>>  Punit
>>
>>
>>  On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek
>>  > 
>>  > >
>>  > __red__hat.com 
>>
>>
>>  > >
>>
>>   On Aug 26, 2014, at 12:01 , Punit Dambiwal
>>  mailto:hypu...@gmail.com>
>> >
>>   > 

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Itamar Heim

On 08/27/2014 12:47 PM, Punit Dambiwal wrote:

Hi Itamar,

To edit the disk size are you referring this "Another way i got is
create the VM with 1GB virtual template and expand the disk size after
deployment...but the problem here is disk will expand...but it will not
done any changes in the existing partition table..that means after
expand disk you need to manual login in to server and make the changes
with the help of fdisk and lvm commands..."

Or it's different then the upper one...please let me know how to perform
this...if any screen shot you can provide for better understanding..


http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
adding derez for follow up questions



Thanks,
Punit


On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim mailto:ih...@redhat.com>> wrote:

On 08/27/2014 12:08 PM, Punit Dambiwal wrote:

Hi Itamar,

Thanks for the updateYes.. i want to create different size
VM with
the same OS template...


3. we support "disk resize" since 3.4 (iirc), which you can do
post VM
provisioning.

considering #3, then #1 should be easy to support as well these
days.
please open an RFE.


Could you please more elaborate point number 3...how to use
it..i will
go with this one ...


iirc, you just need to edit the disk size when vm is down or up (for
up, only for specific disk interfaces, virtio-blk, not ide, iirc)

Thanks,
Punit


On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim mailto:ih...@redhat.com>
>> wrote:

 On 08/27/2014 04:18 AM, Punit Dambiwal wrote:

 Hi Michal,

 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)
 diskit will copy the whole 40GB to provision the
virtual
 machineso if i want to deploy 10 VM simultaneous
then it
 will copy
 4TB data and take long time to provision

 I want the way i can make the template with small
sizeand 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.. ??


 so you want to provision a VM with a different disk size
than template.
 good point. some thoughts:
 1. for thinly provisioned (qcow2) - its COW, hence the same
size.
 2. for clone - actually, no reason shouldn't be supported
easily.
 3. we support "disk resize" since 3.4 (iirc), which you can
do post
 VM provisioning.

 considering #3, then #1 should be easy to support as well these
 days. please open an RFE.


 Thanks,
 Punit


 On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek
 mailto:michal.skriva...@redhat.com>
 >
 __red__hat.com 

 
>
    Hi Michal,
   >
   > 2. I find disk size can not modify at the time
of VM
  provisioning,is there any way to modify the VM
disk size ??
   >
   > well, not really, AFAIK.
   > create another disk, move your data, remove the
original Or
  create a bigger thin provisioned disk at the
beginning...
   >
   > I didn't understand the mean...i can create the
another
  disk...it'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.. ??
  Hi,

  You would have to do that inside the guest…the
  

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Punit Dambiwal
Hi Itamar,

To edit the disk size are you referring this "Another way i got is create
the VM with 1GB virtual template and expand the disk size after
deployment...but the problem here is disk will expand...but it will not
done any changes in the existing partition table..that means after expand
disk you need to manual login in to server and make the changes with the
help of fdisk and lvm commands..."

Or it's different then the upper one...please let me know how to perform
this...if any screen shot you can provide for better understanding..

Thanks,
Punit


On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim  wrote:

> On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
>
>> Hi Itamar,
>>
>> Thanks for the updateYes.. i want to create different size VM with
>> the same OS template...
>>
>> 
>> 3. we support "disk resize" since 3.4 (iirc), which you can do post VM
>> provisioning.
>>
>> considering #3, then #1 should be easy to support as well these days.
>> please open an RFE.
>> 
>>
>> Could you please more elaborate point number 3...how to use it..i will
>> go with this one ...
>>
>>
> iirc, you just need to edit the disk size when vm is down or up (for up,
> only for specific disk interfaces, virtio-blk, not ide, iirc)
>
>  Thanks,
>> Punit
>>
>>
>> On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim > > wrote:
>>
>> On 08/27/2014 04:18 AM, Punit Dambiwal wrote:
>>
>> Hi Michal,
>>
>> 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)
>> diskit will copy the whole 40GB to provision the virtual
>> machineso if i want to deploy 10 VM simultaneous then it
>> will copy
>> 4TB data and take long time to provision
>>
>> I want the way i can make the template with small sizeand
>> 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.. ??
>>
>>
>> so you want to provision a VM with a different disk size than
>> template.
>> good point. some thoughts:
>> 1. for thinly provisioned (qcow2) - its COW, hence the same size.
>> 2. for clone - actually, no reason shouldn't be supported easily.
>> 3. we support "disk resize" since 3.4 (iirc), which you can do post
>> VM provisioning.
>>
>> considering #3, then #1 should be easy to support as well these
>> days. please open an RFE.
>>
>>
>> Thanks,
>> Punit
>>
>>
>> On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek
>> > 
>> >
>> >> wrote:
>>
>>
>>  On Aug 26, 2014, at 12:01 , Punit Dambiwal
>> mailto:hypu...@gmail.com>
>>  >>
>> wrote:
>>
>>   > Hi Michal,
>>   >
>>   > 2. I find disk size can not modify at the time of VM
>>  provisioning,is there any way to modify the VM disk size ??
>>   >
>>   > well, not really, AFAIK.
>>   > create another disk, move your data, remove the original
>> Or
>>  create a bigger thin provisioned disk at the beginning...
>>   >
>>   > I didn't understand the mean...i can create the another
>>  disk...it'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.. ??
>>  Hi,
>>
>>  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
>>  not trivial and not automated
>>
>>   >
>>   > 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't want the manual
>> installation…
>>
>>  so you want to have a preinstalled OS…so how did you want
>> to use it?
>>  I probably don't understand what are you trying to achieve.
>>  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?
>>
>>  Thanks,
>>  michal
>>
>>   >
>

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Itamar Heim

On 08/27/2014 12:08 PM, Punit Dambiwal wrote:

Hi Itamar,

Thanks for the updateYes.. i want to create different size VM with
the same OS template...


3. we support "disk resize" since 3.4 (iirc), which you can do post VM
provisioning.

considering #3, then #1 should be easy to support as well these days.
please open an RFE.


Could you please more elaborate point number 3...how to use it..i will
go with this one ...



iirc, you just need to edit the disk size when vm is down or up (for up, 
only for specific disk interfaces, virtio-blk, not ide, iirc)



Thanks,
Punit


On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim mailto:ih...@redhat.com>> wrote:

On 08/27/2014 04:18 AM, Punit Dambiwal wrote:

Hi Michal,

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)
diskit will copy the whole 40GB to provision the virtual
machineso if i want to deploy 10 VM simultaneous then it
will copy
4TB data and take long time to provision

I want the way i can make the template with small sizeand 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.. ??


so you want to provision a VM with a different disk size than template.
good point. some thoughts:
1. for thinly provisioned (qcow2) - its COW, hence the same size.
2. for clone - actually, no reason shouldn't be supported easily.
3. we support "disk resize" since 3.4 (iirc), which you can do post
VM provisioning.

considering #3, then #1 should be easy to support as well these
days. please open an RFE.


Thanks,
Punit


On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek
mailto:michal.skriva...@redhat.com>
>> wrote:


 On Aug 26, 2014, at 12:01 , Punit Dambiwal
mailto:hypu...@gmail.com>
 >> wrote:

  > Hi Michal,
  >
  > 2. I find disk size can not modify at the time of VM
 provisioning,is there any way to modify the VM disk size ??
  >
  > well, not really, AFAIK.
  > create another disk, move your data, remove the original Or
 create a bigger thin provisioned disk at the beginning...
  >
  > I didn't understand the mean...i can create the another
 disk...it'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.. ??
 Hi,

 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
 not trivial and not automated

  >
  > 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't want the manual
installation…

 so you want to have a preinstalled OS…so how did you want
to use it?
 I probably don't understand what are you trying to achieve.
 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?

 Thanks,
 michal

  >
  > Thanks,
  > Punit
  >
  >
  > On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek
 mailto:michal.skriva...@redhat.com>
>>

 wrote:
  >
  > On Aug 26, 2014, at 05:26 , Punit Dambiwal
mailto:hypu...@gmail.com>
 >> wrote:
  >
  > > Hi All,
  > >
  > > I have some questions regarding the VM deployment
through OS
 template...
  > >
  > > 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 16

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Punit Dambiwal
Hi Itamar,

Thanks for the updateYes.. i want to create different size VM with the
same OS template...


3. we support "disk resize" since 3.4 (iirc), which you can do post VM
provisioning.

considering #3, then #1 should be easy to support as well these days.
please open an RFE.


Could you please more elaborate point number 3...how to use it..i will go
with this one ...

Thanks,
Punit


On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim  wrote:

> On 08/27/2014 04:18 AM, Punit Dambiwal wrote:
>
>> Hi Michal,
>>
>> 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)
>> diskit will copy the whole 40GB to provision the virtual
>> machineso if i want to deploy 10 VM simultaneous then it will copy
>> 4TB data and take long time to provision
>>
>> I want the way i can make the template with small sizeand 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.. ??
>>
>
> so you want to provision a VM with a different disk size than template.
> good point. some thoughts:
> 1. for thinly provisioned (qcow2) - its COW, hence the same size.
> 2. for clone - actually, no reason shouldn't be supported easily.
> 3. we support "disk resize" since 3.4 (iirc), which you can do post VM
> provisioning.
>
> considering #3, then #1 should be easy to support as well these days.
> please open an RFE.
>
>
>> Thanks,
>> Punit
>>
>>
>> On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek
>> mailto:michal.skriva...@redhat.com>> wrote:
>>
>>
>> On Aug 26, 2014, at 12:01 , Punit Dambiwal > > wrote:
>>
>>  > Hi Michal,
>>  >
>>  > 2. I find disk size can not modify at the time of VM
>> provisioning,is there any way to modify the VM disk size ??
>>  >
>>  > well, not really, AFAIK.
>>  > create another disk, move your data, remove the original Or
>> create a bigger thin provisioned disk at the beginning...
>>  >
>>  > I didn't understand the mean...i can create the another
>> disk...it'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.. ??
>> Hi,
>>
>> 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
>> not trivial and not automated
>>
>>  >
>>  > 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't want the manual
>> installation…
>>
>> so you want to have a preinstalled OS…so how did you want to use it?
>> I probably don't understand what are you trying to achieve.
>> 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?
>>
>> Thanks,
>> michal
>>
>>  >
>>  > Thanks,
>>  > Punit
>>  >
>>  >
>>  > On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek
>> mailto:michal.skriva...@redhat.com>>
>>
>> wrote:
>>  >
>>  > On Aug 26, 2014, at 05:26 , Punit Dambiwal > > wrote:
>>  >
>>  > > Hi All,
>>  > >
>>  > > I have some questions regarding the VM deployment through OS
>> template...
>>  > >
>>  > > 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 ??
>>  >
>>  > if you deploy with thin provisioned disks it should be 1GB
>>  >
>>  > >
>>  > > 2. I find disk size can not modify at the time of VM
>> provisioning,is there any way to modify the VM disk size ??
>>  >
>>  > well, not really, AFAIK.
>>  > create another disk, move your data, remove the original.
>>  > Or create a bigger thin provisioned disk at the beginning
>>  >
>>  > >
>>  > > Thanks,
>>  > > Punit
>>  > >
>>  > >
>>  > > On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal
>> mailto:hypu...@gmail.com>> wrote:
>>  > > Hi All,
>>  > >
>>  > > I have some questions regarding the VM deployment through OS
>> template...
>>  > >
>>  > > 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

Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Itamar Heim

On 08/27/2014 04:18 AM, Punit Dambiwal wrote:

Hi Michal,

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)
diskit will copy the whole 40GB to provision the virtual
machineso if i want to deploy 10 VM simultaneous then it will copy
4TB data and take long time to provision

I want the way i can make the template with small sizeand 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.. ??


so you want to provision a VM with a different disk size than template.
good point. some thoughts:
1. for thinly provisioned (qcow2) - its COW, hence the same size.
2. for clone - actually, no reason shouldn't be supported easily.
3. we support "disk resize" since 3.4 (iirc), which you can do post VM 
provisioning.


considering #3, then #1 should be easy to support as well these days. 
please open an RFE.




Thanks,
Punit


On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek
mailto:michal.skriva...@redhat.com>> wrote:


On Aug 26, 2014, at 12:01 , Punit Dambiwal mailto:hypu...@gmail.com>> wrote:

 > Hi Michal,
 >
 > 2. I find disk size can not modify at the time of VM
provisioning,is there any way to modify the VM disk size ??
 >
 > well, not really, AFAIK.
 > create another disk, move your data, remove the original Or
create a bigger thin provisioned disk at the beginning...
 >
 > I didn't understand the mean...i can create the another
disk...it'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.. ??
Hi,

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
not trivial and not automated

 >
 > 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't want the manual installation…

so you want to have a preinstalled OS…so how did you want to use it?
I probably don't understand what are you trying to achieve.
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?

Thanks,
michal

 >
 > Thanks,
 > Punit
 >
 >
 > On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek
mailto:michal.skriva...@redhat.com>>
wrote:
 >
 > On Aug 26, 2014, at 05:26 , Punit Dambiwal mailto:hypu...@gmail.com>> wrote:
 >
 > > Hi All,
 > >
 > > I have some questions regarding the VM deployment through OS
template...
 > >
 > > 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 ??
 >
 > if you deploy with thin provisioned disks it should be 1GB
 >
 > >
 > > 2. I find disk size can not modify at the time of VM
provisioning,is there any way to modify the VM disk size ??
 >
 > well, not really, AFAIK.
 > create another disk, move your data, remove the original.
 > Or create a bigger thin provisioned disk at the beginning
 >
 > >
 > > Thanks,
 > > Punit
 > >
 > >
 > > On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal
mailto:hypu...@gmail.com>> wrote:
 > > Hi All,
 > >
 > > I have some questions regarding the VM deployment through OS
template...
 > >
 > > 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 ??
 > >
 > > 2. I find disk size can not modify at the time of VM
provisioning,is there any way to modify the VM disk size ??
 > >
 > > Thanks,
 > > Punit
 > >
 >
 >




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Punit Dambiwal
Hi Sven,

It's Ok...but still the drawback is if i have 100GB template and use clone
instead of thinnow if i want to create 10 VM with this template...it
will copy 1TB data...and the provisioning will take long time ??

Is there any other work around to make this copy partial or the ovirt just
copy the actual used data at the time VM deployment instead of the whole
virtual disk

Otherwise it's very hard to use Ovirt as public cloud...because if every
time it copy the whole template...and simultaneous more then 10 process
running for the VM deployment all the process will stuck..

Another way i got is create the VM with 1GB virtual template and expand the
disk size after deployment...but the problem here is disk will expand...but
it will not done any changes in the existing partition table..that means
after expand disk you need to manual login in to server and make the
changes with the help of fdisk and lvm commands...

Seems Ovirt is not proposed for the public cloud ??

Thanks,
Punit




On Wed, Aug 27, 2014 at 3:38 PM, Sven Kieske  wrote:

> Hi,
>
> just to correct this, this is wrong:
>
> Am 27.08.2014 04:20, schrieb Darren Hart:
> > 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.
>
> If you have a "thin" template and create a new vm using the option:
> "clone" what ovirt does is copy the thin template to a new disk.
> when you use "thin" ovirt does not create a new disk for the vm, instead
> the new vm shares the thin disk with the template (same file!)
> and creates another file just for the differences between template
> and vm, which accumulate over time.
>
> notice that you can not delete a template which has thin provisioned
> vms depending on it unless you delete all those vms.
>
> HTH
>
> --
> Mit freundlichen Grüßen / Regards
>
> Sven Kieske
>
> Systemadministrator
> Mittwald CM Service GmbH & Co. KG
> Königsberger Straße 6
> 32339 Espelkamp
> T: +49-5772-293-100
> F: +49-5772-293-333
> https://www.mittwald.de
> Geschäftsführer: Robert Meyer
> St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
> Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-27 Thread Sven Kieske
Hi,

just to correct this, this is wrong:

Am 27.08.2014 04:20, schrieb Darren Hart:
> 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.

If you have a "thin" template and create a new vm using the option:
"clone" what ovirt does is copy the thin template to a new disk.
when you use "thin" ovirt does not create a new disk for the vm, instead
the new vm shares the thin disk with the template (same file!)
and creates another file just for the differences between template
and vm, which accumulate over time.

notice that you can not delete a template which has thin provisioned
vms depending on it unless you delete all those vms.

HTH

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-26 Thread Punit Dambiwal
Hi Darren,

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...
Thanks,
Punit




On Wed, Aug 27, 2014 at 10:20 AM, Darren Hart 
wrote:

>  So you essentially want to just deploy a new VM based on a template with
> a thin provisioned disk ?
>
>  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.
>
>
>
>   Darren Hart | IT Manager | Department of Biochemistry | University of
> Otago
>
> *T* - +6434794965 | *M* - +6421991638
>
>   From: Punit Dambiwal 
> Date: Wednesday, 27 August 2014 1:18 pm
> To: Michal Skrivanek 
> Cc: "aha...@redhat.com" , "users@ovirt.org" <
> users@ovirt.org>
> Subject: Re: [ovirt-users] VM Deployment By Template
>
>   Hi Michal,
>
>  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) diskit
> will copy the whole 40GB to provision the virtual machineso if i want
> to deploy 10 VM simultaneous then it will copy 4TB data and take long time
> to provision
>
>  I want the way i can make the template with small sizeand 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.. ??
>
>  Thanks,
> Punit
>
>
> On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
>
>>
>> On Aug 26, 2014, at 12:01 , Punit Dambiwal  wrote:
>>
>> > Hi Michal,
>> >
>> > 2. I find disk size can not modify at the time of VM provisioning,is
>> there any way to modify the VM disk size ??
>> >
>> > well, not really, AFAIK.
>> > create another disk, move your data, remove the original Or create a
>> bigger thin provisioned disk at the beginning...
>> >
>> > I didn't understand the mean...i can create the another disk...it'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.. ??
>>  Hi,
>>
>> 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
>> not trivial and not automated
>>
>> >
>> > 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't want the manual installation…
>>
>> so you want to have a preinstalled OS…so how did you want to use it?
>> I probably don't understand what are you trying to achieve.
>> 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?
>>
>> Thanks,
>> michal
>>
>> >
>> > Thanks,
>> > Punit
>> >
>> >
>> > On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek <
>> michal.skriva...@redhat.com> wrote:
>> >
>> > On Aug 26, 2014, at 05:26 , Punit Dambiwal  wrote:
>> >
>> > > Hi All,
>> > >
>> > > I have some questions regarding the VM deployment through OS
>> template...
>> > >
>> > > 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 ??
>> >
>> > if you deploy with thin provisioned disks it should be 1GB
>> >
>> > >
>> > > 2. I find disk size can not modify at the time of VM provisioning,is
>> there any way to modify the VM disk size ??
>> >
>> > well, not really, AFAIK.
>> > create another disk, move your data, remove the origi

Re: [ovirt-users] VM Deployment By Template

2014-08-26 Thread Darren Hart
So you essentially want to just deploy a new VM based on a template with a thin 
provisioned disk ?

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.



Darren Hart | IT Manager | Department of Biochemistry | University of Otago
T - +6434794965 | M - +6421991638

From: Punit Dambiwal mailto:hypu...@gmail.com>>
Date: Wednesday, 27 August 2014 1:18 pm
To: Michal Skrivanek 
mailto:michal.skriva...@redhat.com>>
Cc: "aha...@redhat.com<mailto:aha...@redhat.com>" 
mailto:aha...@redhat.com>>, 
"users@ovirt.org<mailto:users@ovirt.org>" 
mailto:users@ovirt.org>>
Subject: Re: [ovirt-users] VM Deployment By Template

Hi Michal,

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) diskit will copy 
the whole 40GB to provision the virtual machineso if i want to deploy 10 VM 
simultaneous then it will copy 4TB data and take long time to provision

I want the way i can make the template with small sizeand 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.. ??

Thanks,
Punit


On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek 
mailto:michal.skriva...@redhat.com>> wrote:

On Aug 26, 2014, at 12:01 , Punit Dambiwal 
mailto:hypu...@gmail.com>> wrote:

> Hi Michal,
>
> 2. I find disk size can not modify at the time of VM provisioning,is there 
> any way to modify the VM disk size ??
>
> well, not really, AFAIK.
> create another disk, move your data, remove the original Or create a bigger 
> thin provisioned disk at the beginning...
>
> I didn't understand the mean...i can create the another disk...it'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.. ??
Hi,

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
not trivial and not automated

>
> 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't want the manual installation…

so you want to have a preinstalled OS…so how did you want to use it?
I probably don't understand what are you trying to achieve.
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?

Thanks,
michal

>
> Thanks,
> Punit
>
>
> On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek 
> mailto:michal.skriva...@redhat.com>> wrote:
>
> On Aug 26, 2014, at 05:26 , Punit Dambiwal 
> mailto:hypu...@gmail.com>> wrote:
>
> > Hi All,
> >
> > I have some questions regarding the VM deployment through OS template...
> >
> > 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 ??
>
> if you deploy with thin provisioned disks it should be 1GB
>
> >
> > 2. I find disk size can not modify at the time of VM provisioning,is there 
> > any way to modify the VM disk size ??
>
> well, not really, AFAIK.
> create another disk, move your data, remove the original.
> Or create a bigger thin provisioned disk at the beginning
>
> >
> > Thanks,
> > Punit
> >
> >
> > On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal 
> > mailto:hypu...@gmail.com>> wrote:
> > Hi All,
> >
> > I have some questions regarding the VM deployment through OS template...
> >
> > 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 ??
> >
> > 2. I find disk size can not modify at the time of VM provisioning,is there 
> > any way to modify the VM disk size ??
> >
> > Thanks,
> > Punit
> >
>
>


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-26 Thread Punit Dambiwal
Hi Michal,

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) diskit will
copy the whole 40GB to provision the virtual machineso if i want to
deploy 10 VM simultaneous then it will copy 4TB data and take long time to
provision

I want the way i can make the template with small sizeand 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.. ??

Thanks,
Punit


On Tue, Aug 26, 2014 at 9:01 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On Aug 26, 2014, at 12:01 , Punit Dambiwal  wrote:
>
> > Hi Michal,
> >
> > 2. I find disk size can not modify at the time of VM provisioning,is
> there any way to modify the VM disk size ??
> >
> > well, not really, AFAIK.
> > create another disk, move your data, remove the original Or create a
> bigger thin provisioned disk at the beginning...
> >
> > I didn't understand the mean...i can create the another disk...it'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.. ??
> Hi,
>
> 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
> not trivial and not automated
>
> >
> > 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't want the manual installation…
>
> so you want to have a preinstalled OS…so how did you want to use it?
> I probably don't understand what are you trying to achieve.
> 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?
>
> Thanks,
> michal
>
> >
> > Thanks,
> > Punit
> >
> >
> > On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
> >
> > On Aug 26, 2014, at 05:26 , Punit Dambiwal  wrote:
> >
> > > Hi All,
> > >
> > > I have some questions regarding the VM deployment through OS
> template...
> > >
> > > 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 ??
> >
> > if you deploy with thin provisioned disks it should be 1GB
> >
> > >
> > > 2. I find disk size can not modify at the time of VM provisioning,is
> there any way to modify the VM disk size ??
> >
> > well, not really, AFAIK.
> > create another disk, move your data, remove the original.
> > Or create a bigger thin provisioned disk at the beginning
> >
> > >
> > > Thanks,
> > > Punit
> > >
> > >
> > > On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal 
> wrote:
> > > Hi All,
> > >
> > > I have some questions regarding the VM deployment through OS
> template...
> > >
> > > 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 ??
> > >
> > > 2. I find disk size can not modify at the time of VM provisioning,is
> there any way to modify the VM disk size ??
> > >
> > > Thanks,
> > > Punit
> > >
> >
> >
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-26 Thread Michal Skrivanek

On Aug 26, 2014, at 12:01 , Punit Dambiwal  wrote:

> Hi Michal,
> 
> 2. I find disk size can not modify at the time of VM provisioning,is there 
> any way to modify the VM disk size ??
> 
> well, not really, AFAIK.
> create another disk, move your data, remove the original Or create a bigger 
> thin provisioned disk at the beginning...
> 
> I didn't understand the mean...i can create the another disk...it'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.. ??
Hi,

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
not trivial and not automated

> 
> 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't want the manual installation…

so you want to have a preinstalled OS…so how did you want to use it?
I probably don't understand what are you trying to achieve.
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? 

Thanks,
michal

> 
> Thanks,
> Punit
> 
> 
> On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek 
>  wrote:
> 
> On Aug 26, 2014, at 05:26 , Punit Dambiwal  wrote:
> 
> > Hi All,
> >
> > I have some questions regarding the VM deployment through OS template...
> >
> > 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 ??
> 
> if you deploy with thin provisioned disks it should be 1GB
> 
> >
> > 2. I find disk size can not modify at the time of VM provisioning,is there 
> > any way to modify the VM disk size ??
> 
> well, not really, AFAIK.
> create another disk, move your data, remove the original.
> Or create a bigger thin provisioned disk at the beginning
> 
> >
> > Thanks,
> > Punit
> >
> >
> > On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal  wrote:
> > Hi All,
> >
> > I have some questions regarding the VM deployment through OS template...
> >
> > 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 ??
> >
> > 2. I find disk size can not modify at the time of VM provisioning,is there 
> > any way to modify the VM disk size ??
> >
> > Thanks,
> > Punit
> >
> 
> 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-26 Thread Punit Dambiwal
Hi Michal,

2. I find disk size can not modify at the time of VM provisioning,is there
any way to modify the VM disk size ??

well, not really, AFAIK.
create another disk, move your data, remove the original Or create a bigger
thin provisioned disk at the beginning...

I didn't understand the mean...i can create the another disk...it'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.. ??

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't want the manual installation...

Thanks,
Punit


On Tue, Aug 26, 2014 at 5:51 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On Aug 26, 2014, at 05:26 , Punit Dambiwal  wrote:
>
> > Hi All,
> >
> > I have some questions regarding the VM deployment through OS template...
> >
> > 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 ??
>
> if you deploy with thin provisioned disks it should be 1GB
>
> >
> > 2. I find disk size can not modify at the time of VM provisioning,is
> there any way to modify the VM disk size ??
>
> well, not really, AFAIK.
> create another disk, move your data, remove the original.
> Or create a bigger thin provisioned disk at the beginning
>
> >
> > Thanks,
> > Punit
> >
> >
> > On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal 
> wrote:
> > Hi All,
> >
> > I have some questions regarding the VM deployment through OS template...
> >
> > 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 ??
> >
> > 2. I find disk size can not modify at the time of VM provisioning,is
> there any way to modify the VM disk size ??
> >
> > Thanks,
> > Punit
> >
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-26 Thread Michal Skrivanek

On Aug 26, 2014, at 05:26 , Punit Dambiwal  wrote:

> Hi All,
> 
> I have some questions regarding the VM deployment through OS template...
> 
> 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 ??

if you deploy with thin provisioned disks it should be 1GB

> 
> 2. I find disk size can not modify at the time of VM provisioning,is there 
> any way to modify the VM disk size ?? 

well, not really, AFAIK. 
create another disk, move your data, remove the original.
Or create a bigger thin provisioned disk at the beginning

> 
> Thanks,
> Punit
> 
> 
> On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal  wrote:
> Hi All,
> 
> I have some questions regarding the VM deployment through OS template...
> 
> 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 ??
> 
> 2. I find disk size can not modify at the time of VM provisioning,is there 
> any way to modify the VM disk size ?? 
> 
> Thanks,
> Punit
> 

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-25 Thread Punit Dambiwal
Hi All,

I have some questions regarding the VM deployment through OS template...

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 ??

2. I find disk size can not modify at the time of VM provisioning,is there
any way to modify the VM disk size ??

Thanks,
Punit


On Mon, Aug 25, 2014 at 5:42 PM, Punit Dambiwal  wrote:

> Hi All,
>
> I have some questions regarding the VM deployment through OS template...
>
> 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 ??
>
> 2. I find disk size can not modify at the time of VM provisioning,is there
> any way to modify the VM disk size ??
>
> Thanks,
> Punit
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] VM Deployment By Template

2014-08-25 Thread Punit Dambiwal
Hi All,

I have some questions regarding the VM deployment through OS template...

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 ??

2. I find disk size can not modify at the time of VM provisioning,is there
any way to modify the VM disk size ??

Thanks,
Punit
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users