Project

General

Profile

Collabora Online - Built-in CODE Server on proxmox » History » Version 3

Gareth Eaton, 09/13/2023 01:00 PM

1 1 Gareth Eaton
h1. Collabora Online - Built-in CODE Server on proxmox
2
3
The problem I was encountering is related to the restricted access to cryptographic resources such as /dev/random and /dev/urandom inside a Docker container, and also was the proble in a Proxmox Container 
4
5
These resources are essential for generating random numbers and ensuring the security of various cryptographic operations within applications and services.
6
7
*Solution Attempt 1* (Docker Container): Initially, I attempted to address the problem by modifying the Docker container settings. I added permissions for device nodes like /dev/random and /dev/urandom within the Docker container, as these permissions are essential for certain Collabora Online features to work correctly. However, this approach did not resolve the issue, and I continued to face the same error.
8
9 2 Gareth Eaton
*Solution Attempt 2* - Running Collabora Online in a Native Proxmox Container (CT) with Permissions:
10
11
In an effort to address issues with Collabora Online within Proxmox, I chose a different approach:
12
13
Native CT Installation:
14
15
Instead of using a Docker container or a VM, I set up Collabora Online within a Proxmox container (CT) using a native installation.
16
This direct installation within the CT allowed for precise configuration.
17
Adding CT Permissions:
18
19
To ensure that the CT had the necessary permissions for certain features of Collabora Online, I modified the Proxmox container (CT) configuration file:
20
Location: /etc/pve/nodes/<nodename>/lxc/<container_id>.conf
21
I added these lines to the configuration file:
22
23
<pre>
24
lxc.cgroup.devices.allow = c 1:8 rwm
25
lxc.cgroup.devices.allow = c 1:9 rwm
26
</pre>
27
28
These lines granted the CT the capability to create and manage device nodes, including /dev/random and /dev/urandom.
29
This approach allowed Collabora Online to function smoothly within the Proxmox environment, resolving the encountered issues.
30
31 1 Gareth Eaton
32 3 Gareth Eaton
*Solution Attempt 3* (Native Install in a VM): To overcome the limitations and difficulties I faced with the Docker & Proxmox container setup, I decided to perform a native installation of Collabora Online within a virtual machine (VM). This involved creating a dedicated VM, installing Collabora Online directly within the VM, and configuring it to work with my Nextcloud server. This approach proved successful, and I was able to use Collabora Online without encountering the error.