Created
March 15, 2015 06:17
-
-
Save ArseniyShestakov/2891f5c147298e0b8ffa to your computer and use it in GitHub Desktop.
QEMU configuration
This file contains 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
#!/bin/sh | |
modprobe vfio-pci | |
service lightdm stop | |
echo "1002 6719" > /sys/bus/pci/drivers/vfio-pci/new_id | |
echo "0000:01:00.0" > /sys/bus/pci/devices/0000:01:00.0/driver/unbind | |
echo "0000:01:00.0" > /sys/bus/pci/drivers/vfio-pci/bind | |
echo "1002 6719" > /sys/bus/pci/drivers/vfio-pci/remove_id | |
echo "1002 aa80" > /sys/bus/pci/drivers/vfio-pci/new_id | |
echo "0000:01:00.1" > /sys/bus/pci/devices/0000:01:00.1/driver/unbind | |
echo "0000:01:00.1" > /sys/bus/pci/drivers/vfio-pci/bind | |
echo "1002 aa80" > /sys/bus/pci/drivers/vfio-pci/remove_id | |
echo "8086 153b" > /sys/bus/pci/drivers/vfio-pci/new_id | |
echo "0000:00:19.0" > /sys/bus/pci/devices/0000:00:19.0/driver/unbind | |
echo "0000:00:19.0" > /sys/bus/pci/drivers/vfio-pci/bind | |
echo "8086 153b" > /sys/bus/pci/drivers/vfio-pci/remove_id | |
service lightdm start |
This file contains 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
qemu-system-x86_64 \ | |
-bios /usr/share/qemu/bios.bin \ | |
-enable-kvm \ | |
\ | |
-vga qxl \ | |
\ | |
-m 6G \ | |
-cpu host \ | |
-smp 8,sockets=1,cores=4,threads=2 \ | |
-soundhw hda \ | |
\ | |
-usb \ | |
-device usb-kbd \ | |
-device usb-mouse \ | |
\ | |
-name "win81_vfio_pci" \ | |
-M q35 \ | |
\ | |
-drive file=/root/win81.qcow2,id=disk1,format=qcow2,if=virtio \ | |
-drive file=/dev/disk/by-uuid/0AD949C94647B394,format=raw,if=virtio \ | |
\ | |
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \ | |
-device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \ | |
\ | |
-net none \ | |
\ | |
-device ioh3420,bus=pcie.0,multifunction=on,port=2,chassis=2,id=root.2 \ | |
-device vfio-pci,host=00:19.0,bus=root.2,addr=00.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment