Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Use PulseAudio
- QEMU_PA_SAMPLES=128
- export QEMU_AUDIO_DRV=pa
- sudo qemu-system-x86_64 \
- -name Windows-7 \
- -pidfile /tmp/kvm-windows7.pid \
- -cpu host,kvm=off \
- -smp 8,sockets=1,cores=4,threads=2 \
- -enable-kvm \
- -m 8G \
- -mem-path /dev/hugepages \
- -mem-prealloc \
- -balloon none \
- -rtc clock=vm,base=localtime \
- -vga none \
- -serial null \
- -parallel null \
- -monitor none \
- -display none \
- -daemonize \
- -soundhw hda \
- -k en-us \
- -machine type=q35,accel=kvm \
- -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
- -boot order=c \
- -drive if=none,id=drive0,cache=none,aio=native,format=raw,file=/dev/disk/by-id/ata-Hitachi_HDS721050CLA660_JP1570FR1ZWP7K \
- -device virtio-blk,drive=drive0,scsi=off,config-wce=off,x-data-plane=on \
- -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
- -device vfio-pci,host=01:00.1,bus=root.1,addr=00.1 \
- -net nic,model=virtio,macaddr=52:54:00:6b:03:05 -net bridge,br=br0 \
- -usb \
- -device ich9-usb-uhci3,id=uhci \
- -device usb-ehci,id=ehci \
- -usbdevice host:093a:2510 \
- -usbdevice host:04d9:1603 \
- -usbdevice host:046d:c21e \
- -usbdevice host:0bc2:2300
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement