#!/bin/bash virt-install \ --name $VMNAME \ --ram 32768 \ --disk path=$DISK_DIR/$VMNAME.qcow2,size=20 \ --vcpus 8 \ --os-type linux \ --os-variant generic \ --network bridge=virbr0 \ --graphics none \ --console pty,target_type=serial \ --initrd-inject=preseed.cfg --extra-args "ks=file:/preseed.cfg" \ --location 'http://us.archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/' \ --extra-args 'console=ttyS0,115200n8 serial'