S.M.A.R.T. actions need to be blacklisted/disabled on HyperV.
When attempting to use S.M.A.R.T. on HyperV, either from the widget or Diag > S.M.A.R.T. Status, the VM will crash. It appears as though HyperV is disconnecting/removing the disk, as the VM will either show filesystem errors in the GUI or crash/panic in a way that suggests the disk disappeared.
S.M.A.R.T. has no meaning/function in such an environment, but people can still trigger it unintentionally by adding random widgets or maybe restoring a config with the widget from a system that was previously on bare metal.
Not really a bug in pfSense since it's HyperV that's overreacting, but if that is something we can detect it would make for a better user experience.
Updated by Chris Buechler over 6 years ago
- Tracker changed from Todo to Bug
- Category changed from Web Interface to Operating System
- Status changed from New to Feedback
- Assignee set to Chris Buechler
- Priority changed from Low to Normal
- Affected Architecture All added
What triggers the kernel panic is:
smartctl -H /dev/$dev
Since it's a bug in the OS, I'll re-classify as a bug. It's not a sensible thing to try to use with Hyper-V, but if you restore a config that happened to have it on the dashboard, or just click the widget's name in the add screen, you end up with a system where you can't log into the web GUI without causing that kernel panic to be hit.
I added Hyper-V to system_identify_specific_platform, and changed SMART's page and widget to do nothing when Hyper-V.