Hi, I am trying to use the https://github.com/blacktop/docker-cuckoo container for cuckoo, and ı connected this container to VirtualBox but I am having problems with VirtualBox permissions. To remove this problem do we need to give permissions to docker or containers? I could not understand that too.
Error:
cuckoo_1 | 2022-08-03 10:58:28,134 [cuckoo.core.scheduler] INFO: Using "virtualbox" as machine manager
cuckoo_1 | 2022-08-03 10:58:29,080 [cuckoo] CRITICAL: CuckooCriticalError: Error initializing machines: VBoxManage error listing installed machines: [Errno 13] Permission denied
mongo_1 | {"t":{"$date":"2022-08-03T10:58:29.578+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn9","msg":"Connection ended","attr":{"remote":"172.25.0.5:59184","uuid":"875cbd69-88b5-497d-98bd-5c838fcaa379","connectionId":9,"connectionCount":3}}
mongo_1 | {"t":{"$date":"2022-08-03T10:58:29.578+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn8","msg":"Connection ended","attr":{"remote":"172.25.0.5:59182","uuid":"5589171f-5a1e-4b00-a253-949a81a58463","connectionId":8,"connectionCount":2}}
docker-cuckoo_cuckoo_1 exited with code 1
version: "2"
services:
cuckoo:
image: blacktop/cuckoo:2.0
command: daemon
ports:
- "2042:2042"
volumes:
- ./cuckoo-tmp/:/tmp/cuckoo-tmp/
- ./storage/:/cuckoo/storage/
- ~/usr/bin/VBoxManage:/usr/bin/VBoxManage
- ~/usr/share/virtualbox/VBox.sh:/usr/share/virtualbox/VBox.sh
networks:
- cuckoo
env_file:
- ./2.0/config-file.env
web:
image: blacktop/cuckoo:2.0
ports:
- "9999:31337"
links:
- mongo
- elasticsearch
- postgres
command: web
volumes:
- ./cuckoo-tmp/:/tmp/cuckoo-tmp/
- ./storage/:/cuckoo/storage/
networks:
- cuckoo
env_file:
- ./2.0/config-file.env
api:
depends_on:
- postgres
image: blacktop/cuckoo:2.0
ports:
- "9988:1337"
links:
- postgres
command: api
volumes:
- ./cuckoo-tmp/:/tmp/cuckoo-tmp/
- ./storage/:/cuckoo/storage/
networks:
- cuckoo
env_file:
- ./2.0/config-file.env
# nginx:
# build: nginx/.
# depends_on:
# - mongo
# ports:
# - "80:80"
# links:
# - mongo
# networks:
# - cuckoo
mongo:
image: mongo
ports:
- 27017
volumes:
- mongo-data:/data/db
networks:
- cuckoo
elasticsearch:
image: blacktop/elasticsearch:5.6
ports:
- 9200
volumes:
- es-data:/usr/share/elasticsearch/data
networks:
- cuckoo
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 1g
postgres:
image: postgres
ports:
- 5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: cuckoo
PGDATA: /var/lib/postgresql/data/pgdata
# POSTGRES_INITDB_ARGS: --data-checksums
volumes:
- postgres-data:/var/lib/postgresql/data/pgdata
networks:
- cuckoo
networks:
cuckoo:
driver: bridge
volumes:
cuckoo-data:
mongo-data:
es-data:
postgres-data: