Just installed Kasm WorkSpaces, but unable to access it!
When i checked the docker logs for kasm_workspaces, here is what is see repeatedly:
/usr/local/bin/dockerd-entrypoint.sh: 148: modprobe: not found
mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
AppArmor detection and –privileged mode might break.
mount: /tmp: permission denied.
/usr/local/bin/dockerd-entrypoint.sh: 148: modprobe: not found
mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
AppArmor detection and –privileged mode might break.
mount: /tmp: permission denied.
/usr/local/bin/dockerd-entrypoint.sh: 148: modprobe: not found
mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
AppArmor detection and –privileged mode might break.
mount: /tmp: permission denied.
/usr/local/bin/dockerd-entrypoint.sh: 148: modprobe: not found
mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
AppArmor detection and –privileged mode might break.
mount: /tmp: permission denied.
/usr/local/bin/dockerd-entrypoint.sh: 148: modprobe: not found
mount: /sys/kernel/security: permission denied.
Could not mount /sys/kernel/security.
It looks like the Kasm Workspaces container is encountering permission issues and missing the modprobe
command. These issues can be resolved by running the container in privileged mode and ensuring the necessary permissions are granted. Here’s how you can address these issues: Step 1: Run the Container in Privileged Mode Running the container in privileged mode will grant it the necessary permissions to perform operations that require elevated privileges.
- Stop the Existing Container
# docker stop kasm_workspaces # docker rm kasm_workspaces
- Run the Container in Privileged Mode
# docker run -d --name kasm_workspaces --restart unless-stopped \ --privileged \ -p 8444:8443 -p 443:443 -p 80:80 \ kasmweb/workspaces:1.16.1
Step 2: Ensure modprobe
is Available The modprobe
command is used to add and remove modules from the Linux kernel. Ensure that it is available on your host system.
- Install
modprobe
if Missing# apt install kmod
Step 3: Verify Permissions and AppArmor Ensure that the necessary permissions are granted and AppArmor is not restricting the container.
- Check AppArmor Status
# aa-status
- Disable AppArmor for the Container (if necessary)
# aa-complain /etc/apparmor.d/docker
Step 4: Restart the Container After making these changes, restart the container and check the logs again.
- Restart the Container
# docker restart kasm_workspaces
- Check the Logs
# docker logs -f kasm_workspaces