Skip to content

Instantly share code, notes, and snippets.

@yosukesan
Created March 13, 2023 04:57
Show Gist options
  • Save yosukesan/98309ef3c5b9c4248dc84c063dcda923 to your computer and use it in GitHub Desktop.
Save yosukesan/98309ef3c5b9c4248dc84c063dcda923 to your computer and use it in GitHub Desktop.
.text_install:
virt-install \
--name test1 \
--ram 1024 \
--vcpus 1 \
--location http://deb.debian.org/debian/dists/stable/main/installer-amd64/ \
--os-variant debian10 \
--virt-type kvm \
--network bridge=virbr0 \
--disk $(shell pwd)/test1.img,size=16,pool=default \
--initrd-inject $(shell pwd)/preseed.cfg \
--extra-args 'console=ttyS0 auto=true'\
--graphics none \
--noautoconsole
all:
make .text_install
clean:
virsh destroy test1
virsh undefine test1
#virsh vol-delete --pool default test1.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment