Created
March 13, 2023 04:57
-
-
Save yosukesan/98309ef3c5b9c4248dc84c063dcda923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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