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 super knowledgeable in podman or libvirt so this issue might be a bit wish-washy while I try to express my wishes somewhat concretely. 😅
For some background, while I don't feel comfortable moving to silverblue yet, I wanted to try moving as much as possible of my environment in my new Fedora installation to be in containers. Now I'm at the point where I want to start a Kubernetes cluster and the only realistic option for me is minikube with KVM.
The problem I'm having is that minikube fails inside a toolbox because it can't find the file containing the IP of the VM which is understandable since no libvirt folders are mounted to the container. Here is the error from minikube:
💣 Unable to start VM. Please investigate and run 'minikube delete' if possible: post-start: command runner: ssh client: Error creating new ssh host from driver: Error getting ssh host name for driver: getting IP: reading status file: open /var/lib/libvirt/dnsmasq/virbr1.status: no such file or directory
Would this be possible to fix in toolbox or should I just revert to installing everything on the host?
Hello @dotellie! I never used Kubernetes or libvirt before so I'm just guessing now. Toolbox now bind mounts almost all folders in root inside of a new container (specifically /etc, /dev, /run, /tmp, /usr, /var). They are mounted in /run/host. So you can try inside of a container to do something like this: mount /run/host/var/lib/libvirt /var/lib/libvirt.
If you created the toolbox container with Toolbox 0.0.14 or later, then /run/libvirt from the host is bind mounted inside the container at the same location.
It might be that you are missing /var/lib/libvirt. As @HarryMichal pointed, you can still try to bind mount it yourself and see if that gets you further along the road.
Activity
martymichal commentedon Mar 13, 2020
Hello @dotellie! I never used Kubernetes or libvirt before so I'm just guessing now. Toolbox now bind mounts almost all folders in root inside of a new container (specifically /etc, /dev, /run, /tmp, /usr, /var). They are mounted in
/run/host. So you can try inside of a container to do something like this:mount /run/host/var/lib/libvirt /var/lib/libvirt.debarshiray commentedon May 18, 2020
If you created the toolbox container with Toolbox 0.0.14 or later, then
/run/libvirtfrom the host is bind mounted inside the container at the same location.It might be that you are missing
/var/lib/libvirt. As @HarryMichal pointed, you can still try to bind mount it yourself and see if that gets you further along the road.debarshiray commentedon May 20, 2020
I learnt from the libvirt developers that this error message comes from
libvirtd:Are you trying to run
libvirtdinside the container? Or are you running it on the host?dhodyn commentedon May 26, 2020
Faced the same issue and resolved it with the steps,
To run minikube inside on silverblue inside the toolbox,
First ensure that the libvirtd is install and running on the host system. You will have to layer the virtualization packages
https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/
After restart disable polkit and ensure that the service libvirtd is running
Then inside the toolbox install the virtualization group and bind mount the host libvirtd,
After this minikube should work
debarshiray commentedon Aug 28, 2020
Thanks for the detailed comment, @dhodyn !
Toolbox already bind mounts
/run/libvirtfrom the host. Back then, that was enough to boot a Fedora live ISO in virt-manager.Do we also need
/var/lib/libvirt? If so, we could do that.cmd/initContainer: Enable running minikube on Silverblue
debarshiray commentedon Aug 30, 2020
Does #548 help?
debarshiray commentedon Oct 1, 2020
Ping, @dotellie @dhodyn
cmd/initContainer: Enable running minikube on Silverblue
cmd/initContainer: Enable running minikube on Silverblue
[-]Controlling libvirt from a container[/-][+]Enable running minikube on Silverblue[/+]debarshiray commentedon Oct 21, 2020
I am going to close this now. Please let us know if this lets you run minikube now.