Skip to content

Instantly share code, notes, and snippets.

@FoxBuru
Created November 15, 2020 06:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FoxBuru/0f9fffb30ee4b0a0d63efe14b442b7a5 to your computer and use it in GitHub Desktop.
Save FoxBuru/0f9fffb30ee4b0a0d63efe14b442b7a5 to your computer and use it in GitHub Desktop.
Install windows 10 using virt-install (UEFI,SPICE,QXL,Virtio)
virt-install \
--boot uefi \
--cdrom /var/lib/libvirt/images/Windows.iso \
--features vmport.state=off,hyperv.vapic.state=on,hyperv.spinlocks.state=on,hyperv.spinlocks.retries=8191,hyperv.relaxed.state=on \
--clock offset=localtime,hypervclock_present=yes,rtc_tickpolicy=catchup,hpet_present=no,pit_tickpolicy=delay \
--machine q35 \
--vcpus 2 \
--cpu host \
--graphics spice \
--sound ich9 \
--channel spicevmc,target.type=virtio \
--video qxl \
--memballoon virtio \
--name Windows-10 \
--os-variant win10 \
--network network=default,model=virtio \
--ram 3072 \
--disk pool=guests_lvm,size=35,device=disk,target.bus=virtio,driver.discard=unmap,cache=writeback,driver.io=threads \
--disk path=/var/lib/libvirt/images/virtio-win-0.1.189.iso,format=raw,device=cdrom,target.bus=sata,readonly=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment