This is a simple container wrapping libvirtd.
Instead of delivering libvirtd in a package, libvirtd is now delivered in a container. When running the container it will look like libvirtd is running on the host's namespace. But in fact it's running in a container.
This is similar to Atomic's 'system containers'.
You can use virsh on the host to access it.
To access libvirtd via TCP you still need to export the correct port.
For convenience there is a daemon set definition which can be used with kubernetes.
Note: make sure that libvirtd is not running on the hosts of the k8s cluster.
Define the daemon set:
kubectl create -f libvirtd-ds.yaml
Now test on any host of the cluster:
virsh capabilities
Note: Make sure to not run libvirtd on the host.
Start the container
docker run \
--name libvirtd \
--rm \
--net=host \
--pid=host \
--user=root \
--privileged \
-v /sys:/sys:Z \
-v /:/host:Z \
-it fabiand/libvirtd:latest
Now, to verify, run, on the host:
virsh capabilities
These environment variables can be passed into the container
Considerations that need to be taken into account:
Content type
Image
Digest
Size
382.3 MB
Last updated
over 9 years ago
docker pull zhaoyihui/libvirtd