Creating the VM on a bridged network - air-gapped environment

Complete the following steps to deploy an Assets VM on KVM.
Note: Execute this procedure on the KVM hypervisor where the Assets VM is hosted.
  1. Ensure that the virt-install tool is installed on the KVM hypervisor.

    If you need to install the tool, use the following command:

    yum install virt-install

  2. Verify that the ISO image downloaded in Downloading the Base Talos VM is available on the hypervisor.
  3. Copy the machine configuration file generated for this specific node to a file called user-data.
    cp eda-assets.domain.tld.yaml user-data 
  4. Create a file called meta-data for the node.

    Use the appropriate instance-id and local-hostname values.

    instance-id: eda-assets
    local-hostname: eda-assets
  5. Create a file called network-config for the node.
    The file should have the following content:
    version: 2
  6. Create an ISO file containing the newly created files.

    For ease of use, name the ISO file with the name of the node for which you are creating the ISO.

    mkisofs -o eda-assets -data.iso -V cidata -J -r meta-data network-config user-data 
  7. Create the virtual machine.
    This step uses both the newly created ISO file and the ISO file downloaded from the Talos Machine Factory.
    virt-install -n eda-assets \ 
      --description "EDA Assets Vm for EDA" \ 
      --noautoconsole --os-type=generic \ 
      --memory 16384 --vcpus 4 --cpu host \ 
      --disk eda-assets-rootdisk.qcow2,format=qcow2,bus=virtio,size=300 \ 
      --cdrom eda-asset-vm-nocloud-amd64.iso  \ 
      --disk eda-assets-data.iso,device=cdrom \ 
      --network bridge=br0,model=virtio