Comment 7 for bug 1157626

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

It looks like /sys/fs/cgroup/*/libvirt/qemu/$vm needs to be added to libvirt-qemu.

Also, /dev/ptmx is now a symlink or bind mount to /dev/pts/ptmx. /etc/appamor.d/abstractions/libvirt-qemu lists /dev/ptmx, but needs to also list /dev/pts/ptmx.

After adding /sys/fs/cgroup/** rw and /dev/pts/ptmx rw to /etc/apparmor.d/abstractions/libvirt-qemu, I get what appear to be libvirt-qemu incompatibilities:

2013-03-20 17:50:50.759+0000: 5788: debug : qemuMonitorJSONIOProcessLine:170 : QEMU_MONITOR_RECV_REPLY: mon=0x7f0414007f50 reply={"return": [{"name": "SPICE_MIGRATE_COMPLETED"}, {"name": "BALLOON_CHANGE"}, {"name": "WAKEUP"}, {"name": "SUSPEND_DISK"}, {"name": "SUSPEND"}, {"name": "DEVICE_TRAY_MOVED"}, {"name": "BLOCK_JOB_READY"}, {"name": "BLOCK_JOB_ERROR"}, {"name": "BLOCK_JOB_CANCELLED"}, {"name": "BLOCK_JOB_COMPLETED"}, {"name": "SPICE_DISCONNECTED"}, {"name": "SPICE_INITIALIZED"}, {"name": "SPICE_CONNECTED"}, {"name": "WATCHDOG"}, {"name": "RTC_CHANGE"}, {"name": "BLOCK_IO_ERROR"}, {"name": "VNC_DISCONNECTED"}, {"name": "VNC_INITIALIZED"}, {"name": "VNC_CONNECTED"}, {"name": "RESUME"}, {"name": "STOP"}, {"name": "POWERDOWN"}, {"name": "RESET"}, {"name": "SHUTDOWN"}], "id": "libvirt-5"}
2013-03-20 17:50:50.798+0000: 5788: debug : qemuMonitorIOProcess:342 : QEMU_MONITOR_IO_PROCESS: mon=0x7f0414007f50 buf={"id": "libvirt-9", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-blk-s390' not found"}}
2013-03-20 17:50:50.798+0000: 5788: debug : qemuMonitorJSONIOProcessLine:150 : Line [{"id": "libvirt-9", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-blk-s390' not found"}}]
2013-03-20 17:50:50.798+0000: 5788: debug : virJSONValueFromString:944 : string={"id": "libvirt-9", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-blk-s390' not found"}}
2013-03-20 17:50:50.799+0000: 5788: debug : qemuMonitorJSONIOProcessLine:170 : QEMU_MONITOR_RECV_REPLY: mon=0x7f0414007f50 reply={"id": "libvirt-9", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-blk-s390' not found"}}
2013-03-20 17:50:50.802+0000: 5788: debug : qemuMonitorIOProcess:342 : QEMU_MONITOR_IO_PROCESS: mon=0x7f0414007f50 buf={"id": "libvirt-10", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-net-s390' not found"}}
2013-03-20 17:50:50.802+0000: 5788: debug : qemuMonitorJSONIOProcessLine:150 : Line [{"id": "libvirt-10", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-net-s390' not found"}}]
2013-03-20 17:50:50.802+0000: 5788: debug : virJSONValueFromString:944 : string={"id": "libvirt-10", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-net-s390' not found"}}
2013-03-20 17:50:50.802+0000: 5788: debug : qemuMonitorJSONIOProcessLine:170 : QEMU_MONITOR_RECV_REPLY: mon=0x7f0414007f50 reply={"id": "libvirt-10", "error": {"class": "DeviceNotFound", "desc": "Device 'virtio-net-s390' not found"}}
2013-03-20 17:50:50.805+0000: 5788: debug : qemuMonitorIOProcess:342 : QEMU_MONITOR_IO_PROCESS: mon=0x7f0414007f50 buf={"id": "libvirt-11", "error": {"class": "DeviceNotFound", "desc": "Device 'pci-assign' not found"}}
2013-03-20 17:50:50.805+0000: 5788: debug : qemuMonitorJSONIOProcessLine:150 : Line [{"id": "libvirt-11", "error": {"class": "DeviceNotFound", "desc": "Device 'pci-assign' not found"}}]
2013-03-20 17:50:50.805+0000: 5788: debug : virJSONValueFromString:944 : string={"id": "libvirt-11", "error": {"class": "DeviceNotFound", "desc": "Device 'pci-assign' not found"}}
2013-03-20 17:50:50.806+0000: 5788: debug : qemuMonitorJSONIOProcessLine:170 : QEMU_MONITOR_RECV_REPLY: mon=0x7f0414007f50 reply={"id": "libvirt-11", "error": {"class": "DeviceNotFound", "desc": "Device 'pci-assign' not found"}}
2013-03-20 17:50:50.828+0000: 5788: debug : qemuMonitorIOProcess:342 : QEMU_MONITOR_IO_PROCESS: mon=0x7f0414007f50 buf={"id": "libvirt-16", "error": {"class": "DeviceNotFound", "desc": "Device 'usb-redir' not found"}}
2013-03-20 17:50:50.828+0000: 5788: debug : qemuMonitorJSONIOProcessLine:150 : Line [{"id": "libvirt-16", "error": {"class": "DeviceNotFound", "desc": "Device 'usb-redir' not found"}}]