-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Manually building baseboxes #430
Comments
For background, this is actually rather annoying. All my chef based existing VMs are complaining with this message:
Would it be possible to re-instate those chef/centos VMs? |
The So boxes on As for the building instructions, those will be updated shortly but you can use the bento tool in `bin/bento' which will fill in the variables for building. |
I tried build.sh, rake build_box['centos-6.7-x64_64'] and bin/bento, but had issues with all. For starters they do a bit too much. I just need the centos vboxes. It also started shutting down Vagrant VMs I had running (at which point I terminated the rake call), and looking at the rake file it looks like it will delete all VMs as well. The bento script seemed to do something, but then stalled at the point in VBox where it tries to load a kickstart script from some http address? That failed, and I had trouble getting passed that.. |
build.sh is only for consumption in our buildkite build system and is not for general use. bin/bento and the Rakefile are somewhere between general use and internal use - all If you'd like to build with packer and fix the name it's just:
As I said, the boxes are also available via Atlas, just the bento organization, not chef. They are also available directly from S3 via links in the README.md. |
centos-6.7 is available through bento, but not centos-6.6 nor centos-6.5. I'd like to make sure I won't run into the same situation when you will replace centos-6.7 with centos-6.8, by building the images myself, and publishing them indefinitely (if possible), even if they are really old etc etc.. I saw the links in the README. Can I use that with Vagrant, pointing to such links? Would save me the trouble of building myself. Thanks for the basename option. Are there other vars I should watch out for? Or to put it differently, what are the essential differences between the root-level templates, and those in the packer dir (generated by bin/bento perhaps?) |
We replace the images because of how CentOS versions - unlike other distros where point releases are maintained independently, CentOS will update you to the latest via The links are just links to the box's on s3 which you can use with There isn't any difference in the templates as such, Ex:
becomes:
|
Thanks for all the input. I managed to generate centos .box files using the bento tool. I also discovered you can pull .box files out of a local cache. I have documented details in this new git repository: https://github.com/grtjn/centos-packer-templates I have also taken the liberty of republishing the original chef baseboxes under my own name, giving all credits to Chef of course. I hope you don't mind? You can find them here: |
We certainly don't mind republishing these as the license totally permits it but there isn't much need as we have the old versions in the commit history of the repository. Also, with regard to CentOS publishing old definitions - once you do a yum update anything in 6.x will be the latest 6.x. The reason we do not publish old boxes for CentOS is that minor version updates in CentOS are not unique versions but part of the same overarching 6.x (or 7.x etc) release and include security updates among other things. We are actively looking at changing the definitions to something like |
The README tells you can run something like this:
But when I run that from the top-level I end up with
__unset_box_basename__.virtualbox.box
. That looks a bit odd.The README also mentions a
packer
directory, which I didn't find in a fresh clone. Do I need to run some build script first?PS: I am trying to recover the centos-6.5 VM (which was exposed as chef/centos-6.5 till yesterday) by manually building it..
The text was updated successfully, but these errors were encountered: