Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/dev/kvm: no such file or directory. #47

Open
Marklndstrm opened this issue Nov 18, 2024 · 2 comments
Open

/dev/kvm: no such file or directory. #47

Marklndstrm opened this issue Nov 18, 2024 · 2 comments

Comments

@Marklndstrm
Copy link

I've tried almost everything, but I keep getting this error:

docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

When I test with kvm-ok, I’m told that my machine supports it, and when I check for /dev/kvm, the directory is also there.

Any ideas on what could be wrong?

@Marklndstrm
Copy link
Author

(winarena) vm2@vm2-Standard-PC-Q35-ICH9-2009:~/WindowsAgentArena/scripts$ ./run-local.sh --prepare-image true
Using configuration file: /home/vm2/WindowsAgentArena/config.json
Using mode: azure
Using VM Setup Image path: /home/vm2/WindowsAgentArena/src/win-arena-container/vm/image
Using VM storage mount path: /home/vm2/WindowsAgentArena/src/win-arena-container/vm/storage
Using server mount path: /home/vm2/WindowsAgentArena/src/win-arena-container/vm/setup
Using client mount path: /home/vm2/WindowsAgentArena/src/win-arena-container/client
Building Container Image...
/home/vm2/WindowsAgentArena/scripts/../
Skipping winarena-base image build
[+] Building 1.6s (18/18) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile-WinArena 0.0s
=> => transferring dockerfile: 2.34kB 0.0s
=> [internal] load metadata for docker.io/windowsarena/winarena-base:lat 1.0s
=> [build_azure 1/1] FROM docker.io/windowsarena/winarena-base:latest@sh 0.0s
=> => resolve docker.io/windowsarena/winarena-base:latest@sha256:5f503d0 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 67.43kB 0.0s
=> CACHED [stage-2 1/10] COPY src/win-arena-container/vm/setup/. /oem/ 0.0s
=> CACHED [stage-2 2/10] COPY src/win-arena-container/vm/unattend-files 0.0s
=> CACHED [stage-2 3/10] COPY src/win-arena-container/fix_az_network.sh 0.0s
=> CACHED [stage-2 4/10] RUN echo "FOLDER_NAME: oem" 0.0s
=> CACHED [stage-2 5/10] RUN echo "DEPLOY_MODE: azure" 0.0s
=> CACHED [stage-2 6/10] RUN if [ "azure" = "azure" ]; then WIN 0.0s
=> CACHED [stage-2 7/10] COPY src/win-arena-container/client /client 0.0s
=> CACHED [stage-2 8/10] COPY src/win-arena-container/entry_setup.sh /e 0.0s
=> CACHED [stage-2 9/10] COPY src/win-arena-container/start_client.sh / 0.0s
=> CACHED [stage-2 10/10] COPY src/win-arena-container/start_vm.sh /star 0.0s
=> CACHED [stage-2 11/10] COPY src/win-arena-container/entry.sh /entry.s 0.0s
=> CACHED [stage-2 12/10] RUN find / -maxdepth 3 -type f -name "*.sh" -e 0.0s
=> CACHED [stage-2 13/10] RUN apt-get update && apt-get install -y fuse 0.0s
=> exporting to image 0.2s
=> => exporting layers 0.0s
=> => exporting manifest sha256:4ebe9edac835b2fe311766f0ece5ad57befc89da 0.0s
=> => exporting config sha256:df85865dba87608ab0cf0d3da249bad68c08451413 0.0s
=> => exporting attestation manifest sha256:0d33179fc7ffaa881403197c6658 0.0s
=> => exporting manifest list sha256:e5df8057e494f6f51d633aecf16891222da 0.0s
=> => naming to docker.io/library/winarena:latest 0.0s
=> => unpacking to docker.io/library/winarena:latest 0.0s
Invoking Docker Container with the command:
docker run -it --rm -p 8006:8006 -p 3390:3389 --name winarena --platform linux/amd64 --device=/dev/kvm -e RAM_SIZE=8G -e CPU_CORES=8 --mount type=bind,source=/home/vm2/WindowsAgentArena/src/win-arena-container/vm/image/setup.iso,target=/custom.iso -v /home/vm2/WindowsAgentArena/src/win-arena-container/vm/storage/.:/storage -v /home/vm2/WindowsAgentArena/src/win-arena-container/vm/setup/.:/shared -v /home/vm2/WindowsAgentArena/src/win-arena-container/client/.:/client --cap-add NET_ADMIN --stop-timeout 120 --entrypoint /bin/bash -e OPENAI_API_KEY=XXXXX windowsarena/winarena:latest -c './entry.sh --prepare-image true --start-client true --agent navi --model gpt-4-vision-preview --som-origin oss --a11y-backend uia'
docker: Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory.

@francedot
Copy link
Contributor

I'd suggest looking into this dockur issue: dockur/windows#179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants