test stuff
This commit is contained in:
6
qemu.nix
6
qemu.nix
@@ -8,14 +8,14 @@ writeShellApplication {
|
||||
echo "Usage: $0 <path-to-boot-image>"
|
||||
exit 1
|
||||
fi
|
||||
tmpFile=$(mktemp /tmp/test-image.XXXXXX)
|
||||
tmpFile=$(mktemp /home/matt/tmp/test-image.XXXXXX)
|
||||
trap 'rm -f $tmpFile' EXIT
|
||||
cp "$1" "$tmpFile"
|
||||
qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-m 2G \
|
||||
-m 4G \
|
||||
-cpu max \
|
||||
-smp 2 \
|
||||
-smp 4 \
|
||||
-netdev user,id=net0,hostfwd=tcp::2222-:22 \
|
||||
-device virtio-net-pci,netdev=net0 \
|
||||
-drive if=pflash,format=raw,readonly=on,file=${OVMF.firmware} \
|
||||
|
||||
Reference in New Issue
Block a user