Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Running two Xorg instances - iGPU, NVidia GPU

  1. #1

    Default Running two Xorg instances - iGPU, NVidia GPU

    Hi,

    I am trying to build a VFIO/PCI passthrough setup. I am currently using an NVidia GTX 1070 video card my for install. I am considering using the Intel GPU ( i6500 ) for day-to-day tasks and passing through the NVidia card to a virtual machine. I would like to keep it available for Linux as well, so I'm considering the following setup:

    * Most desktop activities run using the integrated GPU
    * (when needed) start a different Xorg instance bound to the NVidia GPU for Steam
    * (when needed) start a KVM virtual machine bound the the NVidia GPU

    The two final steps won't be done at the same time, but ideally this would be done without rebooting. I would be using the same monitor but with different cables, for instance HDMI for the iGPU and DisplayPort for the NVidia card. If needed I can whip up another mouse/keyboard pair.

    Apparently my searching skills are inadequate for this topic, so my question is how can I configure my system for two Xorg instances - each using a different GPU?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,143
    Blog Entries
    2

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    First be aware that the xorg X server isn't implemented by default in openSUSE nowadays.

    Ding a GPU pass-through to a virtual machine Guest is generally close to the bleeding edge nowadays, implementations are constantly changing... So, I recommend that a Google search every time your question is asked can turn up whatever the latest news and recommendations.

    Looks like one person posted a blog within the past half year or so...
    https://blog.dancadar.eu/gpu-passthr...m-on-opensuse/

    The following was volunteered and submitted to the "Unofficial How To"
    https://forums.opensuse.org/showthre...SuSE-Leap-42-2

    Arch Wiki articles are always good sources of information...
    https://wiki.archlinux.org/index.php...rough_via_OVMF

    There are other threads in the Virtualization Forum and I encourage you to ask any other related questions in that Forum (since your Q relates to using a virtual machine Guest).

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3
    Join Date
    Sep 2012
    Posts
    5,026

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    Quote Originally Posted by robert_munteanu View Post
    I am currently using an NVidia GTX 1070 video card my for install. I am considering using the Intel GPU ( i6500 ) for day-to-day tasks
    It is Optimus system? If not - do you have multiple monitors (each GPU with own monitor)?

    Quote Originally Posted by tsu2 View Post
    First be aware that the xorg X server isn't implemented by default in openSUSE nowadays.
    Thank you for a good laugh at the start of the day.

  4. #4

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    Thanks for the reply.

    Quote Originally Posted by tsu2 View Post
    First be aware that the xorg X server isn't implemented by default in openSUSE nowadays.
    What are the differences?

    Quote Originally Posted by tsu2 View Post
    Ding a GPU pass-through to a virtual machine Guest is generally close to the bleeding edge nowadays, implementations are constantly changing... So, I recommend that a Google search every time your question is asked can turn up whatever the latest news and recommendations.

    Looks like one person posted a blog within the past half year or so...
    https://blog.dancadar.eu/gpu-passthr...m-on-opensuse/

    The following was volunteered and submitted to the "Unofficial How To"
    https://forums.opensuse.org/showthre...SuSE-Leap-42-2

    Arch Wiki articles are always good sources of information...
    https://wiki.archlinux.org/index.php...rough_via_OVMF

    There are other threads in the Virtualization Forum and I encourage you to ask any other related questions in that Forum (since your Q relates to using a virtual machine Guest).

    TSU
    I am one test short of GPU passthrough. I have 2 NVidia cards, but apparently I can't convince the second one to be passed to the VM. So I am trying to run on iGPU but use my NVidia 1070 for

    - gaming on linux
    - PCI passthrough

  5. #5

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    Quote Originally Posted by arvidjaar View Post
    It is Optimus system? If not - do you have multiple monitors (each GPU with own monitor)?
    Not an optimus system. It's a desktop and I have a single display with multiple inputs. So for instance iGPU goes to DisplayPort and NVidia to HDMI.

  6. #6
    Join Date
    Sep 2012
    Posts
    5,026

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    Quote Originally Posted by robert_munteanu View Post
    So I am trying to run on iGPU but use my NVidia 1070 for

    - gaming on linux
    - PCI passthrough
    In addition to mentioned references you may find this thread interesting - apparently the guy succeeded in dynamically switching dGPU between host and guest without reboot: https://www.reddit.com/r/VFIO/commen...stguest_often/

  7. #7

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    Pretty good stuff, thanks. But for me VFIO is step 2, as I don't want to tie my NVidia GPU to the VM only. What are my options for running steam on the dedicated GPU while booting from the integrated GPU? bumblebee? Separate xorg instance?

  8. #8
    Join Date
    Sep 2012
    Posts
    5,026

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    Quote Originally Posted by robert_munteanu View Post
    bumblebee? Separate xorg instance?
    Well, bumblebee does start separate Xorg instance under the hood anyway, but it also adds overlay libraries to display content rendered on one GPU using monitor connected to another GPU. As you have separate monitors, bumblebee is likely not suitable. Just starting second Xorg instance on nVidia card looks more simple.

  9. #9
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,143
    Blog Entries
    2

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    Once consequence if you're not running an xorg X server is that xorg configuration settings won't work. You'll need to configure specifically for the X server you're running. If you wish

    A fundamental principal of hardware pass-through is that whatever Guest or the Host has monopolistic access to that device, and isn't accessible (can't be shared or used by another Guest or the Host). This applies to any hardware device, not just GPUs.

    For more info,
    You can search the Virtualization Forum for recent postings.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  10. #10

    Default Re: Running two Xorg instances - iGPU, NVidia GPU

    First of all, VFIO is not the focus of my question. VFIO is the second step. First, I want to run steam on a different GPU, whether using bumblebee or a second Xorg instance.

    (That means that maybe a mod should move this to the Applications forum).

    Can I find some configurations or instructions somewhere on how to run multiple Xorg instances?

    Thanks again.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •