VM's stopped working after power outage

Hi there, i need some help from the experts.

After a power outage the other day, my VM’s will not start. i get the following error:

CallError

[EFAULT] This system does not support virtualization.

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 184, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1317, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1247, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1379, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/service.py", line 927, in query
    result = await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1368, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1317, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1379, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py", line 165, in query
    result = await self._queryset_serialize(
  File "/usr/lib/python3/dist-packages/middlewared/plugins/datastore/read.py", line 213, in _queryset_serialize
    extend_context_value = await self.middleware.call(extend_context, rows, extra_options)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1368, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1328, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1231, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vms.py", line 100, in extend_context
    self._check_setup_connection()
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/connection.py", line 71, in _check_setup_connection
    self._check_connection_alive()
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/connection.py", line 64, in _check_connection_alive
    self._system_supports_virtualization()
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/connection.py", line 61, in _system_supports_virtualization
    raise CallError('This system does not support virtualization.')
middlewared.service_exception.CallError: [EFAULT] This system does not support virtualization.

Any suggestions are greatly appreciated.

Thanks

Have you tried booting into the Bios/UEFI and verifying your cpu virtualization settings?

Yes, it sounds like your BIOS settings may have been corrupted. Resestting your BIOS to defaults, and then reconfiguring to your settings from before the power outage should restore service.

Ok, I’ll give that a try. Thanks for the replies.

I’d consider swapping out the cmos battery then if bios settings getting wonky after a power outage.

Would save you the trouble of having to set them up twice in the near future.

A couple years ago, a nearby lightning strike caused a power outage that my truenas scale system was able to recover from but the VM would not start. So if your BIOS is undamaged and virtualization is enabled you might have to rebuild the VM from a snapshot, like I did.

The bios setting got reset. Once I turned virtualization on everything was back to normal. Thanks for the suggestion.