From e886bc51fa122dbb08158de61a8eb57f2f1cd41b Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Mon, 17 Jun 2024 11:56:18 -0700 Subject: [PATCH] working vm-bios and vm-efi targets --- Makefile | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 93a4fbd..25a6647 100644 --- a/Makefile +++ b/Makefile @@ -4,18 +4,22 @@ default: \ out/airgap.iso .PHONY: vm -vm: out/airgap.iso - qemu-system-x86_64 \ - -m 512M \ - -machine pc \ - -nographic \ - -cdrom "out/airgap.iso" +vm: vm-bios -.PHONY: vm-uefi -vm-uefi: +.PHONY: vm-bios +vm-bios: out/airgap.iso qemu-system-x86_64 \ -m 4G \ - -machine type=q35 \ + -machine pc \ + -serial stdio \ + -cdrom "out/airgap.iso" + +.PHONY: vm-efi +vm-efi: + qemu-system-x86_64 \ + -m 4G \ + -machine pc \ + -serial stdio \ -bios /usr/share/ovmf/OVMF.fd \ -cdrom "out/airgap.iso"