Unable to start LXC domain with hybrid cgroups
Software environment
- Operating system:
- Architecture: x86
- kernel version:
- libvirt version: git master commit e2ebbd40
- Hypervisor and version:
Description of problem
Starting a simple LXC domain with hybrid cgroups fails
cat lxc-test.xml
<domain type='lxc'>
<name>lxc-test</name>
<memory>500000</memory>
<os>
<type>exe</type>
<init>/bin/sh</init>
</os>
<vcpu>1</vcpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/lib64/libvirt/libvirt_lxc</emulator>
<interface type='network'>
<source network='default'/>
</interface>
<console type='pty' />
</devices>
</domain>
virsh -c lxc:/// create lxc-test.xml
error: Failed to create domain from lxc-test.xml
error: error from service: GDBus.Error:org.freedesktop.machine1.NoMachineForPID: PID 7497 does not belong to any known machine
Attached is the libvirtd log file created with log_filters="1:systemd 1:dbus 1:cgroup 1:lxc" and log_with_libvirtd = 1 in lxc.conf.
Steps to reproduce
- Attempt to create a simple LCX domain with 'virsh create ...' 2.libvirtd-lxc.log
Additional information
The following openSUSE bug contains additional information
Edited by Peter Krempa