if ! [[ "8 9 10 11 12 13" == *"$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2 | cut -d '.' -f 1)"* ]];
then
    echo "Debian $(grep VERSION_ID /etc/os-release | cut -d '"' -f 2 | cut -d '.' -f 1) is not currently supported.";
    exit;
fi


NAME='gst_tms'
IFACE=eno3
BR=vmbr0
ISOPOOL=${HOME}/kvm/isos
ISO=debian-12.11.0-amd64-netinst.iso
MAC=00:00:00:00:00:00
MACB=52:54:00:94:c2:ed
DISKPATH=${HOME}/kvm/elph-pool/gst/
DISK=${NAME}.qcow2
DISKSIZE=160
SPICEPORT=59011
VNCPORT=59111


# NewMachine
virt-install --connect qemu:///system \
   --name ${NAME} \
   --virt-type kvm \
   --memory 8192 \
   --machine q35 \
   --disk ${DISKPATH}/${DISK},size=${DISKSIZE} \
   --cdrom ${ISOPOOL}/${ISO} \
   --controller type=scsi,model=virtio-scsi,driver.iommu=on \
   --controller type=virtio-serial,driver.iommu=on \
   --rng /dev/random,driver.iommu=on \
   --memballoon driver.iommu=on \
   --vcpus 12 \
   --network bridge=${BR},model=virtio,driver.iommu=on,mac.address=${MACB} \
   --graphics spice \
   --graphics vnc \
   --os-type linux \
   --os-variant debiantesting



   ## --network bridge=${IFACE},model=virtio,driver.iommu=on,mac.address=${MAC} 
