michaelnet/thonkpad/nixhost/run.sh

11 lines
229 B
Bash
Raw Normal View History

2023-10-01 08:43:11 -07:00
#!/bin/bash
DRIVENAME=nixhost
MEM_GB=1
SSH_PORT=2022
2024-06-18 14:14:43 -07:00
qemu-system-x86_64 -accel kvm -nographic -vga none \
2023-10-01 08:43:11 -07:00
-net user,hostfwd=tcp::2022-:22 -net nic \
-m $(expr 1024 \* $MEM_GB) -drive file=./$DRIVENAME.qcow2,format=qcow2