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.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| README.md | 5 years ago | |
| itix-ks.cfg | 5 years ago | |
| main.tf | 5 years ago | |
| network.tf | 5 years ago | |
| patch.xslt | 5 years ago | |
| provider.tf | 5 years ago | |
| variables.tf | 5 years ago | |
| vsphere.tf | 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