From 736a516984229740132c6888c72b64d45565f7d4 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 11 Jun 2022 14:59:18 -0400 Subject: [PATCH] Add install / run pwsh script for windows qemu host --- bin/qemu-install.sh | 10 ++++++++++ bin/qemu-run.sh | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 bin/qemu-install.sh create mode 100644 bin/qemu-run.sh diff --git a/bin/qemu-install.sh b/bin/qemu-install.sh new file mode 100644 index 0000000..93375e2 --- /dev/null +++ b/bin/qemu-install.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env pwsh +qemu-img create -f qcow2 nixos.qcow2 +qemu-system-x86_64 -accel whpx,kernel-irqchip=off \ + -hda .\nixos.qcow2 \ + -m 4096 \ + -net nic,model=virtio \ + -net user \ + -vga virtio \ + -boot strict=on \ + -cdrom .\nixos.iso diff --git a/bin/qemu-run.sh b/bin/qemu-run.sh new file mode 100644 index 0000000..fb11739 --- /dev/null +++ b/bin/qemu-run.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env pwsh +qemu-system-x86_64 -accel whpx,kernel-irqchip=off \ + -hda .\nixos.qcow2 \ + -m 4096 \ + -net nic,model=virtio \ + -net user \ + -vga virtio \ + -boot strict=on