1
How to build images with packer (vSphere)
Надежда Краснобородько edited this page 2024-11-29 12:24:14 +03:00
- Install packer and qemu-system packages for target arches
- Clone repo with packer configs from repo https://github.com/alt-cloud/alt-packer
- Check that you have enough space on build host
- We build only two types vm. Run command inside local repo
make image target=alt-server headless=true BASE_VERSION=10.2 TARGET_VERSION=10.2 VM_TYPE=cloud
make image target=alt-server headless=false BASE_VERSION=10.2-vmware TARGET_VERSION=10.2-vmware VM_TYPE=vsphere VCENTER_SERVER=$vcenter_server VSPHERE_HOST=$vsphere_host VSPHERE_USER=$vsphere_user VSPHERE_PASSWORD=$vsphere_password
where settings are: BASE_VERSION=TARGET_VERSION is version of alt distribution $vcenter_server="10.4.5.170" $vsphere_host="10.4.5.171"
- Packer can please you to install needed plugins (it will get you link to get install commands)
- User on vSphere need to be in group including role with privileges