# Guide: Getting Discourse Installed on OVH Cloud (Part 2)

**URL:** https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963
**Category:** Self-hosting
**Created:** [January 13, 2015, 11:23pm UTC](https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963 "2015-01-13T23:23:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pl3bs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pl3bs/32/37266_2.png) [@pl3bs](https://meta.discourse.org/u/pl3bs)
#### Post date: [January 13, 2015, 11:23pm UTC](https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963/1 "2015-01-13T23:23:50Z")

</div>

As promised, I am going to post up a guide for others to follow after spending numerous hours trying to get this figured out properly. This is a continuation from here:

> [@Getting Discourse installed on OVH VPS](https://meta.discourse.org/t/getting-discourse-installed-on-ovh-vps/23308/):
>
> I’ve been trying to get Discourse properly installed for the last few days. Finally caving in on figuring it out on my own (with the help of google). Started off with ServerMania. Server host kernel was 2.6x, would not install no matter what. I was told by tech support it would be impossible to load a kernel version higher than host, so moved on. I know DO is the officially supported and easy way to get it done, but figured I was up for a challenge and OVH seemed to have a better deal. I purchas…

Where I was totally lost.

This guide assumes:

- OVH Cloud or Dedicated Server
- Clean install Ubuntu 14.04LTS 64bit
- A Record Pointing (sub)Domain for Discourse to IP

`apt-get update
reboot`

It’s my first step at new installs. Now we’re going to switch to generic kernel for AUFS support.

`apt-get install linux-image-server
mv /etc/grub.d/06_OVHkernel /etc/grub.d/25_OVHkernel
update-grub
reboot`

This will install the kernel, AUFS, and update grub so that it loads after the reboot.  
If you’re running a dedicated, bind9 should continue to work. Skip these next steps. If you’re in the cloud, bind9 will be broken. No need for a broken service installed on the rig. You will also need to rig DNS resolution. The following two lines will make it so for this instance, and after reboots.

`apt-get remove bind9
echo “nameserver 8.8.8.8” | sudo tee /etc/resolv.conf > /dev/null
echo “nameserver 8.8.8.8” | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/null
`

I suggest another update at this point. This will verify name resolution is a success, if nothing else.

`apt-get update`

At this point, you will either go directly to following standard Digital Ocean Guide: [https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md](https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md)

For Discourse only server and be done,

Else will need more setup to host Nginx/Apache sites as well.

If the latter:

` apt-get install nginx
nano /etc/nginx/sites-enabled/discourse.conf`

Place this config in file, taken from this link:

> <https://gist.github.com/trident523/ee1be110212b4a7a1291>

Modify the domain name towards your A record made for discourse.

`service nginx restart`

Now you can continue with the:  
[https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md](https://github.com/discourse/discourse/blob/master/docs/INSTALL-digital-ocean.md)  
However when you are modifying app.yml file, be sure to change the port for the container from - 80:80 to 4578:80. This is the only difference in the guide to follow.

You should now have your instance of discourse behind the ngnix reverse proxy. From here, you can either work with nginx directly to create more sites, else configure apache2 behind the reverse proxy. I have now had success with both.

An OVH Cloud 1 package with 2GB ram is enough to run discourse and several other sites, though I don’t have the members yet to confirm up to what size. The good thing about the OVH “cloud” (ESXI) is that you can upgrade your package if need be with a single-click from the OVH manager.

I set app.yml to 384MB and 3 unicorn workers which leads 500-800MB ram left for other services/sites to be run.

**caution**

Not all VPS are created equal. OpenVZ is considered partial virtualization. You need something like ESXI/KVM for full virtualization. What this ends up meaning relevant to this thread is with OpenVZ you are limited to the kernel version of the host. I have tested servermania, and ovh classic, both are stuck with 2.6 kernels, which will not work for discourse which needs AUFS. You could possibly get lucky with OpenVZ and find a new host with late kernel, but why risk it?

* * *

---

<div class="post-metadata">

### Author: ![dbm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbm/32/86954_2.png) [@dbm](https://meta.discourse.org/u/dbm)
#### Post date: [January 29, 2015, 1:23am UTC](https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963/2 "2015-01-29T01:23:15Z")

</div>

> [@pl3bs](#):
>
> apt-get install linux-image-server

I dont know why, but for some reason this command is not working for me.

```
root@vps136068:~# apt-get install linux-image-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-server
root@vps136068:~#

```

---

<div class="post-metadata">

### Author: ![pl3bs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pl3bs/32/37266_2.png) [@pl3bs](https://meta.discourse.org/u/pl3bs)
#### Post date: [January 29, 2015, 1:24am UTC](https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963/3 "2015-01-29T01:24:32Z")

</div>

because you’re on a fresh copy. apt-get update. it was the first command in the guide.

---

<div class="post-metadata">

### Author: ![dbm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dbm/32/86954_2.png) [@dbm](https://meta.discourse.org/u/dbm)
#### Post date: [January 29, 2015, 1:44am UTC](https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963/4 "2015-01-29T01:44:35Z")

</div>

```
Ign https://get.docker.com docker/main Translation-en
Fetched 934 kB in 16s (56.7 kB/s)
Reading package lists... Done
root@vps136068:~# apt-get install linux-image-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-server
root@vps136068:~#

```

After update, i’ve followed every single step and stuck on this one. (Also i cant reinstalll VPS since OVH hosting is still in maintenace.. for no reason or telling anything) – cannot call support, i’m not from france :\

---

<div class="post-metadata">

### Author: ![pl3bs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pl3bs/32/37266_2.png) [@pl3bs](https://meta.discourse.org/u/pl3bs)
#### Post date: [January 29, 2015, 2:03am UTC](https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963/5 "2015-01-29T02:03:36Z")

</div>

My guide is applicable to 14.04LTS on OVH Cloud. If you’re trying on 14.10 you’re probably wasting time. Each time you write a msg to tech support from the manager you will reset the cue. I had to learn that the hard way a while back. If you’re patient they should respond within two hours. That has been my experience.

---

<div class="post-metadata">

### Author: ![lasercar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lasercar/32/62080_2.png) [@lasercar](https://meta.discourse.org/u/lasercar)
#### Post date: [August 9, 2016, 5:44am UTC](https://meta.discourse.org/t/guide-getting-discourse-installed-on-ovh-cloud-part-2/23963/6 "2016-08-09T05:44:40Z")

</div>

> [@pl3bs](#):
>
> `mv /etc/grub.d/06_OVHkernel /etc/grub.d/25_OVHkernel`

I’m stuck at this step, I get:  
`mv: cannot stat ‘/etc/grub.d/06_OVHkernel’: No such file or directory`
