Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save supermartian/1052b7e5f1259deed817da6541b0c6ba to your computer and use it in GitHub Desktop.
Save supermartian/1052b7e5f1259deed817da6541b0c6ba to your computer and use it in GitHub Desktop.
install windows 10 via virsh
virt-install \
--name win10 \
--cpu host-passthrough \
--ram 32768 \
--vcpus 12 \
--boot cdrom \
--cdrom /mnt/data/vm-images/Windows.iso \
--disk /mnt/data/vm-images/virtio-win.iso,device=cdrom,bus=sata \
--disk /mnt/data/vm-images/win10.qcow2,bus=virtio,size=400 \
--os-type windows \
--virt-type kvm \
--os-variant win10 \
--network default \
--noautoconsole \
--graphics vnc,port=5901,listen=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment