fixed terraform talos build
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# TALOS Configuration
|
||||
|
||||
Prior and separate to this build chain, Talos needs to be configured. Here are the steps that were completed.
|
||||
|
||||
Reference: https://docs.siderolabs.com/talos/v1.14/platform-specific-installations/virtualized-platforms/kvm
|
||||
|
||||
Note that kubectl, talosctl, and terraform were installed using homebrew prior.
|
||||
|
||||
```Shell
|
||||
|
||||
# Setting up VMs
|
||||
mkdir -p ~/vm/talos/configs
|
||||
cd ~/vm/talos/configs
|
||||
vim my-talos-net.xml
|
||||
sudo virsh net-define my-talos-net.xml
|
||||
sudo virsh net-start my-talos-net
|
||||
sudo virsh net-autostart my-talos-net
|
||||
sudo mv ~/downloads/metal-arm64.iso /var/lib/libvirt/images/
|
||||
sudo chown root: /var/lib/libvirt/images/metal-amd64.iso
|
||||
sudo virt-install --virt-type kvm --name control-plane-node-1 --ram 2048 --vcpus 2 --disk path=control-plane-node-1-disk.qcow2,bus=virtio,size=40,format=qcow2 --cdrom metal-amd64.iso --os-variant=linux2022 --network network=my-talos-net --boot hd,cdrom --noautoconsole
|
||||
sudo virt-install --virt-type kvm --name worker-node-1 --ram 4096 --vcpus 4 --disk path=control-plane-node-1-disk.qcow2,bus=virtio,size=40,format=qcow2 --cdrom metal-amd64.iso --os-variant=linux2022 --network network=my-talos-net --boot hd,cdrom --noautoconsole
|
||||
|
||||
```
|
||||
|
||||
Note that the VMs are booted into the ISO and terraform initiates the install and cluster build.
|
||||
Reference in New Issue
Block a user