This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] nvidia drivers do not seem to work on xen kernels

To: Jorg Lotze <jorg.lotze@xxxxxxxxxxxx>
Subject: Re: [Xen-users] nvidia drivers do not seem to work on xen kernels
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Sun, 15 May 2011 18:48:21 +0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 15 May 2011 08:50:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1304694401.21515.3.camel@xcel01>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1304694401.21515.3.camel@xcel01>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Fri, May 06, 2011 at 04:06:41PM +0100, Jorg Lotze wrote:
> Hi guys,
> I spent the whole week trying to setup a Ubuntu 10.04 64-bit machine for
> Xen virtualization (Xen 4.1) for GPGPU tests on several virtual machines
> (using Xen's GPU passthrough capability). My problem is that I just
> can't get the nvidia development driver to work on the xen kernel (works
> perfectly fine with the standard kernel). 
> For compiling the kernel, I followed the instructions from
> http://www.zeroaccess.org/2011/04/xen-4-1-on-ubuntu-10-04-64bit/ (but
> built the kernel the debian way (make-kpkg) to get a nice .deb package).
> It boots fine, I modified grub to set the kernel options, etc. All the
> Xen setup seems to be working as it should. 
> I can't get the NVIDIA driver working on the host (Dom0) though. I used
> the driver with CUDA 3.2, and also the 4.0 RC2 driver (for a GTX 590
> card). When the system tries to start X11, the screen turns blank and
> the system gets very slow. Booting the system into text mode works fine.
> I can load the nvidia driver manually (modprobe nvidia), and create the
> device nodes in /dev using mknode (so I have
> the /dev/nvidia0, /dev/nvidia1, /dev/nvidiactl - with major number 195,
> and minors 0, 1, 255, respectively). When I try to build anything using
> OpenCL, it just reports that no platforms have been found. With CUDA, I
> get the error: "cudaSafeCall() Runtime API error : invalid device
> ordinal." Both work completely fine when I boot the system into a
> standard kernel (linux-image-generic, default with ubuntu 10.04).
> The X11 log just says that it failed to load the NVIDIA module. Syslog
> gives messages like "NVRM: RmInitAdapter failed!" .
> I tried various suggestions for installing the the driver found on the
> web (e.g., http://wiki.xensource.com/xenwiki/NvidiaGPU?highlight=%
> 28nvidia%29 ) but with no success.
> Did any of you get NVIDIA and Xen work together?? How? Any help is
> appreciated!

IIRC there was some environment/cmdline option in nvidia drivers
to bypass some checks under Xen.. ?

-- Pasi

Xen-users mailing list