Skip to content

Instantly share code, notes, and snippets.

@aaronedev
Created August 3, 2025 11:28
Show Gist options
  • Save aaronedev/82697066aac1c0d5bc997081b52d9909 to your computer and use it in GitHub Desktop.
Save aaronedev/82697066aac1c0d5bc997081b52d9909 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Pop!_OS comes in Intel/AMD and NVIDIA variants - using Intel/AMD version
ISO=pop-os_22.04_amd64_intel_20.iso
IMG=popos-22-04.qcow2
if [ ! -f "$ISO" ]; then
echo "Downloading Pop!_OS 22.04 Intel/AMD version..."
wget https://iso.pop-os.org/22.04/amd64/intel/20/$ISO
fi
if [ ! -f "$IMG" ]; then
qemu-img create -f qcow2 $IMG 16G
fi
qemu-system-x86_64 \
-enable-kvm \
-M q35 \
-smp 4 \
-m 4G \
-cpu host \
-net nic,model=virtio \
-net user,hostfwd=tcp::2222-:22 \
-device virtio-vga-gl,hostmem=4G,blob=true,venus=true \
-vga none \
-display gtk,gl=on,show-cursor=on \
-usb -device usb-tablet \
-object memory-backend-memfd,id=mem1,size=4G \
-machine memory-backend=mem1 \
-hda $IMG \
-cdrom $ISO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment