A Lab deployed using terraform
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nicolas Massé e8d3e4716d vsphere automated install 5 years ago
..
README.md vsphere automated install 5 years ago
itix-ks.cfg create VMFS 5 years ago
main.tf vsphere automated install 5 years ago
network.tf vsphere automated install 5 years ago
patch.xslt vsphere automated install 5 years ago
provider.tf vsphere automated install 5 years ago
variables.tf vsphere automated install 5 years ago
vsphere.tf vsphere automated install 5 years ago

README.md

Lab of vSphere Machines

Fetch the latest vSphere 7.0 installation iso and customize it for automated install.

sudo mount VMware-VMvisor-Installer-7.0U1c-17325551.x86_64.iso /mnt -o loop,ro
sudo mkdir /tmp/vsphere-custom
sudo cp -rv /mnt/* /tmp/vsphere-custom
sudo umount /mnt
sudo sed -i -r 's|^(kernelopt=.*)|\1 ks=https://raw.githubusercontent.com/nmasse-itix/terraform-lab/main/vsphere/itix-ks.cfg|' /tmp/vsphere-custom/boot.cfg
sudo sed -i -r 's|^(kernelopt=.*)|\1 ks=https://raw.githubusercontent.com/nmasse-itix/terraform-lab/main/vsphere/itix-ks.cfg|' /tmp/vsphere-custom/efi/boot/boot.cfg
sudo dnf install genisoimage
sudo genisoimage -relaxed-filenames -J -R -o /tmp/vsphere-custom.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e efiboot.img -no-emul-boot /tmp/vsphere-custom
sudo cp /tmp/vsphere-custom.iso /var/lib/libvirt/images/

Then, deploy the lab.

terraform init
terraform apply

References