!/bin/bash
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
#!/bin/bash #-boot d \ #-cdrom win_10_pro_64.iso \ #-cdrom QuickBooks2013InstallCD.iso \ #-monitor stdio \ #-cdrom $HOME/ISOs/Win11_22H2_English_x64v2.iso \ #-drive file=$HOME/VMs/Windows_C.img,format=raw,index=0,media=disk #-nic none \ # TPM setup tmpdir=$(mktemp -d) swtpm socket \ --tpmstate dir=${tmpdir} \ --ctrl type=unixio,path=${tmpdir}/swtpm-sock \ --tpm2 & # QEMU setup qemu-system-x86_64 \ -name win11 \ -cpu host \ -enable-kvm \ -m 8G \ -bios /usr/share/ovmf/OVMF.fd \ -chardev socket,id=chrtpm,path=${tmpdir}/swtpm-sock \ -tpmdev emulator,id=tpm0,chardev=chrtpm \ -device tpm-tis,tpmdev=tpm0 \ -vga vmware \ -smp cores=2,threads=2 \ -usb \ -device usb-tablet \ -device usb-host,vendorid=0x0525,productid=0xa4a1 \ -device usb-host,vendorid=0x1c99,productid=0x0002 \ -device usb-host,vendorid=0x058f,productid=0x6387 \ -rtc clock=host,base=localtime \ -drive file=$HOME/VMs/Windows11.qcow2,format=qcow2,index=0,media=disk ~ |