2021-11-03 23:37:39

This commit is contained in:
gbaconni
2021-11-03 23:37:39 +01:00
parent 961302cb8b
commit d4a9cb24df
2 changed files with 29 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/02 17:47:57 by gbaconni #+# #+# #
# Updated: 2021/11/03 22:15:28 by gbaconni ### lausanne.ch #
# Updated: 2021/11/03 23:37:37 by gbaconni ### lausanne.ch #
# #
# **************************************************************************** #
@@ -62,14 +62,35 @@ amd64: sda uefi
-device virtio-scsi-pci,num_queues=4,id=scsi0 \
-device scsi-hd,drive=drive0,bus=scsi0.0,channel=0,scsi-id=0,lun=0,bootindex=0 \
-device scsi-cd,drive=cdrom0,bus=scsi0.0,channel=0,scsi-id=1,lun=0,bootindex=1 \
-drive id=pflash0,unit=0,file=${PWD}/edk2-x86_64-code.fd,if=pflash,format=raw,readonly=on \
-drive id=pflash1,unit=1,file=${PWD}/edk2-i386-vars.fd,if=pflash,format=raw \
-drive id=drive0,index=0,file=${PWD}/sda.raw,if=none,media=disk,format=raw,cache=writethrough,discard=unmap \
-drive id=cdrom0,index=1,file=${PWD}/debian-$(DVER)-amd64-netinst.iso,if=none,media=cdrom,readonly=on \
-nic user,model=virtio \
-monitor stdio \
-boot menu=on \
-rtc base=localtime,clock=host
# -drive id=pflash0,unit=0,file=${PWD}/edk2-x86_64-code.fd,if=pflash,format=raw,readonly=on \
# -drive id=pflash1,unit=1,file=${PWD}/edk2-i386-vars.fd,if=pflash,format=raw \
test: clean debian amd64
@qemu-system-x86_64 \
-name debian \
-cpu qemu64-v1 \
-smp $(CPU) \
-machine q35,vmport=off \
-accel tcg,tb-size=512 \
-global ICH9-LPC.disable_s3=1 \
-m $(RAM) \
-usb \
-device qemu-xhci \
-device usb-kbd \
-device usb-mouse \
-device usb-tablet \
-device virtio-gpu \
-device virtio-scsi-pci,num_queues=4,id=scsi0 \
-device scsi-hd,drive=drive0,bus=scsi0.0,channel=0,scsi-id=0,lun=0,bootindex=0 \
-drive id=drive0,index=0,file=${PWD}/sda.raw,if=none,media=disk,format=raw,cache=writethrough,discard=unmap \
-nic user,model=virtio \
-monitor stdio \
-rtc base=localtime,clock=host
#arm64: clean sda debian uefi
arm64: sda uefi
@@ -97,7 +118,6 @@ arm64: sda uefi
-drive id=cdrom0,index=1,file=${PWD}/debian-$(DVER)-arm64-netinst.iso,if=none,media=cdrom,readonly=on \
-nic user,model=virtio \
-monitor stdio \
-boot menu=on \
-rtc base=localtime,clock=host
clean:
@@ -110,10 +130,10 @@ fclean: clean
ps:
@ps ax | grep qemu | sed 's/ -/ \\\n-/g; s/^[^\/]*//;'
sync: test update
sync: up update
@git status | grep -q 'nothing to commit' || (git add -A && git commit -am "$$(date '+%F %T')" && git push) || true
test:
up:
@dig +short vogsphere.baco.net A | grep -q '213\.5\.156\.25' || echo 'vogsphere.baco.net unreachable'
update: