Skip to content

Get a functional qemu windows 10 guest with phisical host's GPU card

License

Notifications You must be signed in to change notification settings

vgenguita/win10-qemu-guest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

win10-qemu-guest

Get a functional qemu windows 10 guest with real gpu of host.

This script is mainly based on https://github.com/cardi/qemu-windows-10 but updated and modified according with my needs.

Features

  • Use gpu's host directly on the VVM
  • Pass any USB device from host to VM
  • Redirect ports from guest to host, for example RDP port for remote access.

Requirements

Software

Hardware

  • A CPU with hardware virtualization support
  • A motherboard with IOMMU support
  • At least, one free graphic card to pass it to guest.

PCI Passtrhough

  1. Enable or check iommu on your host
  2. Check IOMMU groups iommu.sh
#!/bin/bash
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
    echo "IOMMU Group ${g##*/}:"
    for d in $g/devices/*; do
        echo -e "\t$(lspci -nns ${d##*/})"
    done;
done;
  1. Isolate GPU Check this to get detailed steps -> https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF

Installing Windows 10

In GPU Settings of win10guest.sh script file you must activate vitrio options

##GPU Settings
#VIRTIO Device. Enable during instalation and initial setup, comment latter
OPTS="$OPTS -vga virtio"
OPTS="$OPTS -display sdl,gl=on"

#NONE. Enable in order to use only PCI_passthrough device.
#After initial setup and drivers installed, comment VIRTIO settings
OPTS="$OPTS -vga none"
# running from the shell
OPTS="$OPTS -nographic"

Check Installation of Windows 10 section -> https://www.funtoo.org/Windows_10_Virtualization_with_KVM

Once windows is installed and configured, you would see video singal on monitor connected to guest' s GPU, now you can comment VIRTIO settings and use your own mouse and mice (Check USB section of win10guest.sh ).

If you want to share mouse and mice with your VM just maintain virtio graphics, the window will capture them.

 
##GPU Settings
#VIRTIO Device. Enable during instalation and initial setup, comment latter
#OPTS="$OPTS -vga virtio"
#OPTS="$OPTS -display sdl,gl=on"

#NONE. Enable in order to use only PCI_passthrough device.
#After initial setup and drivers installed, comment VIRTIO settings
OPTS="$OPTS -vga none"
# running from the shell
OPTS="$OPTS -nographic"

Samba server

Check Accessing Files on your Linux System section -> https://www.funtoo.org/Windows_10_Virtualization_with_KVM

LICENSE

CC0-1.0 / CC0-1.0 Universal

About

Get a functional qemu windows 10 guest with phisical host's GPU card

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages