Unable to create Virtual Machine In Scale eventhough it worked in Core

Hadronikle

Cadet
Joined
Oct 9, 2022
Messages
1
I have a
Threadripper 1950x
ROG ZENITH EXTREME X399 Motherboard
32GB of RAM
6x8TB Hard drives in raidz1
gt 1030 and rtx 3050

To preface I got the server setup in Core and everything worked great and created an Unbuntu VM to toy around. I wanted to go ahead and get plex setup but realized in Core I couldn't use NVEC encoding. I did the update to scale and set up a new VM and it spit out these errors if i put in 1 cpu 4 cores 2 threads

[EFAULT] internal error: qemu unexpectedly closed the monitor: 2022-10-09T15:36:44.442089Z qemu-system-x86_64: warning: This family of AMD CPU doesn't support hyperthreading(2) Please configure -smp options properly or try enabling topoext feature. 2022-10-09T15:36:45.602578Z qemu-system-x86_64: -device vfio-pci,host=0000:0a:00.1,id=hostdev0,bus=pci.0,addr=0x7: vfio 0000:0a:00.1: failed to setup container for group 16: Failed to set iommu for container: Operation not permitted

Code:
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 177, 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 1294, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1272, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1140, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_lifecycle.py", line 39, in start
    await self.middleware.run_in_thread(self._start, vm['name'])
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1209, in run_in_thread
    return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1206, 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/vm_supervisor.py", line 62, in _start
    self.vms[vm_name].start(vm_data=self._vm_from_name(vm_name))
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 174, in start
    raise CallError('\n'.join(errors))
middlewared.service_exception.CallError: [EFAULT] internal error: qemu unexpectedly closed the monitor: 2022-10-09T15:36:44.442089Z qemu-system-x86_64: warning: This family of AMD CPU doesn't support hyperthreading(2)
Please configure -smp options properly or try enabling topoext feature.
2022-10-09T15:36:45.602578Z qemu-system-x86_64: -device vfio-pci,host=0000:0a:00.1,id=hostdev0,bus=pci.0,addr=0x7: vfio 0000:0a:00.1: failed to setup container for group 16: Failed to set iommu for container: Operation not permitted


If i put in 1 cpu 8 cores and 1 thread i get this error.

[EFAULT] internal error: process exited while connecting to monitor: 2022-10-09T15:46:39.153244Z qemu-system-x86_64: -device vfio-pci,host=0000:0a:00.1,id=hostdev0,bus=pci.0,addr=0x7: vfio 0000:0a:00.1: failed to setup container for group 16: Failed to set iommu for container: Operation not permitted

Code:
Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 165, in start
    if self.domain.create() < 0:
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2022-10-09T15:46:39.153244Z qemu-system-x86_64: -device vfio-pci,host=0000:0a:00.1,id=hostdev0,bus=pci.0,addr=0x7: vfio 0000:0a:00.1: failed to setup container for group 16: Failed to set iommu for container: Operation not permitted

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 177, 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 1294, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1272, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1140, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/vm_lifecycle.py", line 39, in start
    await self.middleware.run_in_thread(self._start, vm['name'])
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1209, in run_in_thread
    return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1206, 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/vm_supervisor.py", line 62, in _start
    self.vms[vm_name].start(vm_data=self._vm_from_name(vm_name))
  File "/usr/lib/python3/dist-packages/middlewared/plugins/vm/supervisor/supervisor_base.py", line 174, in start
    raise CallError('\n'.join(errors))
middlewared.service_exception.CallError: [EFAULT] internal error: process exited while connecting to monitor: 2022-10-09T15:46:39.153244Z qemu-system-x86_64: -device vfio-pci,host=0000:0a:00.1,id=hostdev0,bus=pci.0,addr=0x7: vfio 0000:0a:00.1: failed to setup container for group 16: Failed to set iommu for container: Operation not permitted


And help with this error?

[post corrected per implicit req -JG]

Thank you!
 
Last edited by a moderator:
Top