cert-ee / cuckoo3

Cuckoo 3 is a Python 3 open source automated malware analysis system.
European Union Public License 1.2
591 stars 75 forks source link

Constraint violation for key qcow2_path #80

Open xFlum3 opened 7 months ago

xFlum3 commented 7 months ago

Hey guys, Trying to install cuckoo but when i use the command "cuckoo" i am getting an errors that i cannot understand how to fix.

My Cuckoo version and operating system are:: Cuckoo 3.0.1, Ubuntu 22.04

The log, error, files etc can be found at: 2023-12-18 20:38:48 INFO [cuckoo.startup]: Starting Cuckoo. cwd=/root/.cuckoocwd 2023-12-18 20:38:48 INFO [cuckoo.startup]: Loading configurations 2023-12-18 20:38:48 ERROR [cuckoo.common.log]: Failure during Cuckoo startup: Failed to load config file /root/.cuckoocwd/conf/machineries/qemu.yaml. Error in config file: /root/.cuckoocwd/conf/machineries/qemu.yaml. Constraint violation for key qcow2_path: Path /home/cuckoo/.vmcloak/vms/qemu/win10_1/disk.qcow2 is not readable Stopping Cuckoo.. Failure during Cuckoo startup: Failed to load config file /root/.cuckoocwd/conf/machineries/qemu.yaml. Error in config file: /root/.cuckoocwd/conf/machineries/qemu.yaml. Constraint violation for key qcow2_path: Path /home/cuckoo/.vmcloak/vms/qemu/win10_1/disk.qcow2 is not readable

Cryss76 commented 6 months ago

if you can call the cuckoo command you already installed cuckoo. Don't run cuckoo as root or use the /rootdirectory. I'm guessing you just ran the cuckoo command without creating or configurating the vms therefore the vm-image (*.qcow2) isn't there.

cert-ee-raidar commented 2 weeks ago

@Cryss76 answer is correct. Do not run cuckoo3 as root user. The error message tells you, like Cryss76 pointed out, that your vm image does not exist. So solve it, use VMCloak to create the VM(s). @xFlum3 Please let me know if your issue has been resolved so I can close the issue.