Emulation

apk add qemu qemu-img qemu-system-x86_64 qemu-user-x86_64
doas usermod -aG kvm $USER

1. Windows 10

qemu-img create -f qcow2 win10.qcow2 50G

1.1. Installing

qemu-system-x86_64 \
    -M q35,usb=on,acpi=on,hpet=off \
    -m 8G \
    -cpu host,hv_relaxed,hv_frequencies,hv_vpindex,hv_ipi,hv_tlbflush,hv_spinlocks=0x1fff,hv_synic,hv_runtime,hv_time,hv_stimer,hv_vapic \
    -smp cores=4 \
    -accel kvm \
    -drive file=win10.qcow2 \
    -device usb-tablet \
    -device VGA,vgamem_mb=256 \
    -nic user,model=e1000 \
    -monitor stdio \
    -cdrom Win10_22H2_English_x64v1.iso

1.2. Running

qemu-system-x86_64 \
    -M q35,usb=on,acpi=on,hpet=off \
    -m 8G \
    -cpu host,hv_relaxed,hv_frequencies,hv_vpindex,hv_ipi,hv_tlbflush,hv_spinlocks=0x1fff,hv_synic,hv_runtime,hv_time,hv_stimer,hv_vapic \
    -smp cores=4 \
    -accel kvm \
    -drive file=win10.qcow2 \
    -device usb-tablet \
    -vga qxl \
    -nic user,model=e1000 \
    -monitor stdio \
    -device ich9-intel-hda,bus=pcie.0,addr=0x1b \
    -device hda-micro,audiodev=hda \
    -audiodev pipewire,id=hda

Backlinks

Created: 2026-08-21 Fri 12:37

Validate