[CentOS-virt] Package lists for Cloud images
nux at li.nux.ro
Thu Oct 4 12:15:49 EDT 2012
On 04.10.2012 14:04, Stephen Harris wrote:
> Under what circumstances is a resize needed?
The VMs will not be deployed via ks. The ks role in my case is merely
to install an OS template that can be used as an "VM image" on
Openstack; that's what makes it complicated. :-)
This template then will be used to deploy virtual machines; what
happens is something along the lines of:
- create file for template disk (1GB is enough to accomodate a minimal
fallocate -l1G template.img
- install an OS on it using my ks:
virt-install bla bla nux' kickstart
- create a new file for a VM, say 20 GB
fallocate -l20G newvm.img
- now use the template to image the new VM's disk
dd if=templateinstalledbyks.img of=newvm.img
But in doing so the end result will be a / partition and filesystem of
the template's original size, which is very small (1GB as per above);
they both need to be expanded to match the new size of 20GB.
Do you understand now?
Sent from the Delta quadrant using Borg technology!
More information about the CentOS-virt