- dramatically reduced video performance, both in video playback and normal 2d desktop usage
- no 3d acceleration whatsoever (remember, this is my desktop system, so I sometimes use it for gaming)
- no (working) support for multiple monitors
- significantly different xorg.conf configuration
- Xen 3.2.1
- Gentoo dom0 host using xen-sources-2.6.21 kernel package
- a non-Xen kernel must also be installed, such as gentoo-sources-2.6.24-r8
- GeForce 5xxx series or newer video card using nvidia-drivers-173.14.09 driver package
emerge gentoo-source to install it. You don't need to run it, just build against it.
Once everything is in place, and you're running the Xen-enabled (xen-sources) kernel, I suggest uninstalling any existing binary nVidia drivers with emerge -C nvidia-drivers. I had a version conflict when trying to start X at one point as the result of some old libraries not being properly updated, so this is just to make sure that the system's in a clean state. Also, while you can do most of this while in X while using the nv driver, I suggest logging out of X entirely before the modprobe line.
Here's the step-by-step guide:
- Run
uname -rto verify the version of your currently running Xen-enabled kernel; eg., mine's 2.6.21-xen - verify that you have both Xen and non-Xen kernels installed:
cd /usr/src/ && ls -l- eg., I have both linux-2.6.21-xen and linux-2.6.24-gentoo-r8
- create a symlink to the non-Xen kernel:
ln -sfn linux-2.6.24-gentoo-r8 linux - install the nVidia-drivers package, which includes the necessary X libraries:
emerge -av nvidia-drivers- this will also install the actual driver, but it'll be built and installed for the non-Xen kernel, not your current Xen-enabled kernel
- determine the specific name and version of the nVidia driver package that was just installed; this can be found by examining the output of
emerge -f nvidia-drivers(look for the NVIDIA-Linux-* line) - extract the contents of the nVidia driver package:
bash /usr/portage/distfiles/NVIDIA-Linux-x86_64-173.14.09-pkg2.run -a -x - change to the driver source code directory:
cd NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/ - build the driver for the currently-running Xen-enabled kernel:
IGNORE_XEN_PRESENCE=y make SYSSRC=/lib/modules/`uname -r`/build module - assuming there are no build errors (nvidia.ko should exist), install the driver:
mkdir /lib/modules/`uname -r`/videocp -i nvidia.ko /lib/modules/`uname -r`/video/depmod -a
- if necessary, log out of X, then load the driver:
modprobe nvidia - if necessary, reconfigure xorg.conf to use the nvidia binary driver rather than the nv driver
- test that X will now load properly with
startx - if appropriate, start (or restart) the display manager with
/etc/init.d/xdm start