diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-01-04 23:44:36 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-01-04 23:44:36 -0800 |
commit | 92fa402edb03aa7ddf60150b88c2b5e90e658113 (patch) | |
tree | 5968fbd1c67a6612c0b84484ad912ef0fd013543 /home/xyz/.local | |
parent | 171eb1574a8aecec3f5d3677cb7f6a6364513e5c (diff) |
qemu guix
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-x | home/xyz/.local/bin/qg | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/qg b/home/xyz/.local/bin/qg new file mode 100755 index 00000000..a9a314f6 --- /dev/null +++ b/home/xyz/.local/bin/qg @@ -0,0 +1,15 @@ +#!/bin/sh + +# /home/xyz/.local/bin/qw +# https://wiki.archlinux.org/title/QEMU +# https://guix.gnu.org/manual/en/html_node/Running-Guix-in-a-VM.html +# `-enable-kvm` same as `-accel kvm`, see archwiki +qemu-system-x86_64 \ + -accel kvm -m 8G \ + -cpu host \ + -smp 2,sockets=1,cores=1,threads=2 \ + -display gtk,zoom-to-fit=on \ + -nic user,model=virtio-net-pci \ + -usb -device usb-tablet \ + -device virtio-blk,drive=myhd \ + -drive if=none,file="$XDG_DOWNLOAD_DIR/qemu/guix-system-vm-image-1.4.0.x86_64-linux.qcow2",format=qcow2,id=myhd |