Creating the VM on a bridged network - air-gapped environment
Note: Execute this procedure on the KVM hypervisor where the
Assets VM is hosted.
- Use the Assets VM ISO image generated in Creating the KVM Assets VM image.
- Use the Talos machine config file generated in the Generating the Talos machine config files step for
user-data
. - Set the root disk is set to 300GB.
- The VM does not require a storage disk
-
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
- Verify that the ISO image downloaded in Downloading the Base Talos VM is available on the hypervisor.
-
Copy the machine configuration file generated for this specific node to a file
called user-data.
cp eda-assets.domain.tld.yaml user-data
-
Create a file called meta-data for the node.
Use the appropriate
instance-id
andlocal-hostname
values.instance-id: eda-assets local-hostname: eda-assets
-
Create a file called network-config for the node.
The file should have the following content:
version: 2
-
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
-
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