Difference between revisions of "Build a virtual Elab server"
(Created page with "On your VirtualBox install an Oracle UEK 7.9 server using this DVD, which you have downloaded first: [https://yum.oracle.com/ISOS/OracleLinux/OL7/u9/x86_64/OracleLinux-R7-U9-S...") |
|||
Line 1: | Line 1: | ||
+ | This is instructions to build a virtual copy of the elab.ece.au.dk server, so you can develop against this mashine rather than on the operative elab-server. | ||
+ | |||
+ | ==Prerequisites== | ||
+ | |||
On your VirtualBox install an Oracle UEK 7.9 server using this DVD, which you have downloaded first: [https://yum.oracle.com/ISOS/OracleLinux/OL7/u9/x86_64/OracleLinux-R7-U9-Server-x86_64-dvd.iso Oracle 7.9 DVD] | On your VirtualBox install an Oracle UEK 7.9 server using this DVD, which you have downloaded first: [https://yum.oracle.com/ISOS/OracleLinux/OL7/u9/x86_64/OracleLinux-R7-U9-Server-x86_64-dvd.iso Oracle 7.9 DVD] | ||
− | + | When installed as root '''(every command from this point is run as root)''' perform | |
<source lang=bash> | <source lang=bash> | ||
yum update | yum update | ||
Line 8: | Line 12: | ||
</source> | </source> | ||
+ | ===Graphical insterface=== | ||
If you want a graphical interface do this: | If you want a graphical interface do this: | ||
<source lang=bash> | <source lang=bash> | ||
Line 23: | Line 28: | ||
</source> | </source> | ||
+ | Insert the Guest additions CD from the VirtualBox interface and install the extensions. | ||
+ | |||
+ | ==Docker installation== | ||
Now install docker. First edit /etc/yum.repos.d/oracle-linux-ol7.repo change 0 til 1 in the section [ol7_addons], save and execute: | Now install docker. First edit /etc/yum.repos.d/oracle-linux-ol7.repo change 0 til 1 in the section [ol7_addons], save and execute: | ||
<source lang=bash> | <source lang=bash> |
Revision as of 12:21, 22 March 2021
This is instructions to build a virtual copy of the elab.ece.au.dk server, so you can develop against this mashine rather than on the operative elab-server.
Prerequisites
On your VirtualBox install an Oracle UEK 7.9 server using this DVD, which you have downloaded first: Oracle 7.9 DVD
When installed as root (every command from this point is run as root) perform
yum update reboot now yum install epel
Graphical insterface
If you want a graphical interface do this:
yum -y groupinstall kde "KDE Plasma Workspaces" yum install kernel-headers kernel-devel make gcc perl dkms bzip2 reboot yum grouplist yum groupinstall "Server with GUI" cd /etc/systemd/system/ ls rm default.target ln -s /usr/lib/systemd/system/graphical.target default.target ll reboot now
Insert the Guest additions CD from the VirtualBox interface and install the extensions.
Docker installation
Now install docker. First edit /etc/yum.repos.d/oracle-linux-ol7.repo change 0 til 1 in the section [ol7_addons], save and execute:
yum install docker-engine docker-cli docker-compose
Let your favourite browser open the team github page from the students that constrructed this server setup.
Create under root a directory called e.g. elab-server
mkdir elab-server git clone https://github.com/AUTeam2/server-setup.git
Start docker
systemctl enable docker.service
systemctl start docker.service
create volumens
docker volume create data-volume docker volume create mqtt-volume
Change version number in the docker-compose.yml file from 3.7 to 3.3
docker-compose up -d --build
be sure that it ends without errors - if, then try to run it again. It takes quite a while! (on my 6 core virtual machine more than one hour)
More to come...