You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Go to [Launch CoreOS on AWS](https://coreos.com/docs/running-coreos/cloud-providers/ec2/) and find the HVM AMI you want to use, eg: `ami-d878c3b0`
* Go to AWS control panel under EC2 instances
* Launch a new instance
* Under "Community AMIs", search for `ami-d878c3b0`
* Select the GPU Instance: `ami-d878c3b0`
* Increase root EBS store from 8 GB -> 20 GB to give yourself some breathing room
## Run docker container in privileged mode
```
$ docker run --privileged=true -i -t ubuntu:12.04 /bin/bash
```
After the above command, you should be inside a shell in your docker container. The rest of the steps will assume that you are running them from inside your docker container.
It should have gcc-4.7 as the default choice with the asterisk next to it.
## Get kernel source
```
$ mkdir -p /usr/src/kernels
$ cd /usr/src/kernels
$ git clone https://github.com/coreos/linux.git
```
Find the tag that corresponds to your CoreOS version. For example, currently the latest stable version is the **v3.8** tag (I think).
```
$ git checkout v3.8
```
## Compile kernel source -- Take 1
If you don't do this step, you'll get an error about not having a `/usr/src/kernels/linux/include/linux/version.h` file when you run `NVIDIA-Linux-x86_64-340.29.run`.
.config:2620:warning: symbol value 'm' invalid for USB_OHCI_HCD_PCI
.config:2622:warning: symbol value 'm' invalid for USB_OHCI_HCD_PLATFORM
.config:2984:warning: symbol value 'm' invalid for XEN_TMEM
warning: (BLK_DEV_RBD && CEPH_FS) selects CEPH_LIB which has unmet direct dependencies (NET && INET && EXPERIMENTAL)
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW) n
```
I gave up on trying to use the kernel config from `coreos-overlay`, and tried a different direction.
## Compile kernel source -- Take 2
If you don't do this step, you'll get an error about not having a `/usr/src/kernels/linux/include/linux/version.h` file when you run `NVIDIA-Linux-x86_64-340.29.run`.
```
$ apt-get install libncurses5-dev
$ make menuconfig
```
When the screen pops up, just choose "Exit" and hit "Yes" when it asks you to save.
```
$ make
```
This works, and the kernel will compile. But it will end up in an error below when trying to run `NVIDIA-Linux-x86_64-340.29.run`.
Using the "Take 2" method of compiling kernel source above, I got the following error when installing the kernel:
```
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 no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.
Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.