Re: Direct Access to GPU [message #51583 is a reply to message #51568] |
Wed, 06 August 2014 01:36 |
devonblzx
Messages: 127 Registered: December 2006
|
Senior Member |
|
|
I'm not too knowledgeable on GPUs in Linux but I can try to help.
First, make sure the drivers and kernel modules are loaded on the host node. You won't be able to install a driver from inside the container but you can probably install a utility to manage the device once your container has access to it.
Is there a corresponding /dev device like /dev/nvidia0? If so, then grant the container access to that device. You may also need specific features granted as well, but I'm not sure on that.
Most users don't use OpenVZ for GUI. Here is the man page of vzctl if you need help with devices/features: http://openvz.org/Man/vzctl.8#Device_access_management
The one problem I see with this is OpenVZ is OS level virtualization, not hardware virtualization. Therefore you probably won't be able to have both the host and the container using the GPU. I'm not sure how that would work and I'm not sure even in hardware virtualization how the GPU is virtualized.
ByteOnSite President
|
|
|