[CentOS-virt] Package lists for Cloud images

Thu Oct 4 21:22:13 UTC 2012
Nico Kadel-Garcia <nkadel at gmail.com>

On Thu, Oct 4, 2012 at 7:31 AM, Nux! <nux at li.nux.ro> wrote:
> On 04.10.2012 11:55, Stephen Harris wrote:
>> On Thu, Oct 04, 2012 at 11:27:40AM +0100, Nux! wrote:
>>> http://li.nux.ro/download/openstack/ks/centos6_x86_64_minimal.ks
>>
>>> Suggestions on how to improve it welcome.
>>
>> Why do you need to do the "extend filesystem" stuff?
>> Or is this a mis-feature of openstack that you're having to work
>> around?
>
> Stephen,
>
> This ks will generate a template to be used to deploy virtual machine
> on openstack (well, can be used anywhere kvm+virtio) and as such the
> template should be able to expand itself on the new virtual disk (it
> will basically be dd-ed to a new, larger file to be used for a VM).
> Indeed it's a "misfeature" of openstack as they could have used
> virt-resize to do all this..

The generated template left in /root/anaconda-ks.cfg is mangled
fiction. It's what Anaconda deduced the actual ks.cfg contained, and
throws out a tremendous amount of useful information, especially but
not only the actual '%post' and '%pre' scripting executed. It's one of
Anaconda's great flaws.

By default, add this or something like it to your kickstart files to
save your actual ks.cfg file.

%post --nochroot
cp /tmp/ks.cfg /mnt/sysimage/root/ks.cfg