Error creating jail

norskman

Contributor
Joined
Sep 28, 2012
Messages
149
I have a number of jails all working ok.
But when I create more jails I get this error:
'Invalid mac_prefix. Must match `?X????` where ? can be any valid hex digit (0-9, A-F) and X is one of 2, 6, A or E. '

I am running the latest version of FreeNAS 11.3-U3.2

I disabled the local Intel Ethernet ports on the ASUS motherboard ( Ports are reported as ASUS not intel!!) and am running the Chelsio 10G card in the PCI slot with one 10G port - works no problem including jails using VNET0 on that same single port.

NO other errors reported and looks like everything else is working.

Should I be reporting this error on the bug tracker? Or does anyone know anything about this error?

many thanks



DETAILED ERROR OUPUT:
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_create.py", line 495, in _create_jail
value, config = iocjson.json_check_prop(key, value, config)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 2440, in json_check_prop
silent=self.silent
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 103, in logit
callback(content, exception)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 76, in callback
raise callback_exception(message)
RuntimeError: Invalid mac_prefix. Must match `?X????` where ? can be any valid hex digit (0-9, A-F) and X is one of 2, 6, A or E.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 349, in run
await self.future
File "/usr/local/lib/python3.7/site-packages/middlewared/job.py", line 388, in __run_body
rv = await self.middleware.run_in_thread(self.method, *([self] + args))
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 965, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 771, in do_create
empty=empty
File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 587, in create
clone_basejail=clone_basejail
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_create.py", line 100, in create_jail
return self._create_jail(jail_uuid, location)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_create.py", line 501, in _create_jail
raise RuntimeError(f"***\n{err}\n***\n")
RuntimeError: ***
Invalid mac_prefix. Must match `?X????` where ? can be any valid hex digit (0-9, A-F) and X is one of 2, 6, A or E.
***
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Have you tried specifying a MAC address for the jail NIC according to the suggested pattern?
 

norskman

Contributor
Joined
Sep 28, 2012
Messages
149
Many thanks for your reply. No I did not know that is even possible to define a MAC address for a network card. I guess I had RTFM.

I have an ASUS z390-A motherboard with a MAC address that has an ASUS MAC but is an Intel chipset. Thats why I dropped the interface from the configuration and deleted it. So the only NIC showing in the BIOS ( as an external card) is the PCI based 10G card.

I don't even need to use that 1Gb Motherboard NIC really.

So now given only the external Chelsio card is present, Jail creation should be ok. Or so I thought .

How is that I am getting errors from a Motherboard NIC that is disabled in the BIOS and does not show in the configuration page of FREENAS? Surely it can't 'see' that NIC card anymore?

Unless the NIC configurations are held in a file somewhere EXTERNAL to the GUI?
 

roose

Cadet
Joined
Sep 16, 2017
Messages
2
Jail/Network properties/mac_prefix
Change the second digit to "2"
Save jail
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
 
Top