F5F Stay Refreshed Software Operating Systems Enable GPU acceleration on Linux by configuring drivers and system settings appropriately.

Enable GPU acceleration on Linux by configuring drivers and system settings appropriately.

Enable GPU acceleration on Linux by configuring drivers and system settings appropriately.

A
AncientTaco789
Junior Member
4
05-16-2021, 04:59 AM
#1
Hi, I once had a dual-boot setup with Windows and Arch Linux on separate disks. At first it seemed silly, but I kept rebooting into Windows because of laziness. I then tried using VMware on Arch for gaming, but since my system only has one GPU, passthrough isn’t possible. I read about the need for two GPUs to separate the guest OS from the host OS, but Linux doesn’t support a GUI. I’m wondering if there’s a way to use just one GPU without relying on a GUI in the host. Thanks ahead!

System specs: 12700KF (CPU regret – CPU without an integrated GPU), RTX 3070 Ti, 32GB RAM, 3600MHz, M.SI Z690 Edge, Wi-Fi, DDR4, motherboard.

I’m thinking about using KVM or QEMU to “steal” the GPU and run bare metal.
A
AncientTaco789
05-16-2021, 04:59 AM #1

Hi, I once had a dual-boot setup with Windows and Arch Linux on separate disks. At first it seemed silly, but I kept rebooting into Windows because of laziness. I then tried using VMware on Arch for gaming, but since my system only has one GPU, passthrough isn’t possible. I read about the need for two GPUs to separate the guest OS from the host OS, but Linux doesn’t support a GUI. I’m wondering if there’s a way to use just one GPU without relying on a GUI in the host. Thanks ahead!

System specs: 12700KF (CPU regret – CPU without an integrated GPU), RTX 3070 Ti, 32GB RAM, 3600MHz, M.SI Z690 Edge, Wi-Fi, DDR4, motherboard.

I’m thinking about using KVM or QEMU to “steal” the GPU and run bare metal.

W
winnerplay25
Senior Member
477
05-16-2021, 05:18 AM
#2
Linux operates without a graphical interface directly, but to observe the running guest operating system you need visual access. This typically involves using a graphical user interface. Virtual machines can run in a "headless" mode where Linux displays their UI inside a virtual frame buffer, yet you can't view the actual screen output. To see the contents, you'd have to route that virtual frame buffer to another device equipped with a graphics card, allowing it to render the frames. Usually, the host system displays the VM's screen by rendering it on its own GPU or integrating the guest's output into its own interface.
W
winnerplay25
05-16-2021, 05:18 AM #2

Linux operates without a graphical interface directly, but to observe the running guest operating system you need visual access. This typically involves using a graphical user interface. Virtual machines can run in a "headless" mode where Linux displays their UI inside a virtual frame buffer, yet you can't view the actual screen output. To see the contents, you'd have to route that virtual frame buffer to another device equipped with a graphics card, allowing it to render the frames. Usually, the host system displays the VM's screen by rendering it on its own GPU or integrating the guest's output into its own interface.

Z
Ziiks84
Member
99
05-23-2021, 04:25 PM
#3
the purpose is to keep the Windows environment separate from the Linux setup, allowing you to run Windows without affecting the host system. since direct GPU swapping isn't possible, this approach helps maintain stability and control over each OS.
Z
Ziiks84
05-23-2021, 04:25 PM #3

the purpose is to keep the Windows environment separate from the Linux setup, allowing you to run Windows without affecting the host system. since direct GPU swapping isn't possible, this approach helps maintain stability and control over each OS.

B
Blureux
Posting Freak
797
06-02-2021, 04:01 AM
#4
You may need to disable any running Display Servers (X.org/Wayland). Searching for single GPU passthrough usually leads to helpful guides, like the one on GitHub: https://github.com/QaidVoid/Complete-Sin...assthrough. Personally, I don’t see much value in it. It won’t speed things up compared to dual booting. You’ll still have to log out and restart Windows each time you need the VM. Unless you’re using a physical disk, it might use a bit more space. Performance will drop noticeably. You’ll have more room for errors, Linux could become mostly unusable while the VM runs. You can connect via SSH from Windows, but WSL is likely a better option. If your aim is gaming, some titles like Valorant detect VMs and treat them as a security risk. My advice is to get a second GPU, switch to dual boot, or run Windows with WSL.
B
Blureux
06-02-2021, 04:01 AM #4

You may need to disable any running Display Servers (X.org/Wayland). Searching for single GPU passthrough usually leads to helpful guides, like the one on GitHub: https://github.com/QaidVoid/Complete-Sin...assthrough. Personally, I don’t see much value in it. It won’t speed things up compared to dual booting. You’ll still have to log out and restart Windows each time you need the VM. Unless you’re using a physical disk, it might use a bit more space. Performance will drop noticeably. You’ll have more room for errors, Linux could become mostly unusable while the VM runs. You can connect via SSH from Windows, but WSL is likely a better option. If your aim is gaming, some titles like Valorant detect VMs and treat them as a security risk. My advice is to get a second GPU, switch to dual boot, or run Windows with WSL.

R
robin178
Junior Member
2
06-02-2021, 06:22 AM
#5
The main concern is restoring the GPU once I exit the virtual machine.
R
robin178
06-02-2021, 06:22 AM #5

The main concern is restoring the GPU once I exit the virtual machine.

X
X_FredBear_X
Member
226
06-02-2021, 07:45 AM
#6
This resource incorporates libvirt hooks for detaching and reconnecting, though it leans toward accepting potential complications.
X
X_FredBear_X
06-02-2021, 07:45 AM #6

This resource incorporates libvirt hooks for detaching and reconnecting, though it leans toward accepting potential complications.

P
puffyshadow8
Member
156
06-02-2021, 10:00 AM
#7
I wasn't able to enter a TTY session or perform those actions to restore your GPU after leaving the VM.
P
puffyshadow8
06-02-2021, 10:00 AM #7

I wasn't able to enter a TTY session or perform those actions to restore your GPU after leaving the VM.

R
randomabby
Senior Member
476
06-05-2021, 11:43 AM
#8
It seems the setup won't work due to games like Valorant detecting VMs. The secure boot policy error arises because Windows expects a signed package, but unsigned files are needed. You may need to disable secure boot temporarily or adjust the configuration to allow unsigned modules.
R
randomabby
06-05-2021, 11:43 AM #8

It seems the setup won't work due to games like Valorant detecting VMs. The secure boot policy error arises because Windows expects a signed package, but unsigned files are needed. You may need to disable secure boot temporarily or adjust the configuration to allow unsigned modules.