I was playing with 25.04-rc.1 and tonight upgraded to 25.04.
Slowly setting up my TrueNAS Core Jails as TrueNAS Scale LXC Containers.
I am attempting to set up another instance, when I got the following error.
Source /mnt/md1/media is currently in use by 'helloworld2' instance
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
await self.future
File "/usr/lib/python3/dist-packages/middlewared/job.py", line 560, in __run_body
rv = await self.method(*args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 287, in nf
rv = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/api/base/decorator.py", line 88, in wrapped
result = await func(*args)
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/middlewared/plugins/virt/instance.py", line 439, in do_create
verrors.check()
File "/usr/lib/python3/dist-packages/middlewared/service_exception.py", line 72, in check
raise self
middlewared.service_exception.ValidationErrors: [EINVAL] virt_instance_create.source: Source /mnt/md1/media is currently in use by 'helloworld2' instance
This didn’t happen on 25.04-rc.1. I was able to use the same dataset in multiple Instances.
We had some edge cases where it was possible to put the same zvol into two separate instances (which of course results in data corruption) and so validation maybe got too strict. Create a new jira ticket for it.
Just curious… if I didn’t want to wait for 25.04.01 for this bug to be fixed, can I just make the code change on my system? Is there anything preventing that?
You can in theory run the command /usr/local/libexec/disable-rootfs-protection and then edit the source files to your heart’s content. Do note that if you break it, you get to keep the pieces (don’t file bug reports)