forked from sneak/hacks
latest
This commit is contained in:
16
ubuntu-makevm/install.sh
Normal file
16
ubuntu-makevm/install.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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'
|
||||
|
||||
Reference in New Issue
Block a user