We use qemu 64 bit virtualization without KVM to generate CentOS 6.5 images with kickstart. This works great, but it spends upwards of an hour building the initrd with dracut which is by far the biggest bottleneck. I've tested that the bottleneck does not occur when using KVM, however on our production build system KVM is unavailable and it would be great to make this work without KVM.
I'm curious what tricks/hacks there are for speeding up this process.
- Are there significant unnecessary steps in dracut which can be disabled?
- Can we disable dracut and use mkinitcpio? (would mkinitcpio even be faster?)
- Can we pre-build the initramfs and skip dracut?
- Maybe the way that qemu is emulating some device is what's slowing it down?
- Other suggestions?