I'm looking to set up a box I have at home to run Ubuntu desktop currently running 14.04 version. I have installed KVM, which I will use to create a windows VM that I plan to use for gaming. I have two NVIDIA gpu's that Ubuntu can currently see. As I understand it, to get gpu passthrough to work, I have to blacklist one of the gpu's in Ubuntu so it can be exclusively available to the windows vm. The issue I've been having, is after trying to blacklist one of my gpu's Ubuntu still seems to be using both. I've listed my terminal commands below. Anyone see anything i'm doing wrong? or perhaps know an alternative method I can try?
I used the command lspci -nn | grep NVIDIA to display my available cards. *Below isn't my exact output, just an example*
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK110B [GeForce GTX Titan Black] [10de:100c] (rev a1)
02:00.1 Audio device [0403]: NVIDIA Corporation GK110 HDMI Audio [10de:0e1a] (rev a1)
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK110B [GeForce GTX Titan Black] [10de:100c] (rev a1)
03:00.1 Audio device [0403]: NVIDIA Corporation GK110 HDMI Audio [10de:0e1a] (rev a1)
I then took the ID from the end of the line on the first card "10de:100c" and added it to the initramfs in an attempt to blacklist it.
sudo gedit /etc/initramfs-tools/modules
** adding the following at the end**
pci_stub ids=10de:100c
After saving the file, I rebuilt the initramfs with the command sudo update-initramfs -u and rebooted the system.
After reboot, I tried to check that the cards were being claimed by pci-stub correctly using the command dmesg | grep pci-stub
Now, to my understanding, I should see a list of devices "claimed by stub" which tells me that they are successfully "removed" from Ubuntu? For me, the above command yields zero results.
If I lspci -nn | grep NVIDIA it still shows both cards.
I'm relatively new to Ubuntu, so I beg the knowledge of the Linux gods!
System Specs:CPU : AMD FX-8150 Zambezi 8-Core 3.6GHZ
Motherboard: ASUS Crosshair V Formula-Z 990FX
RAM: 24GB DDR3
GPU1: NVIDIA GeForce GTX 760 2GB GDDR5 (Use for Gaming VM)
GPU2: NVIDIA GeForce 8400GS 1GB DDR3 (Use for Ubuntu)
Thank you for your time and help!
I used the command lspci -nn | grep NVIDIA to display my available cards. *Below isn't my exact output, just an example*
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK110B [GeForce GTX Titan Black] [10de:100c] (rev a1)
02:00.1 Audio device [0403]: NVIDIA Corporation GK110 HDMI Audio [10de:0e1a] (rev a1)
03:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK110B [GeForce GTX Titan Black] [10de:100c] (rev a1)
03:00.1 Audio device [0403]: NVIDIA Corporation GK110 HDMI Audio [10de:0e1a] (rev a1)
I then took the ID from the end of the line on the first card "10de:100c" and added it to the initramfs in an attempt to blacklist it.
sudo gedit /etc/initramfs-tools/modules
** adding the following at the end**
pci_stub ids=10de:100c
After saving the file, I rebuilt the initramfs with the command sudo update-initramfs -u and rebooted the system.
After reboot, I tried to check that the cards were being claimed by pci-stub correctly using the command dmesg | grep pci-stub
Now, to my understanding, I should see a list of devices "claimed by stub" which tells me that they are successfully "removed" from Ubuntu? For me, the above command yields zero results.
If I lspci -nn | grep NVIDIA it still shows both cards.
I'm relatively new to Ubuntu, so I beg the knowledge of the Linux gods!
System Specs:CPU : AMD FX-8150 Zambezi 8-Core 3.6GHZ
Motherboard: ASUS Crosshair V Formula-Z 990FX
RAM: 24GB DDR3
GPU1: NVIDIA GeForce GTX 760 2GB GDDR5 (Use for Gaming VM)
GPU2: NVIDIA GeForce 8400GS 1GB DDR3 (Use for Ubuntu)
Thank you for your time and help!