#!/bin/bash
BASEPATH=$(realpath `dirname $0`)
sudo virt-install \
-n ubuntu1804 \
--os-type=Linux \
--os-variant=ubuntu18.04 \
--memory=131072 \
--vcpus=18 \
--disk path=${BASEPATH}/ubuntu1804.img,size=128 \
--network network:default \
--graphics none \
--console pty,target_type=serial \
--extra-args 'console=ttyS0,115200n8 serial' \
--location 'http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/' \