Images on: https://app.vagrantup.com/cmihai Ansible scripts at: https://github.com/crivetimihai/ansible-rhel-8
- Packer builds base OS images (RHEL/Fedora) from Kickstart and outputs VirtualBox/Vagrant Box/KVM/VMware images.
- Vagrant calls Ansible scripts to perform post-provisioning tasks.
Currently supports Vagrant box and images (VirtualBox, VMware and KVM) for RHEL 8, CentOS 7, Fedora 30, Ubuntu 18.04, Alpine 3.10.
podman run \
-u root \
--rm \
-d \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins-data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkinsci/blueocean
- Download installation media to
../iso
. - Install
packer
andvagrant
. - Optionally, install
ansible
. Builds are designed to useansible-local
, but you can change to useansible
inVagrantfile
.
# Parallel builds
make clean
make -j 10 libvirt vmware; make -j 5 virtualbox
packer build fedora30base.json # Build a Fedora 30 image manually
vagrant box list # List current boxes
vagrant box remove fedora 30 # Cleanup old box
vagrant box add --name fedora30 builds/virtualbox-fedora30.box # Add the new box
vagrant init fedora30 # Init the box. Creates a Vagrantfile you can edit.
vagrant up # Start the box
vagrant provision # Run ansible scripts, etc.
vagrant destroy # Destroy the vm
# Firewall: VMware builds fail. Add a rule to allow your VM to connect and retrieve the ks file
sudo firewall-cmd --zone=public \
--add-rich-rule 'rule family="ipv4" source address=192.168.188.0/24 accept'
# Existing VMs preventing new builds
rm -rf ~/VirtualBox\ VMs/virtualbox-centos-7-base/
- Merge multiple builders
- Cloud image support
- CI/CD build
- Post-base image scripts (ansible)
- Create image-builder script (generates toml configuration, can add new OS support, downloads initial ISO images)
- CoreOS
- SuSE
- OpenBSD
- Raspbian
- Fix broken build vmware-ubuntu-18.04-base
- Fix parallel builds: when VirtualBox is running, KVM qemu won't run https://bugzilla.redhat.com/show_bug.cgi?id=1277744r2