Open Krakoer opened 5 months ago
Hello @Krakoer,
Thank you for your feedback.
After trying to get through the steps you took, I also saw the problem you mentioned. It seems that using the sig-windows-dev-tools/windows-2019 box is causing some issues.
VirtioFS normally helps virtual machines use a directory tree on the host. But I ran into issues when trying to use shared folders on a Windows guest.
From what I can tell, this vagrant box may be the main issue when it's used in a container as our project describes.
I also noticed that the box you suggest requires several vagrant plugins to be installed. It might be a good idea to make sure these plugins are updated according to the needs in the box repository.
Here are some things we could try:
By the way, were you able to run the official box of this project on your Debian 12 system?
Looking forward to hearing from you. Thanks again for your helpful feedback.
Thanks for the quick reply. I tried using the Dockerfile, Vagrantfile and .env file of the repo from a clean debian 12 and got the following error:
win10-1 | /root/.vagrant.d/gems/3.1.4/gems/fog-libvirt-0.12.0/lib/fog/libvirt/requests/compute/vm_action.rb:7:in `create': Call to virDomainCreate failed: unable to open '/sys/fs/cgroup/machine/qemu-1-default.libvirt-qemu/': No such file or directory (Libvirt::Error)
Quick update, I tested your official box and got the same error :)
Same error on debian 12
win10_1 | /root/.vagrant.d/gems/3.1.4/gems/fog-libvirt-0.12.0/lib/fog/libvirt/requests/compute/vm_action.rb:7:in `create': Call to virDomainCreate failed: unable to open '/sys/fs/cgroup/machine/qemu-1-default.libvirt-qemu/': No such file or directory (Libvirt::Error)
docker-compose.yml
version: "3.9"
services:
win10:
image: ghcr.io/vaggeliskls/windows-in-docker-container:latest
env_file: .env
stdin_open: true
tty: true
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
ports:
- 3389:3389
@imKota @Krakoer I genuinely appreciate your feedback. I regret to hear that you're running into some issues.
This project is battle tested on Ubuntu Servers.
Unfortunately, I don't have a Debian 12 system on bare metal to test this project. Despite this, I believe we can work together to address your concerns.
To facilitate a better diagnosis of the issue you're encountering, I'd like to gather a bit more information:
For testing purposes, I also propose that you try a modified Docker Compose configuration I've put together. The configuration is as follows:
version: "3.9"
services:
win10:
image: ghcr.io/vaggeliskls/windows-in-docker-container:latest
env_file: .env
stdin_open: true
tty: true
privileged: true
ports:
- 3389:3389
In this new configuration, I've intentionally left out the cgroup volume. I'm curious to see whether this change affects your situation.
Once you've had a chance to test this, please report back on whether the issue has been resolved, or if the problem behaviour continues. Your insights will be valuable in helping us refine our project further.
Your cooperation and contributions to the project are sincerely appreciated. Looking forward to your response.
Looks like I might face the same issue. Host system is Debian 6.1.90-1. Docker runs as root and no other unusual configuration.
Docker version 26.1.3, build b72abbb Docker Compose version v2.27.0
I get following error with the test docker-compose (i.e. without cgroup volume)
win10-1 | ==> default: Creating shared folders metadata...
win10-1 | ==> default: Updating domain definition due to configuration change
win10-1 | ==> default: Starting domain.
win10-1 | ==> default: Removing domain...
win10-1 | ==> default: Deleting the machine folder
win10-1 | /root/.vagrant.d/gems/3.1.4/gems/fog-libvirt-0.12.0/lib/fog/libvirt/requests/compute/vm_action.rb:7:in `create': Call to virDomainCreate failed: unable to open '/sys/fs/cgroup/machine/qemu-1-default.libvirt-qemu/': No such file or directory (Libvirt::Error)
win10-1 | from /root/.vagrant.d/gems/3.1.4/gems/fog-libvirt-0.12.0/lib/fog/libvirt/requests/compute/vm_action.rb:7:in `vm_action'
win10-1 | from /root/.vagrant.d/gems/3.1.4/gems/fog-libvirt-0.12.0/lib/fog/libvirt/models/compute/server.rb:76:in `start'
win10-1 | from /root/.vagrant.d/gems/3.1.4/gems/vagrant-libvirt-0.12.2/lib/vagrant-libvirt/action/start_domain.rb:608:in `call'
Firstly, thanks for the project. Built with the Dockerfile, running on debian 12, I got
I edited the Dockerfile and Vagrantfile to use the dev tools box because I want to use the VM to build some visual studio project in CI
Ask for more info if needed! Many thx