[HELP] Cannot start VM on truenas core

,

Hi, is there anyone here who has issues related to VMs on TrueNAS Core? I am having trouble booting a VM, and an error log message appears as shown in the following image.


for detail, here’s full error log:



Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 213, in start
    if self.domain.create() < 0:
  File "/usr/local/lib/python3.9/site-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: Failed to open '/var/log/libvirt/bhyve/7_pfsense.log': No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 139, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1251, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1156, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 985, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 1598, in start
    self.vms[vm['name']].start(vm_data=vm)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 222, in start
    raise CallError('\n'.join(errors))
middlewared.service_exception.CallError: [EFAULT] Failed to open '/var/log/libvirt/bhyve/7_pfsense.log': No such file or directory

VMs are not supported on CORE. But we could probably help sort this.

What are all the details?
VM type?
What are the settings you selected when installing the VM regarding CPU and such?

What version of CORE? I have a opnsense vm that boots/runs ok under TrueNAS-13.0-U6.1

As root:

mkdir -p /var/log/libvirt/bhyve
1 Like

Sorry for being late to reply, I’ve already solved by make directory as you mention, Thank in advance