I installed TN on a minipc with N200 and today I updated to 25.04.2. I want to install a VM with a vanilla Debian, I configured the VM attaching a Hailo card PCIe device and uploaded the ISO but when I try to start it the system crash and does not respond anymore to UI or console. Here are the logs I captured before the crash.
If I remove the device the VM starts normally. The purpose to create the VM was to use that device, since the drivers are not avaiable in TN. Is there anything I can do to make it working?
The other option for me is to enable the developer mode and compile the drivers, but I was discouraged to do that.
#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done
Maybe the MiniPCâs PCIe configuration doesnât allow the passthrough of just this one deviceâŚ
Did you set the executale bit on the script (chmod +x) ?
You can also just paste the content right into a bash window (it might work with zsh, though I am not sure if for- and string substitution syntax match between bash and zsh).
root@truenas:/home/truenas_admin# cat iommu.sh
#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done
That could be the issue. Just running sudo su does change the user but keeps your non-privileged userâs environment. Try running sudo -i or sudo su - (although that second one is broken on some versions of TN Scale).
root@truenas:~# for d in /sys/kernel/iommu_groups/*/devices/*; do
echo $d
done
...
/sys/kernel/iommu_groups/7/devices/0000:00:16.0
/sys/kernel/iommu_groups/8/devices/0000:00:1a.0
/sys/kernel/iommu_groups/9/devices/0000:00:1c.0
I cut several lines, the co-processor should be in the group 7 right?
That still doesnât explain the weird sudo error but if thatâs the only device in that iommu group then that is not the problem. That still doesnât bring us any farther to why your machine crashed though
You understood correct: the whole TN crash. I was connected with UI and ssh in addition to the system console and all were not avaiable anymore after 2 seconds, I had to power off and reboot.
After the failure I enabled the developer mode to try compiling the driver, it will be shown in the debug file? When the system crashed the mode was not enabled, I may reinstall the system and produce the debug file. As I told you Iâm still in the sandbox phase, therefore the system is still empty.
What do you mean it was not enabled then? Enabling developer mode does that for the current boot environment and for that it is a permanent change afaik.
If it was on 24.05.1 and you updated to 24.05.2 now without enabling it again that should be fine.
Today i first updated to 25.04.2, after that I did the tests with the VM, got the incident and started this thread, until that time the developer mode was not enabled.
One hour ago I enabled it to try the other way. Do you mean that if now I reinstall the system from scratch, I mean booting from usb key and reinstalling it, the developer mode will be still enabled?
No, if you reinstall developer mode will be disabled.
I am not sure how iXsystems analyze the debug files. There may well be a marker in there that causes some bot to say âdeveloper mode active - rejectedâ, no ideaâŚ