Last active
October 24, 2021 19:04
-
-
Save fjctp/40fab8d7324428822010fd31e09382be to your computer and use it in GitHub Desktop.
Revisions
-
fjctp renamed this gist
Oct 24, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
fjctp revised this gist
Oct 24, 2021 . 3 changed files with 17 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,15 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,20 @@ # # based on https://gist.github.com/Manouchehri/2b1b523eed834f295915 set -e ISO_FILE=~/Downloads/archlinux-2021.10.01-x86_64.iso DISK_FILE=archlinux.qcow2 if [[ ! -f ${ISO_FILE} ]]; then echo "ISO does not exist!" exit 1 fi # create the disk if it does not exist if [[ ! -f ${DISK_FILE} ]]; then qemu-img create -f qcow2 archlinux.qcow2 16G fi # start the machine # to access, ssh -p 10022 localhost @@ -12,8 +24,8 @@ qemu-system-x86_64 \ -enable-kvm \ -smp cpus=4 \ -m size=2048 \ -cdrom ${ISO_FILE} \ -drive file=${DISK_FILE},media=disk,if=virtio \ -net user,hostfwd=tcp::10022-:22 \ -net nic \ -vga qxl -
fjctp revised this gist
Oct 22, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,13 +6,14 @@ qemu-img create -f qcow2 archlinux.qcow2 16G # start the machine # to access, ssh -p 10022 localhost qemu-system-x86_64 \ -bios /usr/share/qemu/ovmf-x86_64-code.bin \ -enable-kvm \ -smp cpus=4 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,media=disk,if=virtio \ -net user,hostfwd=tcp::10022-:22 \ -net nic \ -vga qxl -
fjctp revised this gist
Oct 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,6 +13,6 @@ qemu-system-x86_64 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,media=disk,if=virtio \ -net user,hostfwd=tcp::10022-:22 \ # to access, ssh -p 10022 localhost -net nic \ -vga qxl -
fjctp revised this gist
Oct 22, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,5 +13,6 @@ qemu-system-x86_64 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,media=disk,if=virtio \ -net user,hostfwd=tcp::10022-:22 \ -net nic \ -vga qxl -
fjctp revised this gist
Oct 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,5 +13,5 @@ qemu-system-x86_64 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,media=disk,if=virtio \ -net user,hostfwd=tcp::60022-:22 \ -vga qxl -
fjctp revised this gist
Oct 22, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -13,5 +13,5 @@ qemu-system-x86_64 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,media=disk,if=virtio \ -net user,hostfwd=tcp::60022-:22,model=virtio \ -vga qxl -
fjctp revised this gist
Oct 20, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,11 @@ #!/bin/bash # # based on https://gist.github.com/Manouchehri/2b1b523eed834f295915 # create the disk qemu-img create -f qcow2 archlinux.qcow2 16G # start the machine qemu-system-x86_64 \ -bios /usr/share/qemu/ovmf-x86_64-code.bin \ -enable-kvm \ -
fjctp revised this gist
Oct 20, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,5 +12,5 @@ qemu-system-x86_64 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,media=disk,if=virtio \ -nic user,model=virtio \ -vga qxl -
fjctp revised this gist
Oct 20, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,14 +3,14 @@ # based on https://gist.github.com/Manouchehri/2b1b523eed834f295915 # Not working yet. still testing qemu-img create -f qcow2 archlinux.qcow2 16G qemu-system-x86_64 \ -bios /usr/share/qemu/ovmf-x86_64-code.bin \ -enable-kvm \ -smp cpus=4 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,media=disk,if=virtio \ -net default,model=virtio \ -vga qxl -
fjctp revised this gist
Oct 20, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ #!/bin/bash # # Having some problem with UEFI. still testing virt-install \ --name archlinux \ -
fjctp revised this gist
Oct 20, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,6 @@ qemu-system-x86_64 \ -smp cpus=4 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=archlinux.qcow2,if=virtio \ -net default,model=virtio \ -vga qxl -
fjctp revised this gist
Oct 20, 2021 . 2 changed files with 18 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,5 @@ virt-install \ --disk size=20 \ --network=default,model=virtio \ --boot uefi \ --boot loader=/usr/share/qemu/ovmf-x86_64-code.bin
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/bin/bash # # based on https://gist.github.com/Manouchehri/2b1b523eed834f295915 # Not working yet. still testing # Installing qemu-system-x86_64 \ -bios /usr/share/qemu/ovmf-x86_64-code.bin \ -enable-kvm \ -smp cpus=4 \ -m size=2048 \ -cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ -drive file=fedoraraw.qcow2,if=virtio \ -net default,model=virtio \ -vga qxl -
fjctp created this gist
Oct 20, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ #!/bin/bash virsh destroy archlinux \ && virsh undefine --nvram archlinux This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/bash virt-install \ --name archlinux \ --vcpu 4 \ --memory 2048 \ --machine pc-q35-2.5 \ --cdrom ~/Downloads/archlinux-2021.10.01-x86_64.iso \ --disk size=20 \ --network=default,model=virtio \ --boot uefi \ --boot loader=/usr/share/qemu/ovmf-x86_64-code.bin