Created
February 23, 2025 06:56
-
-
Save supermartian/0c67d4612fcd5ca2fd1446a3c0c0d3db to your computer and use it in GitHub Desktop.
creating windows 10 VM with libvirt
This file contains hidden or 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 \ | |
| --disk device=cdrom,path=/mnt/data/windows-10/virtio-win-0.1.266.iso \ | |
| --boot menu=on \ | |
| --cdrom /mnt/data/windows-10-Chinese-Simplified/Win10_22H2_Chinese_Simplified_x64v1.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 \ | |
| --vcpus 16 \ | |
| --cpu host --hvm \ | |
| --graphics spice,listen=0.0.0.0 \ | |
| --memballoon virtio \ | |
| --name Windows-10 \ | |
| --os-variant win10 \ | |
| --ram 20480 \ | |
| --network bridge=virbr0 \ | |
| --host-device=pci_0000_05_00_0 \ | |
| --machine q35 \ | |
| --disk /mnt/data/windows-10/vms-win10-disk.qcow,bus=virtio,format=qcow2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment