UbuntuHelp:XenVirtualMachine/NVidiaOnXenOnUbuntuEdgy
来自Ubuntu中文
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
目录
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".