Blog post from Alex Williamson about Libvirt with GPU passthrough and OVMF
http://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-4-our-first.html
Preparation for GPU passthrough:
http://kvm-exp.blogspot.com/2015/06/links-and-scripts-from-video.html
My hardware components:
Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz socket 1150
GA-Z97X-UD3H-BK
16GB DDR3 Memory
512GB SSD
NVIDIA GeForce GTX 780 (ASUS GTX780-DC2OC-3GD5) for passthrugh
Here are the used commands and configurations
Install needed applications:
sudo apt-get install libvirt-daemon virt-manager
Check your passthrough device:
lspci -nk
Check groups:
groups
Change groups for libvirt:
sudo usermod -a -G libvirt,libvirt-qemu USERNAME
Create imagefile that basesd on a backingfile or a masterimage:
qemu-img create -f qcow2 -o backing_file=win7-uefi-x64_system.qcow2,backing_fmt=qcow2 win7-uefi-libvirt-x64_system.qcow2
Check the new imagefile:
qemu-img info win7-uefi-libvirt-x64_system.qcow2
Edit the libvirt machine files manually:
sudo virsh edit "machine name"
Insert the OVMF Firmwarefile to XML (without # lines):
# <os>
# ..
<loader readonly='yes' type='rom'>/usr/share/ovmf/OVMF.fd</loader>
# ..
# </os>
For Nvidia Users, use this (without # lines):
# <features>
# ..
<kvm>
<hidden state='on'/>
</kvm>
# ..
# </features>
Delete tablet device, it's not helpfull with GPU passthrough:
delete <input type='tablet' bus='usb'/>
change:
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
to:
<input type='mouse' bus='usb'/>
<input type='keyboard' bus='usb'/>
Keine Kommentare:
Kommentar veröffentlichen
Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.