You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if I'm in the right place here 😉 But it looks like that it might be an issue with Molecule vagrant plugin. I'm on Archlinux. Currently the following components are installed:
Kernel: 6.12.1
Vagrant: 2.4.2
python-vagrant: 1.1.0
libvirt: 10.3.0 (latest available version 10.9.0)
vagrant plugin list
vagrant-libvirt (0.12.3.pre.18, global)
This worked fine all the times. But since libvirt 10.4.0 and newer I can't get the network of the virtual machines running anymore. I was hoping that the problem will be fixed with newer libvirt versions but sadly with libvirt 10.9.0 the issue is still there.
With libvirt 10.3.0 molecule converge runs just fine. But with libvirt >= 10.4.0 - no luck. All the other components are the same and it also doesn't depend on the Linux OS used for the VMs. So if I run molecule converge it looks like this:
WARNING Driver vagrant does not provide a schema.
INFO default scenario test matrix: dependency, create, prepare, converge
INFO Performing prerun with role_name_check=0...
INFO Running default > dependency
WARNING Skipping, missing the requirements file.
WARNING Skipping, missing the requirements file.
INFO Running default > create
PLAY [Create] ******************************************************************
TASK [Create molecule instance(s)] *********************************************
The VMs start like usual and I can see them in the virt-manager UI:
But then nothing happens anymore for quite a while. If I then open a VM via virt-manager to see the console output it looks like this (Ubuntu 24.04.1 in this case):
So the whole startup is obviously waiting for the network. After some time the startup continues but if you login via virt-manager and run ip addr there is no networking configured (well at least no IP addresses):
Sooner or later I get fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/vagrant", "up", "--no-provision"], "msg": "Failed to start the VM(s): See log file '/home/ausername/.cache/molecule/githubixx.containerd/default/vagrant.err. The vagrant.err looks like this:
So maybe someone has an idea. That would be nice 😃 Downgrading to libvirt 10.3.0 works as mentioned but I guess sooner or later that will also stop to work because of whatever dependencies and I'd really like to keep my setup. Thx!
The text was updated successfully, but these errors were encountered:
One addition: The vagrant.err above contains messages like [fog][WARNING] Unrecognized arguments: libvirt_ip_command. But they also occur with libvirt 10.3.0 (the last version that is working as expected):
I'm not sure if I'm in the right place here 😉 But it looks like that it might be an issue with Molecule vagrant plugin. I'm on Archlinux. Currently the following components are installed:
Kernel:
6.12.1
Vagrant:
2.4.2
python-vagrant:
1.1.0
libvirt:
10.3.0 (latest available version 10.9.0)
I'm maintaining various Ansible roles like
https://github.com/githubixx/ansible-role-wireguard/blob/master/molecule/default/molecule.yml
https://github.com/githubixx/ansible-role-containerd/blob/master/molecule/default/molecule.yml
To test my roles I'm using Molecule and the
vagrant
driver withlibvirt
provider. E.g.:This worked fine all the times. But since
libvirt
10.4.0 and newer I can't get the network of the virtual machines running anymore. I was hoping that the problem will be fixed with newer libvirt versions but sadly with libvirt 10.9.0 the issue is still there.With libvirt 10.3.0
molecule converge
runs just fine. But with libvirt >= 10.4.0 - no luck. All the other components are the same and it also doesn't depend on the Linux OS used for the VMs. So if I runmolecule converge
it looks like this:The VMs start like usual and I can see them in the
virt-manager
UI:But then nothing happens anymore for quite a while. If I then open a VM via
virt-manager
to see the console output it looks like this (Ubuntu 24.04.1 in this case):So the whole startup is obviously waiting for the network. After some time the startup continues but if you login via
virt-manager
and runip addr
there is no networking configured (well at least no IP addresses):Sooner or later I get
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/vagrant", "up", "--no-provision"], "msg": "Failed to start the VM(s): See log file '/home/ausername/.cache/molecule/githubixx.containerd/default/vagrant.err
. Thevagrant.err
looks like this:vagrant.err.txt
and the created VMs are shutting down.
So maybe someone has an idea. That would be nice 😃 Downgrading to libvirt 10.3.0 works as mentioned but I guess sooner or later that will also stop to work because of whatever dependencies and I'd really like to keep my setup. Thx!
The text was updated successfully, but these errors were encountered: