Shami's Blog

DevOps because uptime is not optional

Installing Edx on Ubuntu Xenial

So I’ve been tasked with installing the Open edX devstack for work to do some testing. The current documentation is very lacking and it’s been an ordeal. I decided to summerize the process as a reference.

Note: If you’re installing on an OVH dedicated server, make sure to choose a custom installation with the original kernel and make sure the partition with /root has ample space.

Note 2: These instructions are based on the docs found here

Update server

1apt-get update
2apt-get upgrade
3apt-get dist-upgrade
4reboot

Install Vagrant and VirtualBox

1apt-get install vagrant virtualbox # I noticed virtualbox components being installed with the script so virtualbox might not be necessary here

Bootstrap

The document referenced above will tell you to download the box file before hand. I tried that but the installation script below downloaded another copy anway, so don’t bother and leave it to the script

1mkdir ~/devstack
2cd ~/devstack
3export OPENEDX_RELEASE=open-release/ginkgo.1 # Latest version at the time of writing
4curl -OL https://raw.github.com/edx/configuration/$OPENEDX_RELEASE/util/install/install_stack.sh # Download bootstrap script
5bash install_stack.sh devstack # Run the script

If you get the following error

Uninstall Vagrant and install from here

1apt-get purge vagrant
2dpkg -i /root/devstack/vagrant_2.0.1_x86_64.deb # Has to be the full path of the deb file or dpkg won't know what to do
3bash install_stack.sh devstack # Run the script

https://github.com/edx/configuration/issues/2447

About Me

Dev gone Ops gone DevOps. Any views expressed on this blog are mine alone and do not necessarily reflect the views of my employer.

Categories