Linux command for creating a virtual machine from a debian image.
virt-install \
--name proxy2-vm \
--memory 4096 \
--vcpus 4 \
--disk size=30,format=ext4,path=/dev/vg_raid1/proxy2_root \
--location /var/lib/libvirt/images/debian-13.1.0-amd64-netinst.iso \
--os-variant debian13 \
--network bridge=xenbr0 \
--graphics none \
--console pty,target_type=serial \
--extra-args "console=ttyS0" \ # important so you can connect to the console
--check path_in_use=off \
--hvm \
--virt-type kvm \
--machine q35