You are not logged in.

#1 2021-06-23 17:11:34

log1xx
Member
Registered: 2021-06-23
Posts: 5

Installing Arch with NVIDIA GPU and Intel iGPU

Hi, kinda a Newbie when it come to Graphics cards and passing through to VMs

I would like to be able to use my Intel iGPU for my Arch install and pass through a NVIDIA GPU to a Windows 10 VM in KVM. However this is proving to be difficult (Gotta love NVIDIAs attitude to the Linux community). I would also like to have an option when booting up to just use the NVIDIA GPU for Arch when i dont need my Win10 VM running. However, after many failed attepts i cant even seem to get arch booting after install, or the one time it did, xorg wouldnt start. What im looking for is some kind of guidence to help me, and other with a similar setup. to install Arch in this manor.

My Setup:
i7-9700k with UHD 630 Graphics
RTX 2060 SUPER
16 GB of RAM
MSI MPG Z390 Gaming Plus Motherboard.

One other thing. I have 2 Monitors and a TV that i have hooked up. Id like to have them hooked up to the NVIDIA GPU even when passing it to the Win10 VM. Is this even possible? or will i just have to get a AMD GPU (Which is hard given the current market hmm).

Any help on this is appreciated!

Offline

#2 2021-06-23 17:30:27

headkase
Member
Registered: 2011-12-06
Posts: 1,988

Re: Installing Arch with NVIDIA GPU and Intel iGPU

Are you familiar with: This page?  If there is anything that makes that unsuitable or any issues you run into post back with that?

Offline

#3 2021-06-23 17:41:09

log1xx
Member
Registered: 2021-06-23
Posts: 5

Re: Installing Arch with NVIDIA GPU and Intel iGPU

headkase wrote:

Are you familiar with: This page?  If there is anything that makes that unsuitable or any issues you run into post back with that?

Yes, i have looked through that page previously just to get an idea to how GPU passthrough it down. However, i have been having other issues before even getting to that point. I have not been able to boot into Arch when using the NVIDIA proprietary driver, and the one time it did try to work, i was unable to start xorg. i have ran through the hoops of looking at forum threads to figure out whats happening, but i could not find something that would work.

Im looking just for guidence on how to install Arch, with the NVIDIA driver, and also creating a boot option using SystemD boot that makes my NVIDIA GPU get passed through to a KVM Windows 10 VM, and having Arch use my iGPU.

With that being said, is there other ways of letting a Windows 10 VM use the NVIDIA GPU?

Offline

#4 2021-06-23 18:00:41

headkase
Member
Registered: 2011-12-06
Posts: 1,988

Re: Installing Arch with NVIDIA GPU and Intel iGPU

You should get Arch booting first.  Has Arch ever worked on your machine or are you having all these troubles the first time installing it?

Do a standard install, no VM stuff, shake down that system and when you know all that works then configure it for a VGA pass-through.  This is breaking your problem up into two pieces: get Arch working, and then get a proper VM working.

Smaller pieces are more manageable, always try to break your problems down into multiple smaller ones until they are so simple it's obvious how to solve them.

Also, in your mainboard firmware make sure the GPU you want to use for Linux is set as the default.  Labeled "iGPU boot default" or something like that.  That GPU is assigned to Linux on boot and then the other will be unclaimed until your pass-through does that.

Last edited by headkase (2021-06-23 18:03:28)

Offline

#5 2021-06-23 18:02:26

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Installing Arch with NVIDIA GPU and Intel iGPU

Please post the journal from a failed boot with the nvidia module.  You can blacklist the nvidia modules from the boot-loader or boot from live media to post the journal.

Offline

#6 2021-06-23 22:12:05

log1xx
Member
Registered: 2021-06-23
Posts: 5

Re: Installing Arch with NVIDIA GPU and Intel iGPU

I have Arch now installed using the NVIDIA driver. However, after installing xorg, and run startx, it immediately terminates with no error message. Then I tried SDDM and KDE to see I xorg would start then, but it doesn’t. On boot I get error from SDDM saying it is unable to start xorg-server. I installed xorg and kde the same way I did on my laptop, but now it doesn’t work on my PC

