someusr
Cadet
- Joined
- Aug 16, 2022
- Messages
- 2
Hey there!
This is my first post here so there will be room for improvement. Let me know when I missed information that could be helpful to understand and analyse the issue I have.
Hardware info
Please don't bother by trying to tell me to file a bug report. I did that and they pointed me to the forum here because they "don't troubleshoot custom configuration options done via the cli or troubleshoot scripts".
Maybe someone encountered a similar issue and provide some hints or can point me to a direction to solve the issue myself.
Thanks y'all.
This is my first post here so there will be room for improvement. Let me know when I missed information that could be helpful to understand and analyse the issue I have.
Hardware info
- MB: Supermicro Super Server
- CPU: i3-8100T CPU @ 3.10GHz
- RAM: 16GB 2400MHz ECC Micron
- HD:
- 2x WD Red 8TB HDD in mirror mode
- 1 256GB Samsung SSD as boot and system drive
Description of issue
After updating to TrueNAS-SCALE-22.02.2.1 I am now unable to attach my serial device to my qemu virtual machine via "virsh attach-device".Steps to reproduce
- Have an xml file which defines a device that should be attached to vm (see attachment "add_conbee2_serial.xml")
- Start qemu virtual machine
- Execute "virsh attach-device $vm_name --file add_conbee2_serial.xml --config --persistent"
- See it fail with
Code:error: Failed to attach device from /root/add_conbee2_serial.xml error: internal error: cannot update AppArmor profile 'libvirt-03bc6e95-483e-4422-94bf-4d0299ec44a9'
What should have happened
After executing step 3 there should be a success hint and the device should be visible within the qemu virtual maschine.What else to know
- I did not temper with any libvirt/qemu configuration
- It was last seen working with TrueNAS-SCALE-22.02.1 and then I updated to TrueNAS-SCALE-22.02.2.1
- systemctl status libvirtd.service prints out the following
Code:internal error: Child process (LIBVIRT_LOG_OUTPUTS=3:stderr /usr/lib/libvirt/virt-aa-helper -r -u libvirt-03bc6e95-483e-4422-94bf-4d0299ec44a9 -F SERIAL_PORT) unexpected exit status 1: 2022-08-12 10:31:56.961+0000: 1678469: info : libvirt version: 7.0.0, package: 3 (Andrea Bolognani <eof@kiyuko.org> Fri, 26 Feb 2021 16:46:34 +0100) 2022-08-12 10:31:56.961+0000: 1678469: info : hostname: truenas 2022-08-12 10:31:56.961+0000: 1678469: error : virStorageFileBackendFileRead:125 : Failed to open file '/dev/zvol/data/zvols/homeassistant': Permission denied virt-aa-helper: warning: SERIAL_PORT virt-aa-helper: warning: skipped non-absolute path virt-aa-helper: warning: SERIAL_PORT virt-aa-helper: warning: skipped non-absolute path virt-aa-helper: error: apparmor_parser exited with error internal error: cannot update AppArmor profile 'libvirt-03bc6e95-483e-4422-94bf-4d0299ec44a9'
- file permission for the zvol are these
Code:root@truenas:/dev/zvol/data/zvols# pwd /dev/zvol/data/zvols root@truenas:/dev/zvol/data/zvols# ls -la total 0 drwxr-xr-x 2 root root 60 Aug 11 22:24 . drwxr-xr-x 3 root root 60 Aug 11 22:24 .. lrwxrwxrwx 1 root root 12 Aug 11 22:24 homeassistant -> ../../../zd0
Please don't bother by trying to tell me to file a bug report. I did that and they pointed me to the forum here because they "don't troubleshoot custom configuration options done via the cli or troubleshoot scripts".
Maybe someone encountered a similar issue and provide some hints or can point me to a direction to solve the issue myself.
Thanks y'all.