Добавить How to build images with packer (vSphere)
parent
6b5e5c7fbd
commit
a52007f304
14
How-to-build-images-with-packer-%28vSphere%29.md
Normal file
14
How-to-build-images-with-packer-%28vSphere%29.md
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user