Vga Pass Through Kv m Fedora 17

Published on January 2017 | Categories: Documents | Downloads: 27 | Comments: 0 | Views: 220
of 2
Download PDF   Embed   Report

Comments

Content

Fedora 17 VGA Passthrough with KVM tavi-tech.blogspot.com For recent versions of qemu, kvm and kernel this doesn't seem to work anymore. The new prefered way for doing passthrough is using VFIO, which is still in development. Once I'll have more time, I'll be testing it and hopefully post a new guide. 06 July 2013 First of all, you should read a lot more than this guide. 2nd, if it worked for me, I’m sorry to say, it might not work for you. 3rd, BACK UP valuable data, I think it goes without saying that I’m not responsible if something breaks. 4th read at least the links bellow Reading: http://www.linux-kvm.org/page/HOWTO http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM http://fedoraproject.org/wiki/Getting_started_with_virtualization 0.0.0.0/32 Hardware requirements: 1. Intel processor with VT-d capabilities or AMV-VI. 2. Motherboard that explicity supports VT-d / IOMMU. 3. Lots of ram (>= 4GB) and HDD space 4. The most important, the desire to do this and time My Test RIG Processor INTEL i7-2600 Motherboard ASRock H67M-GE Ram 8GB DDR3 HDD/SSD 120GB ADATA SSD Video Card: VTX 3D Radeon HD6770 1GB DDR5 128bit Power Supply Sirtec 500W

How to Get the host ready
1. Install Fedora 17 64bit, create a 50GB or larger lvm partition for windows. If you have a UEFI motherboard, just ignore UEFI and install Fedora with grub2, without UEFI boot suport (I think there is a bug concerning KVM, UEFI, grub legacy and pci passthrough). I used Fedora netinstall minimal setup, root as the only user account. 2. You should make sure that Fedora is updated and you should setup ssh access. 3. Install virtualization related packages: # yum install @virtualization # service libvirtd start 4. Append intel_iommu=on to /etc/default/grub GRUB_CMDLINE_LINUX for Intel cpus and update grub: # grub2-mkconfig -o /boot/grub2/grub.cfg NOTE for AMD cpus append "iommu=pt iommu=1" to grub and not intel_iommu=on. 5. Blacklist video card driver in /etc/modprobe.d/blacklist.conf 6. Follow these instruction for pci passthrough: http://fedoraproject.org/wiki/How_to_debug_Virtualization_problems#PCI_device_assignment 7. Reboot Check that you have similar output to http://www.linux-kvm.org/page/How_to_assign_devices_with_VTd_in_KVM once you reboot, this is the most important thing. If you get “Connection reset by peers” when booting up the VM with a pci device attached IOMMU might not be enabled in the BIOS, grub, or you installed using UEFI (dmesg | grep -e DMAR -e IOMMU shows only IOMMU). July 06, 2013 Version 0.9.3

Fedora 17 VGA Passthrough with KVM tavi-tech.blogspot.com This should be it, now the host should be able to pass the video card to a VM whitout any problems. The version of qemu-kvm in Fedora 17 is 1.0, Linux kernel 3.3.7-1.

Install and configure the VM
My VM: Windows 7 x64 4 GB memory 1 socket 8 cores 8 threads Virtio HDD 50GB lvm I used virt-manager through ssh to install my VM, I recommend, that you should choose the option to customize your install and manualy set the cpu topology for the best performance (i think this is another bug? although i would say that i want 4,6,8 cores for my VM, in the install dialog, i would only get 2). I didn’t attached the video card or any USB or sound devices when I installed the VM, i did it after. I did use the virtio drivers for the disk and ethernet device. After Windows 7 was installed I shutdown the VM, attached the video card and the HDMI sound, started the VM, installed the official AMD drivers, rebooted the VM and the video card was working. I added a USB keyboard, mice and the Intel audio controler to get sound. This is basically a plain windows install with drivers. Now you should be able to play ;)
From 0.9.2 - Warning about not working with newer versions of qemu, kvm, kernel From 0.9.1 -added iommu grub parameters for AMD cpus note -english check and changing the structure a bit From 0.9 -wrong default grub directory

Changelog from first version - discovered UEFI problem ? - virtual CPUs stuff - audio and USB is working fine

July 06, 2013

Version 0.9.3

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close