Skip to content

Instantly share code, notes, and snippets.

@FoxBuru
Created November 15, 2020 06:23
Show Gist options
  • Select an option

  • Save FoxBuru/0f9fffb30ee4b0a0d63efe14b442b7a5 to your computer and use it in GitHub Desktop.

Select an option

Save FoxBuru/0f9fffb30ee4b0a0d63efe14b442b7a5 to your computer and use it in GitHub Desktop.

Revisions

  1. FoxBuru created this gist Nov 15, 2020.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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