LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 12-16-2014, 08:46 PM   #1
paulfurtado
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Speed up dracut building CentOS 6.5 initrd in qemu64


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?
 
Old 12-17-2014, 08:24 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
There is little one can do if they don't enable the host's ability to interact with the vm. I assume this is what you mean.

You may be able to simply make these images on a system that you can add in hardware support.

I'd assume the bottleneck is the processor on host emulating the virtual computer. If ram or hard drive space or even cpu allocation then you might just make changes to base client.

The last thing might be to pre-allocate the virtual hard drive.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building initrd.img with dracut-network dazdaz Linux - Networking 0 01-18-2013 10:44 AM
initrd issue, building new kernel jcas1411 Slackware 7 12-03-2010 08:33 PM
problem wiht creating initrd (initramfs.img) file using dracut Crackel Linux - Kernel 0 10-26-2010 06:19 PM
Building an initrd - how to find correct module name? Yalla-One Slackware 7 06-13-2009 03:28 PM
Necessity of initrd in building a kernel? Erik_the_Red Linux - Newbie 3 08-13-2005 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration