Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to perform PCI Passthrough in virtualbox.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 70
Location: Jiangsu/China

PostPosted: Tue Aug 28, 2018 4:03 am    Post subject: Unable to perform PCI Passthrough in virtualbox. Reply with quote

I'm trying to passthrough my GTX 1050 to a Windows 10 virtual machine using virtualbox. I'm think I have all the needed kernel options, BIOS options and bootloader options are activated.

To confirm my kernel supports IOMMU, I have the output of dmesg | grep -iE "DMAR|IOMMU"

When I runs the VM without PCI passthrough, everything works fine. But after using
Code:
sudo VBoxManage modifyvm "Windows10" --pciattach 01:00.0
to pass my video card to the VM, weird things happen. Two dialog boxes pop up, one sticks at 0% and the other sticks at 20% like this picture. All the windows stopped responding.

Output of dmesg considered related to the failing VM

----- Update -----
I googled it and found many posts involving VFIO, but the official documentation didn't mention it. Is this the problem?

Any help is appreciated.
_________________
Think twice,code once.


Last edited by PhoenixStarEclipse on Tue Aug 28, 2018 11:14 am; edited 1 time in total
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5845

PostPosted: Tue Aug 28, 2018 4:10 am    Post subject: Reply with quote

I see nouveau in that stack trace. If you're using the card for passthrough, you can't load any drivers for it. You basically have to treat it like it doesn't exist to the host.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 70
Location: Jiangsu/China

PostPosted: Tue Aug 28, 2018 4:40 am    Post subject: Reply with quote

bunder wrote:
I see nouveau in that stack trace. If you're using the card for passthrough, you can't load any drivers for it. You basically have to treat it like it doesn't exist to the host.


Thanks, but how can I do this?
I only have "intel i965" set in my VIDEO_CARDS. I don't know why there's a driver for the nvidia GPU.
_________________
Think twice,code once.
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 630

PostPosted: Tue Aug 28, 2018 6:01 am    Post subject: Reply with quote

Look for NOUVEAU in your kernel .config.
You may be able to blacklist it either on the kernel command line or in your /etc/modprobe.d
Back to top
View user's profile Send private message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 70
Location: Jiangsu/China

PostPosted: Tue Aug 28, 2018 9:19 am    Post subject: Reply with quote

russK wrote:
Look for NOUVEAU in your kernel .config.
You may be able to blacklist it either on the kernel command line or in your /etc/modprobe.d


Thanks, I blacklisted nouveau and the VM hasn't stuck anymore. However, it just shows a black screen after startup. Here is the output of dmesg considered related.
_________________
Think twice,code once.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum