hacks/ubuntu-makevm/install.sh

17 lines
436 B
Bash
Raw Normal View History

2020-02-15 21:38:59 +00:00
#!/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'