[Pkg-libvirt-maintainers] Bug#1110963: Bug#1110963: libvirt-daemon: libvirtd spams log with virDomainGetMessages errors
Peter Chubb
peter.chubb at unsw.edu.au
Sat Aug 16 07:59:52 BST 2025
>>>>> "Andrea" == Andrea Bolognani <eof at kiyuko.org> writes:
Andrea> I assume this didn't happen in bookworm and is new in trixie?
It did happen in Bookworm, but we saw only a few an hour, as opposed to a few
a second.
Andrea> I also wonder if you have some client connected to the daemon,
Andrea> e.g. virt-manager, that periodically poll the daemon or if
Andrea> these are produced even when no clients are connected.
These are produced all the time. It could be pacemaker probing
something though ... the simplest way to see the log entry is to do:
virsh -c lxc:// dominfo <containername>
Andrea> Can you point me to some brief information (or provide it
Andrea> yourself) on how to create a test LXC domain? I remember
Andrea> trying that a few years back and, though I eventually managed
Andrea> to get it working, it was a bit of a struggle. I'm sure you
Andrea> can point me in the right direction so that we can skip
Andrea> straight to the finish line this time around ;)
Simple way:
Use debootstrap to create a root FS:
sudo -s
cd /var/lib/libvirt/images
debootstrap --include=systemd trixie trixie-1
echo 'trixie-1' > trixie-1/hostname
chroot trixie-1 /usr/bin/passwd
... set password for root ...
Then you can create a container either using virt-manager, or
with virsh
For virsh you need an XML file to describe the container.
Here's what I used -- you will need to adjust the network
section to match your host (all my containers hang off a
bridged 10Gb connection; the bridge is named 'home' on the host)
<domain type="lxc">
<name>trixie-1</name>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://debian.org/debian/13"/>
</libosinfo:libosinfo>
</metadata>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch="x86_64">exe</type>
<init>/sbin/init</init>
</os>
<features>
<privnet/>
</features>
<devices>
<emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
<filesystem type="mount" accessmode="mapped">
<target dir="/"/>
<source dir="/var/lib/libvirt/images/trixie-1"/>
</filesystem>
<interface type="bridge">
<source bridge="home"/>
</interface>
<console type="pty"/>
</devices>
</domain>
Stick this in a file called lxc.xml then do:
virsh -c lxc:/// create lxc.xml
You should then have a running container.
--
Dr Peter Chubb https://trustworthy.systems/
Trustworthy Systems Group CSE, UNSW
Core hours: Mon 8am-3pm; Wed: 8am-5pm; Fri 8am-12pm.
More information about the Pkg-libvirt-maintainers
mailing list