Я установил 2.6.32-17-pve
на хост-компьютер с:
02:00.0 VGA compatible controller: NVIDIA Corporation Device 11c6 (rev a1) (prog-if 00 [VGA controller])
Subsystem: Giga-byte Technology Device 3557
Flags: fast devsel, IRQ 16
Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at fb000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] #19
После создания виртуального контейнера Ubuntu 12.04 я попытался установить cuda-драйвер следующим образом:
vzctl set 100 --pci_add 02:00.0
на хосте иlspci -v
в vz print:02:00.0 VGA compatible controller: NVIDIA Corporation Device 11c6 (rev a1) (prog-if 00 [VGA controller]) Subsystem: Giga-byte Technology Device 3557 Flags: fast devsel, IRQ 16 Memory at fa000000 (32-bit, non-prefetchable) [size=16M] Memory at c0000000 (64-bit, prefetchable) [size=256M] Memory at d0000000 (64-bit, prefetchable) [size=32M] I/O ports at e000 [size=128] Expansion ROM at fb000000 [disabled] [size=512K] Capabilities: <access denied> Kernel modules: nouveau, nvidiafb
Я устанавливаю рекомендуемые пакеты для установки cuda и меняю версию gcc на 4.4
- Чтобы установить заголовок ядра pve, я добавляю исходный список pve:
deb http://download.proxmox.com/debian squeeze pve
и запускаюsudo apt-get install pve-headers-2.6.32-17-pve
Сейчас я пытаюсь установить драйвер, но:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by this NVIDIA Linux graphics driver release.
Я думаю, причина может быть в том, что vz не получает права собственности на графическое устройство, но я не уверен и не знаю, как это исправить. Кто-нибудь может дать мне несколько советов?
Спасибо