windows-in-docker-container icon indicating copy to clipboard operation
windows-in-docker-container copied to clipboard

Call to virDomainCreate failed

Open anapolima opened this issue 9 months ago • 4 comments

I'm facing this error

/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)

Have no idea what it could be

anapolima avatar May 06 '24 02:05 anapolima

Hey @anapolima,

Thanks for your feedback.

Could you please share some information about your system host? I would appreciate details such as your Operating System, architecture, and Docker version.

You could attempt to run the program without the volume, just in case. Here is the code you can use:

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

Please share your results along with any other information that could help us identify the issue.

Thank you!

vaggeliskls avatar May 15 '24 08:05 vaggeliskls

Hello, i think i ran into the same issue. I have also tried it without the volume.

My System Configuration is: Linux Ubuntu-2204-jammy-amd64-base 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

The output from the docker-compose logs is the following:

grafik

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'

xaeto avatar May 18 '24 10:05 xaeto

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

/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)```

webzit avatar May 29 '24 15:05 webzit

Hi, @vaggeliskls! I was on Ubuntu-2204-jammy. Can't remember the Docker version, also can't check (I ended booting the machine with Windows). I appreciate your attention. You can still help @xaeto and @webzit

anapolima avatar May 30 '24 02:05 anapolima