Applicable to:
- SolusIO
Question
How to use SolusIO image builder?
Answer
- Connect to the Compute resource via SSH
-
Install the necessary packages:
# yum install git curl unzip
- Download Packer and unarchive it:
# curl -k https://releases.hashicorp.com/packer/1.5.1/packer_1.5.1_linux_amd64.zip --output packer_1.5.1_linux_amd64.zip
unzip packer_1.5.1_linux_amd64.zip - Rename the existing packer binary and replace it with the unarchived:
# mv /usr/sbin/packer{,.orig}
# cp packer /usr/sbin/ - Clone the repository with image builder and change to its directory:
# git clone https://github.com/plesk/solus-cloud-images.git
# cd solus-cloud-images - Skip this step if Debian-based OS is used on CR, otherwise do the following:
Open the json config file(for example windows/windows-2019.json) in text editor and add the following line in "builders" section:
CONFIG_TEXT: "qemu_binary":"/usr/libexec/qemu-kvm",
- Start the package building process:
# ./build.sh build windows-2019
As a result you will find an image under ./output directory.
Comments
0 commentsPlease sign in to leave a comment.