SOLVED iocage won't start DHCP error. Not vnet_default_interface

warriorcookie

Explorer
Joined
Apr 17, 2017
Messages
67
Running Freenas 11.2 U5

I've created an iocage jail using the gui and enable DHCP. When trying to start it gives the following DHCP error:


Runtime Error + Acquiring DHCP address: FAILED, address received: 0.0.0.0/8 Stopped PlexServer due to DHCP failure Error: concurrent.futures.process._RemoteTraceback: """ Traceback (most recent call last): File "/usr/local/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker r = call_item.fn(*call_item.args, **call_item.kwargs) File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 133, in main_worker res = loop.run_until_complete(coro) File "/usr/local/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 93, in _run return await self._call(name, serviceobj, methodobj, params=args, job=job) File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call return methodobj(*params) File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 85, in _call return methodobj(*params) File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 668, in nf return f(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 619, in start iocage.start() File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 1653, in start callback=self.callback File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 67, in __init__ self.__start_jail__() File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 471, in __start_jail__ _callback=self.callback) File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 90, in logit _callback(content, exception) File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 64, in callback raise callback_exception(message) RuntimeError: + Acquiring DHCP address: FAILED, address received: 0.0.0.0/8 Stopped PlexServer due to DHCP failure """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 167, in call_method result = await self.middleware.call_method(self, message) File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1098, in call_method return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False) File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1043, in _call return await self._call_worker(name, *args) File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1063, in _call_worker return await self.run_in_proc(main_worker, name, args, job) File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 997, in run_in_proc return await self.run_in_executor(self.__procpool, method, *args, **kwargs) File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 973, in run_in_executor return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs)) RuntimeError: + Acquiring DHCP address: FAILED, address received: 0.0.0.0/8 Stopped PlexServer due to DHCP failure


I've already checked to make sure vnet_default_interface is set to auto. To be sure i set it to none, saved, then set it back to auto. I also tried em0.

Setting it to static allows it to start, but I can't ping anything until I disable vnet. Then I can ping, get pkg updates, etc.

I'm installing Plex and am having some issues. Another forum post I found said the issues were resolved once it was set to DHCP. I'm not sure if it's DHCP that's required or VNET.

Under freenas network global settings I have the default gateway pointing to my router/DHCP server.


I'd appreciate someone pointing me in the next direction.
 

warriorcookie

Explorer
Joined
Apr 17, 2017
Messages
67
You are correct on your assumption and your solution.

Promiscuous mode was disabled on my vswitch. Enabling it aloud the jail to start and successfully acquire an ip.

Thanks!
 
Top