From a52007f304acb050cbce58a0b45d03e1e0db0195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B0=D0=B4=D0=B5=D0=B6=D0=B4=D0=B0=20=D0=9A=D1=80?= =?UTF-8?q?=D0=B0=D1=81=D0=BD=D0=BE=D0=B1=D0=BE=D1=80=D0=BE=D0=B4=D1=8C?= =?UTF-8?q?=D0=BA=D0=BE?= Date: Fri, 29 Nov 2024 12:24:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20How=20to=20build=20images=20with=20packer=20(vSphere)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- How-to-build-images-with-packer-%28vSphere%29.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 How-to-build-images-with-packer-%28vSphere%29.md 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