F5F Stay Refreshed Software Operating Systems Configure PCI passthrough for KVM on Devuan Linux 5.0

Configure PCI passthrough for KVM on Devuan Linux 5.0

Configure PCI passthrough for KVM on Devuan Linux 5.0

Pages (2): Previous 1 2
J
Jdtay
Junior Member
8
07-25-2021, 07:50 AM
#11
I haven't adjusted those settings in the BIOS, so I'll make sure to review and confirm. Would that turn off my primary screen? I'm hoping everything works smoothly so I can keep all four displays running while using Windows 11 for games and dev tools, then switch back to Linux when needed.
J
Jdtay
07-25-2021, 07:50 AM #11

I haven't adjusted those settings in the BIOS, so I'll make sure to review and confirm. Would that turn off my primary screen? I'm hoping everything works smoothly so I can keep all four displays running while using Windows 11 for games and dev tools, then switch back to Linux when needed.

S
Shardgale
Senior Member
547
07-25-2021, 02:57 PM
#12
I've been employing GPU passthrough for several years across various configurations. I'm not considered an expert, but I follow the proxmox documentation (https://pve.proxmox.com/wiki/Pci_passthrough) to ensure accuracy. Your approach appears sound. To refresh the grub setup, I typically run "update-grub." For VFIO updates, using "update-initramfs" seems to work well. You can check if iommu is active and if VFIO loads correctly by searching online—results may vary depending on your Linux distribution. Regarding your VM setup, I'm unsure about the exact configuration you're using. Are you running Virsh Manager, QEMU with a .conf file, or another method? A sample configuration could help clarify things. I suspect your system is loading the 6900X via the GPU, but if the VM freezes or locks up, it might be due to GPU usage interfering. Your lspci -nnk also points to an AMD GPU driver, which aligns with what you expect. If you need to pass the 6900X to the VM, setting WX4100 as the primary GPU is likely necessary. I'm not certain about the exact hardware connections—do you have both monitors linked to the WX4100? And are there any additional displays connected to the 6900XT? Before launching the VM, ensure no signal is coming from the 6900XT.
S
Shardgale
07-25-2021, 02:57 PM #12

I've been employing GPU passthrough for several years across various configurations. I'm not considered an expert, but I follow the proxmox documentation (https://pve.proxmox.com/wiki/Pci_passthrough) to ensure accuracy. Your approach appears sound. To refresh the grub setup, I typically run "update-grub." For VFIO updates, using "update-initramfs" seems to work well. You can check if iommu is active and if VFIO loads correctly by searching online—results may vary depending on your Linux distribution. Regarding your VM setup, I'm unsure about the exact configuration you're using. Are you running Virsh Manager, QEMU with a .conf file, or another method? A sample configuration could help clarify things. I suspect your system is loading the 6900X via the GPU, but if the VM freezes or locks up, it might be due to GPU usage interfering. Your lspci -nnk also points to an AMD GPU driver, which aligns with what you expect. If you need to pass the 6900X to the VM, setting WX4100 as the primary GPU is likely necessary. I'm not certain about the exact hardware connections—do you have both monitors linked to the WX4100? And are there any additional displays connected to the 6900XT? Before launching the VM, ensure no signal is coming from the 6900XT.

P
plush43
Junior Member
12
07-25-2021, 11:00 PM
#13
I'm working with QEMU+KVM and Virtual Machine Manager. My main display uses Freesync with all standard features connected to the 6900XT. One port remains available on the W4100, while the other three are already linked there.
P
plush43
07-25-2021, 11:00 PM #13

I'm working with QEMU+KVM and Virtual Machine Manager. My main display uses Freesync with all standard features connected to the 6900XT. One port remains available on the W4100, while the other three are already linked there.

T
Tewerbay
Junior Member
6
07-31-2021, 05:34 PM
#14
I’m likely to repeat this whole procedure tonight, reviewing all the updated instructions and returning tomorrow. Thank you for your assistance—it means a lot. I’ll keep you posted on the progress.
T
Tewerbay
07-31-2021, 05:34 PM #14

I’m likely to repeat this whole procedure tonight, reviewing all the updated instructions and returning tomorrow. Thank you for your assistance—it means a lot. I’ll keep you posted on the progress.

R
ReerProduku
Junior Member
32
08-06-2021, 06:31 PM
#15
Stay updated with the progress. I'll assist to the best of my ability. If you're at the next phase, using the virsh manager GUI, make sure to enable XML editing in Preferences Menu. Then edit the PCI device's XML file (video only) and manually set multifunction to "on".
R
ReerProduku
08-06-2021, 06:31 PM #15

Stay updated with the progress. I'll assist to the best of my ability. If you're at the next phase, using the virsh manager GUI, make sure to enable XML editing in Preferences Menu. Then edit the PCI device's XML file (video only) and manually set multifunction to "on".

T
tomtomjumbo
Member
188
08-07-2021, 04:09 AM
#16
I understand I mentioned I’d follow up with updates, but I’ve been occupied elsewhere. Here are your concerns clarified: Would your main monitor connected to the 6900XT stay black until you boot Windows 11? Could you still run Linux normally and switch to Windows 11 when starting the VM? And after shutting down the VM, would it return to a full Linux display? I should have asked these before diving in, but now they’re surfacing. Thanks.
T
tomtomjumbo
08-07-2021, 04:09 AM #16

I understand I mentioned I’d follow up with updates, but I’ve been occupied elsewhere. Here are your concerns clarified: Would your main monitor connected to the 6900XT stay black until you boot Windows 11? Could you still run Linux normally and switch to Windows 11 when starting the VM? And after shutting down the VM, would it return to a full Linux display? I should have asked these before diving in, but now they’re surfacing. Thanks.

S
Starlight641
Member
53
08-07-2021, 10:50 AM
#17
The configuration you're using will keep everything black until Windows 11 starts. It resets back to black after shutting down the VM. Switching between Linux and Windows 11 in this setup isn't straightforward. Ideally, you might be able to unload the video driver to free up resources, but that would require a complex configuration. To avoid issues, I connect both the WX4100 and RX6900 to the main display and manage input switching via a KVM or similar device.
S
Starlight641
08-07-2021, 10:50 AM #17

The configuration you're using will keep everything black until Windows 11 starts. It resets back to black after shutting down the VM. Switching between Linux and Windows 11 in this setup isn't straightforward. Ideally, you might be able to unload the video driver to free up resources, but that would require a complex configuration. To avoid issues, I connect both the WX4100 and RX6900 to the main display and manage input switching via a KVM or similar device.

K
kaomes
Member
151
08-08-2021, 05:40 AM
#18
Sure, I'm glad to hear that. I plan to save this for later when I need a more suitable model like the 7900XT for my main Linux display and use the 6900XT for Windows 11. Thank you all for your support—it made a big difference.
K
kaomes
08-08-2021, 05:40 AM #18

Sure, I'm glad to hear that. I plan to save this for later when I need a more suitable model like the 7900XT for my main Linux display and use the 6900XT for Windows 11. Thank you all for your support—it made a big difference.

N
Nacheey
Junior Member
22
08-08-2021, 02:26 PM
#19
Maybe with that setup, if you have a 7900XT and the 6900XT connected to the same monitor, would it automatically switch between them based on which one you use? For example, when launching the VM, would it change to the 6900XT for Windows 11? And after shutting it down, should it revert back to the 7900XT for Linux? These questions are really useful, so thank you for your help.
N
Nacheey
08-08-2021, 02:26 PM #19

Maybe with that setup, if you have a 7900XT and the 6900XT connected to the same monitor, would it automatically switch between them based on which one you use? For example, when launching the VM, would it change to the 6900XT for Windows 11? And after shutting it down, should it revert back to the 7900XT for Linux? These questions are really useful, so thank you for your help.

L
lcw123
Junior Member
43
08-18-2021, 03:52 AM
#20
You must manually change them, using the input switch on the screen or through a KVM switch. Just like with KVM (keyboard/Video/mouse), not the KVM from the kernel-based virtual machine.
L
lcw123
08-18-2021, 03:52 AM #20

You must manually change them, using the input switch on the screen or through a KVM switch. Just like with KVM (keyboard/Video/mouse), not the KVM from the kernel-based virtual machine.

Pages (2): Previous 1 2