Offline

#7 2021-06-23 23:13:32

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Installing Arch with NVIDIA GPU and Intel iGPU

Please post the output of dmesg,  the contents of /var/log/Xorg.0.log or if it exists ~/.local/share/xorg/Xorg.0.log,  the contents of ~/.xinitrc you used with startx and the contents of any config file you created or modified for X11.
Edit:
See the tip box from pastebin to post the outputs from the console.

Last edited by loqs (2021-06-23 23:23:11)

Offline

#8 2021-06-24 02:48:49

log1xx
Member
Registered: 2021-06-23
Posts: 5

Re: Installing Arch with NVIDIA GPU and Intel iGPU

Update: i now have KDE and Xorg running with the open source driver, however, when installing the proprietary driver and rebooting causes the system to hard lock on "[OK] Reached target Graphical Interface" even trying to switch tty's does not work. I am able to pacman -R the driver using a bootable USB to go back to the open source driver and it works fine.

Offline

#9 2021-06-24 03:39:25

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Installing Arch with NVIDIA GPU and Intel iGPU

Xorg.0.log.old will have the log for the previous execution of X.  The journal will contain the kernel and system services output for that boot.

Offline

#10 2021-06-24 16:13:11

log1xx
Member
Registered: 2021-06-23
Posts: 5

Re: Installing Arch with NVIDIA GPU and Intel iGPU

loqs wrote:

Xorg.0.log.old will have the log for the previous execution of X.  The journal will contain the kernel and system services output for that boot.

output of Xorg.0.log.old

[    23.828] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[    23.828]
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[    23.828] Build Operating System: Linux Archlinux
[    23.829] Current Operating System: Linux ashleigh-arch 5.12.12-arch1-1 #1 SMP PREEMPT Fri, 18 Jun 2021 21:59:22 +0000 x86_64
[    23.829] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=2adc497a-587a-4277-b52a-73b9601fce89 rw
[    23.829] Build Date: 13 April 2021  03:12:10PM
[    23.829] 
[    23.829] Current version of pixman: 0.40.0
[    23.829]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    23.829] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    23.829] (==) Log file: "/home/ashleigh/.local/share/xorg/Xorg.0.log", Time: Thu Jun 24 07:58:22 2021
[    23.830] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    23.830] (==) No Layout section.  Using the first Screen section.
[    23.830] (==) No screen section available. Using defaults.
[    23.830] (**) |-->Screen "Default Screen Section" (0)
[    23.830] (**) |   |-->Monitor "<default monitor>"
[    23.830] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    23.830] (==) Automatically adding devices
[    23.830] (==) Automatically enabling devices
[    23.830] (==) Automatically adding GPU devices
[    23.830] (==) Automatically binding GPU devices
[    23.831] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    23.831] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    23.831]     Entry deleted from font path.
[    23.831] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    23.831]     Entry deleted from font path.
[    23.831] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    23.831]     Entry deleted from font path.
[    23.831] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    23.831]     Entry deleted from font path.
[    23.831] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    23.831]     Entry deleted from font path.
[    23.831] (==) FontPath set to:
    /usr/share/fonts/TTF
[    23.831] (==) ModulePath set to "/usr/lib/xorg/modules"
[    23.831] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    23.831] (II) Module ABI versions:
[    23.831]     X.Org ANSI C Emulation: 0.4
[    23.831]     X.Org Video Driver: 24.1
[    23.831]     X.Org XInput driver : 24.1
[    23.831]     X.Org Server Extension : 10.0
[    23.831] (++) using VT number 1

