diff --git a/How-to-build-images-with-packer-%28vSphere%29.md b/How-to-build-images-with-packer-%28vSphere%29.md new file mode 100644 index 0000000..82de95c --- /dev/null +++ b/How-to-build-images-with-packer-%28vSphere%29.md @@ -0,0 +1,14 @@ +- 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](https://developer.hashicorp.com/packer/integrations/hashicorp/vsphere/latest/components/builder/vsphere-iso#privileges) \ No newline at end of file