Skip to content

Instantly share code, notes, and snippets.

@kernoeb
Last active April 11, 2021 15:35
Show Gist options
  • Save kernoeb/46461f69b2871f1bfc25076d24df1c74 to your computer and use it in GitHub Desktop.
Save kernoeb/46461f69b2871f1bfc25076d24df1c74 to your computer and use it in GitHub Desktop.
Qemu KVM - Windows 10 + Virtio
#!/bin/bash
#########################
# QEMU KVM WIN10 #
# kernoeb #
#########################
# Installation
# 1) Create qcow2
qemu-img create -f qcow2 win10.img 35G
# 2) Download virtio
wget -O virtio-win.iso https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.185-2/virtio-win-0.1.185.iso
# 3) Run iso
qemu-system-x86_64 --enable-kvm \
-smp 4 -m 4096 -cpu host -vga std \
-drive file=win10.iso,index=1,media=cdrom \
-drive file=virtio-win.iso,index=2,media=cdrom \
-drive file=win10.img,if=virtio \
-net nic,model=virtio -net user
# 4) Click on "Load driver" and select virtio (CD Drive) for win10
# 5) Click on "Next"
##################################
# Post installation
# 6) Open "Device manager"
# 7) Go to "Other devices" > "Ethernet Controller" > "Update driver" > "Browse my computer"
# 8) Choose your virtio CD drive
# 9) Install the driver
# 10) Do the same for "Display adapters" > "Microsoft Basic Display Adapter"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment