Setting up a GPU passtrough for a VM!

Hi,
I am enjoying my time with my Zorin OS so far, I still love the experience but I hit a roadblock every once in a while. My plans this time were to setup a VM for gaming. I really like the compatibility layers that Zorin provides, but sometimes it just isn't enough. I installed gnome boxes and booted Win10 on it. I thought its a simple VM management app. The main job of the VM is to handle games, thus it would be great to have a passtrough for my GPU.

I am using a laptop with a Nvidia RTX 3050ti & a 11th Gen Intel i7
I have a dedicated GPU (the nvidia one) and a Intel one.

I have no idea how to do this so i thought the forums might know.

also the internet speed on my VM is quite poor, but thats just a side problem.

Hi, if you want to utilise more computer power, QEMU/KVM is better integrated in Linux, has a smaller footprint and should therefore be faster than VirtualBox or VMWare.

1 Like

alright,ill try to setup qemu, but ill come to the same problem do you know how to do a GPU passtrough for qemu?

I've done it once a couple of years ago.

It worked with a Nvidia GPU I had.
But I forgot how I did it since I am not a gamer and I just did it out of curiosity. At least I can vouch that it is possible.

I hope other forum members @storm or @Aravisian has a better idea than myself.

I tried to boot the iso file on qemu, i just get this error.

input
qemu-system-x86_64 -boot d -cdrom /home/duckei/Radna površina/Win10_21H1_English_x64(1).iso -m 8000
(i just try to boot it)

output
bash: syntax error near unexpected token `('

If you are using Zorin 16, it is better to follow the tutorial written for Ubuntu 20,04 (which Zorin 16 is based on).

ahh I didnt see that you attached a guide mb.
got a fk ton of errors on another one

W: Possible missing firmware /lib/firmware/i915/skl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/bxt_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/glk_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/kbl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/cml_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/icl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/ehl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i91
5
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i91
5
W: Possible missing firmware /lib/firmware/i915/tgl_guc_49.0.1.bin for module i9
15
W: Possible missing firmware /lib/firmware/i915/dg1_dmc_ver2_02.bin for module i
915
Errors were encountered while processing:
lvm2

I think the link I gave above is more trust worthy since it is provided by a Cloud provider. I think it worth another shot.

I tried it but i still get missing firmware errors

sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

the ones I send before

Reading package lists... Done
Building dependency tree
Reading state information... Done
libvirt-clients is already the newest version (6.0.0-0ubuntu8.13).
libvirt-clients set to manually installed.
libvirt-daemon-system is already the newest version (6.0.0-0ubuntu8.13).
libvirt-daemon-system set to manually installed.
qemu-kvm is already the newest version (1:4.2-3ubuntu6.17).
Suggested packages:
ifupdown
The following NEW packages will be installed:
bridge-utils

I did a quick search at Stack Exchange and found this. It might give you some hint.

I get the reason why it fails now, but this still bothers me.

Add non-free to your /etc/apt/sources.list :

deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free

what is the command for deb on ubuntu 20.04

I tried the other option.

duckei@JakovLap:~$ sudo apt-get install firmware-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package firmware-linux is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'firmware-linux' has no installation candidate

Scroll down to the answer.

Command 'deb' not found, did you mean:
?

Please issue this command in terminal:

sudo nano /etc/apt/sources.list

and copy and paste the output in reply.

#deb cdrom:[Zorin-OS 16 Core 64bit]/ focal main restricted

See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

newer versions of the distribution.

deb Index of /ubuntu focal main restricted

deb-src Index of /ubuntu focal main restricted

Major bug fix updates produced after the final release of the

distribution.

deb Index of /ubuntu focal-updates main restricted

deb-src Index of /ubuntu focal-updates main restricted

N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

team. Also, please note that software in universe WILL NOT receive any

review or updates from the Ubuntu security team.

deb Index of /ubuntu focal universe

deb-src Index of /ubuntu focal universe

deb Index of /ubuntu focal-updates universe

deb-src Index of /ubuntu focal-updates universe

I will go sleep, as its pretty late here. I will come back to you tmrw ASAP.

Sorry, you lost me.
I cannot comprehend your question.
.deb is the extension of installers for Debian based OSs.