LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-06-2022, 02:09 AM   #1
linuxiscoolerthaniam
LQ Newbie
 
Registered: Dec 2022
Posts: 13

Rep: Reputation: 0
breaking the TrueNAS linux 'apliance'


So TrueNAS Scale is rather a closed system.

And for people like me that have just began to leave MicroSoft behind and wanting to embrace Linux it is a little baffling that TrueNAS scale somehow manages to delete my root changes to the file system.

Here is the situation;

I installed TrueNAS Scale 22.04 on a VM to test if my "custom" changes to the system would persist after a reboot.

I understand that TrueNAS is meant as an appliance and not be messed with but I'd like to invoke the right to repair act here.

But when I create a wireguard configuration wg0.conf and wg-quick up wg0 then all is fine. it goes up just like I expect it.

But after a reboot the wg0.conf file is gone. Only the public and private key files are still there.

How can I make it so that I decide how my appliances behave in my own home?
 
Old 12-06-2022, 03:42 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521

Rep: Reputation: Disabled
It may be using a compressed image, (that may get loaded to ram & run from there), if it is, you would have to extract it, decompress it, add your bits, re compress it, then reload it to the appliance, not an easy job.


P.S.
Quote:
What OS is TrueNAS based on?
The company now offers three separate OS products. Two are based on FreeBSD 13: TrueNAS CORE, which replaces FreeNAS, and the commercial TrueNAS Enterprise, available on the company's storage hardware. Complementing them is a new Linux-based product, TrueNAS SCALE.11 May 2022

Last edited by fatmac; 12-06-2022 at 03:49 AM.
 
Old 12-06-2022, 02:01 PM   #3
linuxiscoolerthaniam
LQ Newbie
 
Registered: Dec 2022
Posts: 13

Original Poster
Rep: Reputation: 0
I will investigate some more. I am way out of my comfort zone here when going the path you described.

It mightbe that there is a process digging in the /etc/wireguard/ folder on startup. so I will try to create a ~/wireguard/wg0.conf and see where that leads me.

Are you guys interested in the results?
 
Old 12-06-2022, 02:21 PM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,627

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556

It might be what fatmac says, since the BSD version definitely runs from RAM, but it also persists settings, so perhaps you need to manually "commit" the config changes in some fashion. If so, there's a fair chance that process is described in the TrueNas documentation.

Alternatively, it could be the way you're running it in the VM - how specifically are you doing that?

 
Old 12-06-2022, 07:06 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
A quick search turned up discussions like this on the community forum.

Broken by design - the Scale heritage as mentioned in the OP. Looks like the (only) solution is to manage it by pre/post init scripts referencing scripts in your private pools.
 
Old 12-08-2022, 04:42 AM   #6
linuxiscoolerthaniam
LQ Newbie
 
Registered: Dec 2022
Posts: 13

Original Poster
Rep: Reputation: 0
great news

So I have some great news.
Changes that I make to the root home folder ~ do persist after a reboot.
So I created a ~/wireguard/wg0.conf
and can happily start and stop it using wg-quick up ~/wireguard/wg0.conf.

The only issue now is that I can't auto start the wireguard connection using

systemctl enable wg-quick@wg0

because the /etc/wireguard/wg0.conf does not exist.

Does anyone have a suggestion on how to auto start the wireguard interface after a reboot?

Other than that it's nice to be able to break an appliance and make it behave. I like linux, albeit a bit intimidating from time to time this CLI.

@boughtonp, regarding the VM. I am running a proxmox (debian) OS which makes it relatively painless for new comers like my self to create VMs.
It's a rather mundane VM setup so I am not sure if we have a need to go into more details even though I am more than willing to do so in case we need it later down the line.
 
Old 12-08-2022, 11:16 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
It does not surprise me in the least that the designers of an appliance would build in some protection against changes to their software image. I would do the same.
 
Old 12-09-2022, 01:25 AM   #8
linuxiscoolerthaniam
LQ Newbie
 
Registered: Dec 2022
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs View Post
It does not surprise me in the least that the designers of an appliance would build in some protection against changes to their software image. I would do the same.
Yes of course. But in my case I wanted to have RASDaemon running and create a swatch to email me when ECC activity is being detected.
That has never been a feature of FreeNAS / TrueNAS as far I was able to figure out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Creating a Trash Directory for Linux on a TrueNAS NFS Share Drive jasonc3a Linux - Software 8 07-01-2022 03:15 PM
LXer: TrueNAS SCALE 22.02 Is a Game Changer in the Linux NAS Field LXer Syndicated Linux News 0 02-24-2022 09:12 AM
GUI or webUI tool for Linux like the TrueNAS dashboard? lleb Linux - General 5 09-13-2021 03:00 PM
LXer: TrueNAS isn’t abandoning BSD—but it is adopting Linux LXer Syndicated Linux News 1 06-05-2020 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration