If I start a simple bash container with networking, udevadm settle proceeds to hang on the host. This affects other libvirt functions like storage pool listing. If I remove the <interface> XML, settle doesn't hang.
Any recommendations on getting more info is appreciated.
I have this container:
<domain type='lxc'>
<name>bash</name>
<uuid>f1a972fc-eefd-4ca2-cc4b-b769cd25cadc</uuid>
<memory unit='KiB'>65536</memory>
<currentMemory unit='KiB'>61440</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64'>exe</type>
<init>/bin/sh</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<interface type='network'>
<mac address='00:16:3e:ab:9a:cd'/>
<source network='default'/>
</interface>
<console type='pty'>
<target type='lxc' port='0'/>
</console>
</devices>
</domain>
Default network XML is:
<network>
<name>default</name>
<uuid>ff473bff-797f-41dd-b3df-f5a67b0a5f20</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0' />
<mac address='52:54:00:d1:52:aa'/>
<ip address='192.168.123.1' netmask='255.255.255.0'>
<tftp root='/var/lib/tftpboot' />
<dhcp>
<range start='192.168.123.2' end='192.168.123.254' />
<bootp file='pxelinux.0' />
</dhcp>
</ip>
</network>
To test, dump the first XML to file, sudo virsh --connect lxc:/// define <vmxml>, sudo virsh --connect lxc:/// start bash, udevadm settle on host.udev
I got the patch for commit 9ea28c55a2, applied to to systemd-212-2, rebuild the package using mock, and then tested it.
I have a live-LXDE rawhide spin installed on aUSB stick. I updated systemd there and then ran /usr/bin/liveinst
No hanged; works great. Get this into rawhide soonest.