Upload

Loading...

QEMU/KVM VGA passthrough BFH and BF4 in a Virtual Gaming Machine with NVIDIA GTX 780

11,332

Loading...

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on May 2, 2015

Created with Kdenlive, Debian 8 Jessie

BF Hardline and BF4 on Windows 7 Pro x64 in a KVM virtual Machine hosted on Debian 8.0 Jessie.

Using vfio VGA passthrough of a Nvidia GTX 780.

Without special patches or kernel mods. You can use the default Debian Jessie kernel.

This Video shows the configuration and some minutes of BF gaming in 1920x1080 @60Hz and 3840x2160 @60Hz.

Host:
Debian 8.0 Jessie 01.05.2015
Guest:
KVM Win7 Pro amd64 with Nvidia whql Driver 350.12 64bit
Hardware:
CPU i7 4820K socket 2011
Mainboard Gigabyte GA-X79-UP4 Rev. 1.0
Graphic card: Host: Gigabyte GV-N75TOC-2GI Guest: Asus GTX780-DC2OC-3GD5
Patches:
none, Debian standard
Modifications:
/etc/default/grub
/etc/initramfs-tools/modules add "pci_stub" at the end
after change start this as root:
update-initramfs -u
update-grub2
and reboot

After boot:
First bind graphic card to vfio: lspci give this information for my GTX780 04:00.0 VGA compatible controller: NVIDIA Corporation GK110 GeForce GTX 780 rev a1 04:00.1 Audio device: NVIDIA Corporation GK110 HDMI Audio rev a1 vfio-bind from https://bbs.archlinux.org/viewtopic.p... as root start "vfio-bind 0000:04:00.0 0000:04:00.1"

now you can start the virtual machine ---

qemu-system-x86_64 -enable-kvm -m 8192 -cpu host,kvm=off \
-smp 4,sockets=1,cores=4,threads=1 \
-machine q35,accel=kvm \
-soundhw hda \
-device vfio-pci,host=0x:00.0,rombar=1,x-vga=on \
-device vfio-pci,host=0x:00.1 \
-bios /usr/share/seabios/bios.bin \
-device virtio-net-pci,netdev=user.0,mac=52:54:0­0:03:02:01 \
-netdev user,id=user.0 \
-drive file=win7-x64_system.qcow2,if=none,id=dr­ive-virtio-disk0,format=qcow2 \
-device virtio-blk-pci,scsi=off,addr=0x7,drive=d­rive-virtio-disk0,id=virtio-disk0,bootin­dex=1 \
-drive file=win7-games.qcow2,if=none,id=drive-v­irtio-disk1,format=qcow2 \
-device virtio-blk-pci,scsi=off,addr=0x8,drive=d­rive-virtio-disk1,id=virtio-disk1 \
-rtc base=localtime,driftfix=slew \
-usbdevice host:x.x \
-usbdevice host:y.y \
-vga none

This will start the virtual machine, and passthrugh the Nvidia GTX 780 graphic card to the guest.
The USB devices keyboard and mouse will also passthrugh to the guest.
The KVM sound device is a little bit noisy, so I use the Nvidia device with sound from screen. I will test some additional sound configurations.
Disc and network are virtio devices.

You have to change the vfio-pci device IDs and the USBdevice names.

start it as root

Enjoy

Inspired from:
http://linuxlookup.com/windows_gaming...
https://www.youtube.com/watch?v=37D2b...

Informations from:

https://bbs.archlinux.org/viewtopic.p...
now https://www.redhat.com/mailman/listin...

https://wiki.debian.org/VGAPassthrough

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...