retro-64K

qemu-x86_64 launch

Jul 26th, 2021
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/dash
  2.  
  3. qemu-system-x86_64 \
  4. -enable-kvm \
  5. -enable-sync-profile \
  6. -action reboot=reset \
  7. -action shutdown=poweroff \
  8. -action panic=none \
  9. -action watchdog=none \
  10. -m 8G,maxmem=12G,slots=2 \
  11. -machine pc-q35-6.0,accel=kvm,kvm-shadow-mem=2147483648,vmport=auto,hpet=on,pit=on,acpi=on,smm=on,graphics=on,usb=on,sata=on,smbus=on,nvdimm=on,hmat=on,kernel-irqchip=split,mem-merge=off,dump-guest-core=off \
  12. -smp 4,cores=4,threads=1,sockets=1,dies=1,maxcpus=4 \
  13. -cpu host,kvm=on,vendor=AuthenticAMD,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,migratable=off,vmware-cpuid-freq=on,+kvm_pv_unhalt,+kvm_pv_eoi,+kvm_asyncpf_int,+kvm_steal_time,+kvm_poll_control,+kvm_nopiodelay,+kvmclock,+rdtscp,+fpu,+vme,+de,+pse,+invtsc,+tsc,+msr,+pae,+mce,+cx8,+apic,+sep,+mtrr,+pge,+mca,+cmov,+pat,+pse36,+clflush,+mmx,+fxsr,+sse,+sse2,+syscall,+nx,+mmxext,+fxsr_opt,+pdpe1gb,+rdtscp,+lm,+pni,+pclmulqdq,+ssse3,+fma,+cx16,+sse4.1,sse4.2,+movbe,+popcnt,+aes,+xsave,+avx,+f16c,+lahf_lm,+cmp_legacy,+svm,+abm,+sse4a,+misalignsse,+3dnowprefetch,+osvw,+topoext,+perfctr_core,+ibpb,+fsgsbase,+bmi1,+avx2,+smep,+bmi2,+xsaveopt,+arat,+npt,+nrip_save,+hypervisor \
  14. -device amd-iommu,device-iotlb=on,intremap=auto,pt=on \
  15. -object memory-backend-file,id=memdev0,mem-path=/home/enki/emulators/qemu/memdev/memdev0,size=8192M \
  16. -numa node,cpus=0-3,nodeid=0,memdev=memdev0,initiator=0 \
  17. -numa cpu,node-id=0 \
  18. -rtc clock=host,base=localtime,driftfix=slew \
  19. -overcommit mem-lock=on,cpu-pm=on \
  20. -smbios type=0,uefi=on,vendor=QEMU,version=6.0,date=??/??/2009 \
  21. -smbios type=1,manufacturer=QEMU,product=Standard-PC-Q35,family=Standard-PC,version=6.0 \
  22. -smbios type=2,manufacturer=QEMU,version=6.0,product=Q35-Motherboard \
  23. -smbios type=3,manufacturer=QEMU,version=6.0 \
  24. -smbios type=4,manufacturer=AuthenticAMD \
  25. -smbios type=11,value=ToBeFilledByOEM \
  26. -smbios type=17,manufacturer=QEMU,speed=2400 \
  27. -uuid a930f1ca-4c4f-4b79-b22b-6a053885e3d2 \
  28. -object rng-random,filename=/dev/urandom,id=rng0 \
  29. -seed 0 \
  30. -device virtio-rng-pci-non-transitional,migrate-extra=off,multifunction=on,aer=on,ats=on,iommu_platform=on,modern-pio-notify=on,rng=rng0,bus=pcie.0 \
  31. -drive if=pflash,unit=0,node-name=boot0,format=raw,readonly=on,copy-on-read=off,aio=native,cache=unsafe,cache.direct=on,file=/home/enki/emulators/qemu/firmware/amd64/OVMF_CODE.fd \
  32. -drive if=pflash,unit=1,node-name=boot1,format=raw,readonly=off,copy-on-read=on,aio=native,cache=unsafe,cache.direct=on,file=/home/enki/emulators/qemu/firmware/amd64/OVMF_VARS.fd \
  33. -L /home/enki/emulators/qemu/firmware/amd64/OVMF.fd \
  34. -serial none \
  35. -parallel none \
  36. -display sdl,gl=on \
  37. -device virtio-vga,virgl=on,edid=on,xres=1440,yres=900,max_outputs=1,migrate-extra=off,aer=on,ats=on,iommu_platform=on,ioeventfd=on,multifunction=on,max_hostmem=268435456,modern-pio-notify=on,vectors=4,stats=off,ioeventfd=on,bus=pcie.0 \
  38. -audiodev pa,id=pa,server=/run/user/1000/pulse/native,in.frequency=96000,in.channels=2,in.format=s16,out.frequency=96000,out.channels=2,out.format=s16 \
  39. -device ich9-intel-hda,multifunction=on,bus=pcie.0,id=hda \
  40. -device hda-duplex,audiodev=pa,bus=hda.0 \
  41. -device virtio-keyboard-pci,multifunction=on,migrate-extra=off,aer=on,ats=on,iommu_platform=on,modern-pio-notify=on,bus=pcie.0 \
  42. -k pt-br \
  43. -device virtio-tablet-pci,multifunction=on,migrate-extra=off,aer=on,ats=on,iommu_platform=on,modern-pio-notify=on,bus=pcie.0 \
  44. -netdev user,id=net0,ipv4=on,ipv6=on,restrict=off \
  45. -device virtio-net-pci-non-transitional,multifunction=on,aer=on,ats=on,iommu_platform=on,ioeventfd=on,netdev=net0,id=net0,bus=pcie.0 \
  46. -object iothread,id=iothread0 \
  47. -object iothread,id=iothread1 \
  48. -drive media=disk,id=disk0,if=none,unit=2,node-name=vda,readonly=off,copy-on-read=on,cache=unsafe,aio=native,cache.direct=on,format=raw,file=/home/enki/emulators/qemu/disk/amd64.img \
  49. -device virtio-blk-pci-non-transitional,iothread=iothread0,migrate-extra=off,drive=disk0,aer=on,multifunction=on,ats=on,iommu_platform=on,ioeventfd=on,num-queues=4,modern-pio-notify=on,bus=pcie.0 \
  50. -drive media=disk,id=disk1,if=none,unit=3,node-name=vdb,readonly=off,copy-on-read=on,cache=unsafe,aio=native,cache.direct=on,format=raw,file=/home/enki/Downloads/'nomadbsd-130R-20210508.amd64.img' \
  51. -device virtio-blk-pci-non-transitional,iothread=iothread1,migrate-extra=off,drive=disk1,aer=on,multifunction=on,ats=on,iommu_platform=on,ioeventfd=on,num-queues=4,modern-pio-notify=on,bus=pcie.0 \
RAW Paste Data