个人工具

UbuntuHelp:XenVirtualMachine/NVidiaOnXenOnUbuntuEdgy

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月24日 (四) 14:12的版本 (新页面: {{From|https://help.ubuntu.com/community/XenVirtualMachine/NVidiaOnXenOnUbuntuEdgy}} {{Languages|UbuntuHelp:XenVirtualMachine/NVidiaOnXenOnUbuntuEdgy}} == Introduction == See the follo...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


Introduction

See the following guide to make NVidia drivers work on xen kernel. I managed to do it with and AMD64 Edgy eft with the 2.6.16-11.2 xen kernel installed quite as in the [XenVirtualMachine/XenOnUbuntuEdgy] page. The only difference was the use of the 2.6.16 kernel instead of the 2.6.17 as the 2.6.17 did a "kernel panic".

You will need to:

  • Install xen
  • Download and extract the NVidia drivers
  • Download the patch
  • Patch the nvidia drivers
  • Compile and install the nvidia drivers

Make Xen 3.0.3 work

See [XenVirtualMachine/XenOnUbuntuEdgy] for more help.

Download and patch

First, get the NVidia drivers ont the NVidia web site. Here, we will assume you downloaded the NVIDIA-Linux-x86_64-1.0-9631-pkg2.run file on your home directory.

When downloaded, extract them:

cd ~
sh NVIDIA-Linux-x86_64-1.0-9631-pkg2.run -x

Get the patch with

wget http://www.nvnews.net/vbulletin/attachment.php?attachmentid=20801&d=1159874953
mv attachment.php\?attachmentid\=20801 ~/patch-nv-1.0-9625-xenrt.txt

Go to the NVidia kernel source directory

cd ~/NVIDIA-Linux-x86_64-1.0-9631-pkg2/usr/src/nv/
and apply the patch
patch -p1 < ~/patch-nv-1.0-9625-xenrt.txt

Prepare to install

Before compiling and installing, you should be sure that no other nvidia driver is present in your system. You can remove any nvidia-* package with

sudo apt-get remove nvidia-*

and eventually uninstall old NVidia drivers with

sh ~/NVIDIA-Linux-x86_64-1.0-9631-pkg2.run --uninstall

Edit your /etc/X11/xorg.conf and in the device section, replace

driver "nvidia"

by

driver "nv"

Finaly, reboot on your xen kernel.


Compile and install

Simply go to the NVidia source directory

cd ~/NVIDIA-Linux-x86_64-1.0-9631-pkg2/usr/src/nv/

and run

make
sudo make install

Configure your Xorg.conf

Edit your /etc/X11/xorg.conf and in the device section, replace

driver "nv"

by

driver "nvidia"

Finaly, restart your X server and cross your fingers.

Related Documentation

This howto is based on the Using the nvidia binary driver with Xen on Debian etch

For more up to date informations, such as newer drivers support, see the nvnews forum, register and search "xen patch".