Skip to content
Scripts to create a custom HardenedBSD install ISO and a KVM image for use in SmartOS and Triton.
Shell Roff
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 1 commit behind joyent:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
triton-freebsd-guesttools
.gitignore
.travis.yml
LICENSE
README.md
create-image
create-image-manifest
create-iso
installerconfig

README.md

hardenedbsd-kvm-image-builder

This repo creates a custom HardenedBSD install ISO and a KVM image for use in SmartOS and Triton.

Requirements

This must be run on a HardenedBSD machine or VirtualMachine.

Setup

The following packages are required:

pkg install -y bash rsync cdrtools

Usage

To build a custom ISO, run the create-iso script:

./create-iso -r <RELEASE> -m <MIRROR> -p <MIRROR_PATH> -i <ISO> -c <ISO_CHECKSUM> -d <ISO_DIR> -M <MOUNT_POINT> -l <ISO_LAYOUT> -f <ISO_FILENAME>

see ./create-iso -h for usage

This will download an ISO, created a customized layout with installerconfig, install the Triton guesttools then build the custom ISO.

To build the HardenedBSD KVM image run the create-image script:

./create-image -i <ISO> -n <IMAGE_NAME> -d <DESC> -u <HOMEPAGE> -o <OWNER_UUID> -p <IP> -m NETMASK -g <GATEWAY> -v <VLAN_ID> -U <NETWORK_UUID>

see ./create-image -h for usage

You can’t perform that action at this time.