Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 08-08-2020, 10:14 AM   #1
LQ Newbie
Registered: May 2020
Posts: 17

Rep: Reputation: Disabled
How to pass through both the graphic cards that I have on two different virtual machines and one only PC

Hello to everyone,

I need some help to achieve my goal. What I want to do is to create two different qemu-kvm virtual machines on Ubuntu 20.04 assigning to each of them some of the resources of one only PC. I want to distribute the resources of the PC to the VMs like this :

a) vm 1 : should have 1 kinect 2 ; one monitor ; 1 graphic card (nvidia geforce rtx 2080 ti)

b) vm 2 ; the other kinect 2 ; one monitor ; the graphic card n.2 (intel UHD graphic 630)

The problem that I have is that the intel UHD graphic 630 is attached to the monitor that I use to manage ubuntu 20.04 and when it is captured by the vm,it seems that both the host and the guest os are freezed. Below you can see whats the address :

now I'm going to explain how I have configured the passthrough of both the main graphic card that I have,the RTX 2080 ti and of the iGPU :

root@ziomario-z390aoruspro:/home/ziomario# lspci -nn | grep 01:00.

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti] [10de:1e04] (rev a1)

01:00.1 Audio device [0403]: NVIDIA Corporation TU102 High Definition Audio Controller [10de:10f7] (rev a1)

01:00.2 USB controller [0c03]: NVIDIA Corporation TU102 USB 3.1 Host Controller [10de:1ad6] (rev a1)

01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU102 USB Type-C UCSI Controller [10de:1ad7] (rev a1)

root@ziomario-z390aoruspro:/home/ziomario# lspci -nn | grep 00:02.0

00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Desktop 9 Series) [8086:3e98] (rev 02)

3) /etc/modprobe.d/blacklist-nouveau.conf

blacklist nouveau

options nouveau modeset=0

blacklist nvidia

4) /etc/modprobe.d/vfio.conf

options vfio-pci ids=10de:1e04,10de:10f7,8086:3e98

options kvm ignore_msrs=1 report_ignored_msrs=0

options kvm-intel nested=y ept=y

softdep nouveau pre: vfio-pci

softdep nvidia pre: vfio-pci

5) /etc/modprobe.d/nvidia.conf

softdep nouveau pre: vfio-pci

softdep nvidia pre: vfio-pci

softdep nvidia* pre: vfio-pci

softdep xhci_hcd pre: vfio-pci

softdep snd_hda_intel pre: vfio-pci

softdep xhci_hcd pre: vfio-pci

softdep i2c_nvidia_gpu: vfio-pci

6) GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on"

7) update-initramfs -u

7.1) update-grub

what's missing ? I don't know why,but when I launch the vm that have assigned the address of the iGPU,the screen becomes black and I'm not able to use the windows 10 vm that should have captured the graphic card. There should be some kind of conflict that I'm not able to understand.

PS : I have also enabled the automatic login on windows 10,because I've thought that as soon as I run the windows 10 vm,it would have captured the iGPU and then I would have needed to automatically login inside it,because I would have lost the chance to see what happened on the ubuntu 20.04 host os. What happened,instead,is that I can't use both,the host os and the guest os.

Last edited by marietto2008; 08-08-2020 at 10:18 AM.
Old 08-10-2020, 07:07 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Pi OS & Android
Posts: 11,770

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Using the host as headless is an interesting concept, but I'm not sure it's practical.

I'd set up some screen for the host - a vnc or at least sshd server you can network into. If you can get it to boot with no graphics, then you can set up the intel in a vm only.
Old 08-12-2020, 02:43 PM   #3
Senior Member
Registered: Jan 2008
Distribution: Arch/Knoppix
Posts: 1,813
Blog Entries: 14

Rep: Reputation: 282Reputation: 282Reputation: 282
I would check the vfio users mailing list (; several people have gotten this to work with different hardware. I doní t have an igp so I canít give you any practical first hand advice.

Last edited by mostlyharmless; 08-12-2020 at 04:22 PM.


kvm,, qemu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two machines both updated to different levels -=Graz=- Fedora 4 02-18-2012 10:01 PM
Question - GPG on two different machines (different results) DarthWeasel Linux - Security 1 04-23-2010 02:51 PM
[SOLVED] DHCP: Two subnets and some machines on both benjalien Linux - Networking 4 08-21-2009 03:15 AM
Debian "lenny" with Xen virtual machines and only one static IP XeroXer Linux - Server 0 06-16-2009 02:45 AM
Connect two virtual linux machines via virtual USB or serial WebBeing Linux - General 4 07-22-2008 07:26 AM > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration