h1

Nvidia on OVS 2.2

2013/03/12

Have a need to setup Nvidia driver on the OVS 2.2 server to support dual monitor but failed to do it for lon time. Thus, I left it as ‘mirror’ mode for quite a while.

Finally, I managed to have it done after few test and research. It works well now in twin-view mode as extended desktop.

The same technique doesn’t work with my older versions of Nvidia driver (v260, v275). At least it works with the latest version v320.


First, make sure kernel sources and gcc are installed. Here is the list of RPMs for my OVS 2.2:

gcc-4.1.2-44.el5.i386.rpm
gcc-c++-4.1.2-44.el5.i386.rpm
glibc-devel-2.5-34.i386.rpm
glibc-headers-2.5-34.i386.rpm
kernel-devel-2.6.18-128.2.1.4.25.el5.i686.rpm
kernel-headers-2.6.18-128.el5.i386.rpm
kernel-ovs-devel-2.6.18-128.2.1.4.25.el5.i686.rpm
libgomp-4.3.2-7.el5.i386.rpm
libstdc++-devel-4.1.2-44.el5.i386.rpm

Then download/transfer the latest driver to the server, in my case it is: NVIDIA-Linux-x86-310.40.run
After that, build the kernel driver:

chmod +x NVIDIA-Linux-x86-310.40.run
./NVIDIA-Linux-x86-310.40.run --extract-only
cd NVIDIA-Linux-x86-310.40/kernel/
IGNORE_XEN_PRESENCE=y make SYSSRC=/lib/modules/`uname -r`/build module
mkdir -p /lib/modules/`uname -r`/kernel/drivers/video/nvidia/
cp nvidia.ko /lib/modules/`uname -r`/kernel/drivers/video/nvidia/
depmod -a
modprobe nvidia

It still need to install utilities and X drivers:

cd /tmp
/root/NVIDIA-Linux-x86-310.40.run -s --no-kernel-module

As I already extract the files before when I built the kernel driver, I ran the installer from /tmp instead of /root with silent mode (-s).

Done now and reboot. Finally, run the ‘nvidia-settings’ to configure.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: