kvm

qemu/kvm installation script
git clone https://git.awy.one/kvm.git
Log | Files | Refs | README | LICENSE

commit 39b096f220af48813d2f201c4beada1b7b75cefd
parent 03c9e48ae36678ba8a8b9684b051e56afdd77c21
Author: awy <awy@awy.one>
Date:   Wed,  8 Jan 2025 07:15:49 +0300

update

Diffstat:
Mwin10.xml | 41+++++++++++------------------------------
1 file changed, 11 insertions(+), 30 deletions(-)

diff --git a/win10.xml b/win10.xml @@ -8,31 +8,7 @@ </metadata> <memory unit='KiB'>16777216</memory> <currentMemory unit='KiB'>16777216</currentMemory> - <vcpu placement='static' cpuset='1-5,7-11'>10</vcpu> - <cputune> - <vcpupin vcpu='0' cpuset='1'/> - <vcpupin vcpu='1' cpuset='2'/> - <vcpupin vcpu='2' cpuset='3'/> - <vcpupin vcpu='3' cpuset='4'/> - <vcpupin vcpu='4' cpuset='5'/> - <vcpupin vcpu='5' cpuset='7'/> - <vcpupin vcpu='6' cpuset='8'/> - <vcpupin vcpu='7' cpuset='9'/> - <vcpupin vcpu='8' cpuset='10'/> - <vcpupin vcpu='9' cpuset='11'/> - <emulatorpin cpuset='0,6'/> - <emulatorsched scheduler='fifo' priority='1'/> - <vcpusched vcpus='0' scheduler='fifo' priority='1'/> - <vcpusched vcpus='1' scheduler='fifo' priority='1'/> - <vcpusched vcpus='2' scheduler='fifo' priority='1'/> - <vcpusched vcpus='3' scheduler='fifo' priority='1'/> - <vcpusched vcpus='4' scheduler='fifo' priority='1'/> - <vcpusched vcpus='5' scheduler='fifo' priority='1'/> - <vcpusched vcpus='6' scheduler='fifo' priority='1'/> - <vcpusched vcpus='7' scheduler='fifo' priority='1'/> - <vcpusched vcpus='8' scheduler='fifo' priority='1'/> - <vcpusched vcpus='9' scheduler='fifo' priority='1'/> - </cputune> + <vcpu placement='static'>10</vcpu> <sysinfo type='smbios'> <bios> <entry name='vendor'>American Megatrends Inc.</entry> @@ -61,8 +37,8 @@ <feature enabled='no' name='enrolled-keys'/> <feature enabled='no' name='secure-boot'/> </firmware> - <loader readonly='yes' type='pflash'>/usr/share/edk2/x64/OVMF_CODE.4m.fd</loader> - <nvram template='/usr/share/edk2/x64/OVMF_VARS.4m.fd'>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram> + <loader readonly='yes' type='pflash' format='raw'>/usr/share/edk2/x64/OVMF_CODE.4m.fd</loader> + <nvram template='/usr/share/edk2/x64/OVMF_VARS.4m.fd' templateFormat='raw' format='raw'>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram> <boot dev='hd'/> <smbios mode='sysinfo'/> </os> @@ -176,10 +152,10 @@ <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/> </controller> <interface type='network'> - <mac address='52:54:00:30:bb:9f'/> + <mac address='52:54:00:38:58:28'/> <source network='default'/> <model type='e1000e'/> - <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> + <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </interface> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> @@ -188,7 +164,10 @@ <image compression='off'/> <gl enable='no'/> </graphics> - <audio id='1' type='none'/> + <sound model='ich9'> + <address type='pci' domain='0x0000' bus='0x00' slot='0x1b' function='0x0'/> + </sound> + <audio id='1' type='pipewire'/> <video> <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/> @@ -203,6 +182,8 @@ <qemu:arg value='input-linux,id=mouse1,evdev=/dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse'/> <qemu:arg value='-object'/> <qemu:arg value='input-linux,id=kbd1,evdev=/dev/input/by-id/usb-ROYUAN_Gaming_keyboard-event-kbd,grab_all=on,repeat=on'/> + <qemu:env name='PIPEWIRE_RUNTIME_DIR' value='/run/user/1000'/> + <qemu:env name='PIPEWIRE_LATENCY' value='512/48000'/> </qemu:commandline> </domain>