[    23.833] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    23.833] (II) xfree86: Adding drm device (/dev/dri/card0)
[    23.833] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[    23.834] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[    23.834] (--) PCI:*(1@0:0:0) 10de:1f06:1462:c752 rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/131072
[    23.834] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    23.834] (II) LoadModule: "glx"
[    23.835] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    23.838] (II) Module glx: vendor="X.Org Foundation"
[    23.838]     compiled for 1.20.11, module version = 1.0.0
[    23.838]     ABI class: X.Org Server Extension, version 10.0
[    23.838] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[    23.838]     loading driver: nvidia
[    23.838] (==) Matched nvidia as autoconfigured driver 0
[    23.838] (==) Matched nouveau as autoconfigured driver 1
[    23.838] (==) Matched nv as autoconfigured driver 2
[    23.838] (==) Matched modesetting as autoconfigured driver 3
[    23.838] (==) Matched fbdev as autoconfigured driver 4
[    23.838] (==) Matched vesa as autoconfigured driver 5
[    23.838] (==) Assigned the driver to the xf86ConfigLayout
[    23.838] (II) LoadModule: "nvidia"
[    23.838] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    23.840] (II) Module nvidia: vendor="NVIDIA Corporation"
[    23.840]     compiled for 1.6.99.901, module version = 1.0.0
[    23.840]     Module class: X.Org Video Driver
[    23.840] (II) LoadModule: "nouveau"
[    23.840] (WW) Warning, couldn't open module nouveau
[    23.840] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    23.840] (II) LoadModule: "nv"
[    23.840] (WW) Warning, couldn't open module nv
[    23.840] (EE) Failed to load module "nv" (module does not exist, 0)
[    23.840] (II) LoadModule: "modesetting"
[    23.840] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    23.841] (II) Module modesetting: vendor="X.Org Foundation"
[    23.841]     compiled for 1.20.11, module version = 1.20.11
[    23.841]     Module class: X.Org Video Driver
[    23.841]     ABI class: X.Org Video Driver, version 24.1
[    23.841] (II) LoadModule: "fbdev"
[    23.841] (WW) Warning, couldn't open module fbdev
[    23.841] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    23.841] (II) LoadModule: "vesa"
[    23.841] (WW) Warning, couldn't open module vesa
[    23.842] (EE) Failed to load module "vesa" (module does not exist, 0)
[    23.842] (II) NVIDIA dlloader X Driver  465.31  Thu May 13 22:19:15 UTC 2021
[    23.842] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    23.842] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    23.842] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    23.842] (II) systemd-logind: releasing fd for 226:0
[    23.842] (II) Loading sub module "fb"
[    23.842] (II) LoadModule: "fb"
[    23.842] (II) Loading /usr/lib/xorg/modules/libfb.so
[    23.843] (II) Module fb: vendor="X.Org Foundation"
[    23.843]     compiled for 1.20.11, module version = 1.0.0
[    23.843]     ABI class: X.Org ANSI C Emulation, version 0.4
[    23.843] (II) Loading sub module "wfb"
[    23.843] (II) LoadModule: "wfb"
[    23.843] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    23.843] (II) Module wfb: vendor="X.Org Foundation"
[    23.843]     compiled for 1.20.11, module version = 1.0.0
[    23.843]     ABI class: X.Org ANSI C Emulation, version 0.4
[    23.843] (II) Loading sub module "ramdac"
[    23.843] (II) LoadModule: "ramdac"
[    23.843] (II) Module "ramdac" already built-in
[    23.845] (WW) Falling back to old probe method for modesetting
[    23.845] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    23.845] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    23.845] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    23.845] (==) NVIDIA(0): RGB weight 888
[    23.845] (==) NVIDIA(0): Default visual is TrueColor
[    23.845] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    23.845] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[    23.845] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[    23.845] (**) NVIDIA(0): Enabling 2D acceleration
[    23.845] (II) Loading sub module "glxserver_nvidia"
[    23.845] (II) LoadModule: "glxserver_nvidia"
[    23.845] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[    23.861] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    23.861]     compiled for 1.6.99.901, module version = 1.0.0

Offline

#11 2021-06-24 18:08:43

loqs
Member
Registered: 2014-03-06
Posts: 19,009

Re: Installing Arch with NVIDIA GPU and Intel iGPU

Please use code tags for commands and their outputs.  Please post the requested journal.

Offline

#12 2021-06-24 19:39:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,441

Re: Installing Arch with NVIDIA GPU and Intel iGPU

And the output of "lspci" - also that server didn't terminate or the file is truncated.

Offline

Board footer

Powered by FluxBB