attaching host video crash vm

Discussions related to using VirtualBox on Linux hosts.
Post Reply
alain.roger
Posts: 42
Joined: 10. Feb 2010, 15:34
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Windows, MacOSX, Manjaro
Contact:

attaching host video crash vm

Post by alain.roger »

Hi,

my host system is kubuntu 15.10 and i have the latest version of VB.
i have a guest OS (win7) for testing purpose.

I want to attach my graphical card of my host to VM in order to use it in my guest OS.

so i run in ubuntu, lspci and also in my guest OS in order to know what are the needed information.

here is the result of my lspci in my host OS (ubuntu)
Image

lspci on my guest OS (windows) returns 00:02.0 for default video card of virtualbox.

therefore i did modify my VM as following:

Code: Select all

VBoxManage modifyvm "win7" --pciattach 01:00.0@00:02.0
i got nothing as result of this change.

but when i launch the VM i got an error message as following:

Code: Select all

Failed to open a session for the virtual machine win7.

Failed to open physical device: not existing, or not available (VERR_ACCESS_DENIED).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
i checked my VM settings and everything seems ok
Image

so where is the mistake ?

thx
Manjaro 21 / Plasma 5
What does not kill you, makes you stronger
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: attaching host video crash vm

Post by mpack »

I see no mention that this is a secondary card. Do you understand that the guest can't use the graphics card if the host is already using it? That if you succeeded you'd make the host unusable and therefore the VM too?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: attaching host video crash vm

Post by Perryg »

Also you need to enable iommu in the host and your CPU must support VT-d
Post Reply