Various new and modified template definitions to create veewee boxes for vagrant.
Please see below for instructions how to build boxes using veewee and this definitions.
- Based on prior work from thatsamguy.
- All definitions are minimal, including only vboxadditions, sshd and urpmi.
- Mageias auto configuration feature is used.
- No localization, no timezone, no key-mappings, no mouse, and no hardware definitions
- Clean up installations much more, move most custom package installation into several smaller post-install scripts.
- Installs VirtualBox Guests Additions for the installed kernel.
- Change vagrant base config to 2 CPU, 512MB RAM
- Optional install Ruby (from distribution), puppet (from distribution) and chef (from gems)
- Use boot-nonfree iso for network based install.
Mageia-Cauldron-Vagrant-Server-minimal-x86_64: |
|
---|---|
Mageia-4-Vagrant-Server-minimal-x86_64: |
|
Mageia-3-Vagrant-Server-minimal-x86_64: |
|
Mind the firewall!
Install prebuild native extensions (this saves from installing the development packages):
urpmi ruby-nokogiri ruby-ffi ruby-posix-spawn ruby-libxml ruby-libvirt gem install --no-ri --no-rdoc veewee
If you want to remove these gems later use this line:
gem list --local | grep -Pi '^[a-z]' | sed 's/ .*//' | xargs gem uninstall
git clone https://github.com/htgoebel/veewee-definitions cd veewee-definitions
Again: Mind the firewall on your workstation!
for name in Mageia-3-server-x86_64-minimal Mageia-4-server-x86_64-minimal ; do ./build-box.sh $name ./test-box.sh $name done mv -i *.box /path/to/store/vagrant-boxes/
This basically does the following for each box definition:
veewee vbox build --nogui --force $name veevee vbox halt $name VBoxManage modifyvm $name --ostype "Mageia_64" veewee vbox export --force $name veewee vbox destroy $name vagrant box add $name $PWD/$name.box vagrant init $name vagrant up vagrant ssh vagrant destroy rm Vagrantfile