-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
containerbuild.sh taking forever in vagrant #90
Comments
In this instance you're doing nested virt using qemu/kvm inside virtualbox, which will slow it down some. Additionally it would likely matter how much memory you've allocated to the vbox vagrant image as you may be swapping. |
Thanks. The vagrant box has 512 MB of memory & 1 virtual CPU. Do you think I should increase the resources for the vm? |
Almost certainly. I believe the 'default' value kvm uses is 1 or 2G of ram allocated to the vm it will use to build the container tarball. |
I'm retrying the build process with 4 GB of memory for the vm. So far I'm not seeing high memory usage or swapping.
|
So you're slowed down at least because nested virt. qemu by itself will be quite slow. You could optionally use another terminal/console (as root) to |
I'm not seeing any output on the console.
|
if it's as slow as you're describing, you'll likely have to be patient. That script wasn't really written with the idea of doing it inside virt. |
I switched to a physical CentOS 7 server, and containerbuild.sh completed in around 5 minutes. |
Thanks for the feedback. That's about the normal expected time (within reason) that I'd expect. If you find a way to make it work better via vagrant or other virt, I'd certainly be open to pulling in changes. |
@jperrin Interesting. Been wanting to ask, what's the reasoning behind using a full kickstart/anaconda run to build versus a process based on rpm --root / yum --installroot like the scripts in docker contrib? |
@beddari similarity to generating the other distro media types (so you don't need to really know 8 different tools). I find it easier/simpler to troubleshoot the kickstart vs potential chroot issues, shell escapes, etc. Kickstart + vm should work the same on any distro, so I don't have to deal with rpm 5 in ubuntu/debian doing something different than rpm on centos or fedora. It's also a clean, verifiable build every time, with no possibility for host pollution from either direction. Most importantly (for me) it was easy (for me) to throw together and crank out tarballs quickly. |
I'm using the following vagrant box to build a centos 6 docker container.
http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7-x86_64-Vagrant-1611_01.VirtualBox.box
The script isn't outputing any errors, but it's still running 24+ hours later. What is the normal build time? Is there any way I can debug the process?
The text was updated successfully, but these errors were encountered: