Created
November 15, 2020 06:23
-
-
Save FoxBuru/0f9fffb30ee4b0a0d63efe14b442b7a5 to your computer and use it in GitHub Desktop.
Install windows 10 using virt-install (UEFI,SPICE,QXL,Virtio)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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