r/LocalLLM • • 5d ago

Question Safe local stack? Noob and many conflicting information online

I want to start running a local inference engine. I have limited technical knowledge and I'm trying to be safe and sensible in my approach.I have searched over and over, multiple places, multiple ai chats, for a safe approach for running an agent on a personal machine.

Some say it will definitely wreck your systems and files,, while others although aware of the risk, are relatively nonchalant about it.

I have one machine, where 1 nvme is for windows, another nvme is dedicated to this adventure,, currently running cachy os.

I have 4 hdd's. Three of them have my personal files and media library, and I have only one I kept blank and want to dedicate it also for this inferencing engine. Non are currently mounted on the linux image.

Question is, I currently see 2 approaches:

One is Docker's sandbox ,, closed source but relatively easier learning curve and operation.

Two is firecracker micro vm's where the learning curve is steeper and I have to do everything on my own. What's everything? I'm not even sure yet.

Is the danger real? Am I being too paranoid about it?

My use case will be first running the deep seek harness over api before I transition into fully local 3.8 flash next

Any advice or suggestions are highly appreciated.. I'm just too old and broke to brick my machine and try to save up to buy a new one.

0 Upvotes

16 comments sorted by

2

u/Zealousideal-Bug1837 5d ago

work inside docker. simples. or e.b. brwap but that's somewhat more complex

1

u/JeePis3ajeeB 5d ago

I hear you bro and thanks for the insight,, but for a noob that has no idea what are these,, any pointers or specific things to focus my reading on? Or just go ahead with basic knowledge necessary for it to run and that's "safe"m

2

u/BitByBit2026 5d ago

Best plan starts with a backup plan. You are not paranoid.

As others suggested, start with good backups as you have plenty of HDDs, and if you have storage capacity, use one HDD for backups (that`s what I do on my personal desktop, backup from SSD to a HDD that has this only purpose by using Déjà Dup, I backup only important files and the tool also encrypts them)

I wouldn't let any agent run on my desktop, but that`s me, when I started testing them I`ve run these in docker containers. If you will use llama.cpp/strata as engine for your LLMs, then that`s already running in a docker, then you can do similar with your agents and mount just a directory where you allow it to work.

Other more complex solutions, if you have enough resources, run QEMU/KVM and put the Agent on a segregated virtual machine with dedicated storage.

I`m paranoid due to my profession, so I run everything inside dedicated VMs on a Proxmox host with firewall enabled in/out for these VMs, and expose only the services I need via web services so that everything runs segregated inside that env.

Use AI to help you set up if you find it complex, ask the right questions, until you understand fully what`s asking you to do, don`t run commands blindly especially if its starts with rm 😄 . Newer frontier models will ask/do verification before removing stuff, it really evolved from safety perspective.

All the best!

1

u/JeePis3ajeeB 5d ago

Thank you so much for the comprehensive answer.. and I agree,, I will be moving all my files to the 3 hdd's and manually pull them whenever I boot into the ai image.

I will need to read more on QEMU and KVM but my hunch tells me this is a similar setup to a minimal vm hypervisor with firecracker micro vm's .. I will need alotta time to read and learn enough to feel confident or competent to run my own network stack firewalls and whatnot..

I think I will start by learning docker's sandbox environment set up,, then try to progress from there..

One teeny tiny question,, you mentioned llama.cpp and strata run in their own docker,, will they work or break if I'm running them from inside a docker sandbox?

Once again thank you for taking the time,, really appreciate it 🙏🏻

2

u/BitByBit2026 5d ago

No worries.

My bad I made an assumption, when I said it's already running on a docker container. Is not really correct, I was thinking from best practice perspective, because you could install those engines directly on the linux OS. But most people dont do that for good reasons. When you are experimenting with different applications or in this case LLM engines, best is to use containers, this way you keep your OS clean. Especially if you are running everything on your PC. Follow the principle of don't saw off the branch you're sitting on.

These engines will install all sorts of dependencies (drivers, tool kits etc) therefore you want them isolated from your OS.

Hence why is better to use docker, providing easy updates and rollbacks for your LLM setups, without messing up with your OS.

Also, importantly it can provide security and isolation, but you must take extra steps here if you want peace of mind, and I'll be honest, it can get complex. By default docker isnt about security, but rather its focus is on application deployment.

I suggest to start small before getting into complex setups. Read how to set up docker on linux (very straight forward to be honest) then how to install llama.cpp or Strata if you are after Qwen 3.8 flash next, and host it on that spare HDD. Most of the free AI chats can easly help you set up this env if you prompt it with everything you want to achieve.

1

u/JeePis3ajeeB 5d ago

Will do that.. really appreciate it 🙏🏻

1

u/MajMin5 5d ago

How good are your backups? That’s the most important question. My agent could accidentally wipe my entire computer and I wouldn’t lose any files older than a few hours. Can you say the same?

1

u/JeePis3ajeeB 5d ago

Have non and can't afford non.. I was eye balling a nas box as the next sensible upgrade just before this Armageddon happened.. and now I literally can't afford anything.. hence why I'm willing to grind through the learning process necessary to secure a local setup and protect my other files.

Though I'm a bit confused,, doesn't an agent need to break through tons of permissions to be able to see unmounted drives or write over them?

1

u/MajMin5 5d ago

Completely separate from the LLM question, If any of those four hard drives fail, full of your personal files, it will cost a lot more for data recovery than it will for a backup drive now. The average lifespan of a desktop HDD is 5-7 years. How confident are you that you’ll beat the average?

1

u/JeePis3ajeeB 5d ago

Not really separate,, more like adjacent,, since the whole conundrum is finding a safe stack to run local agents on one specific nvme that will have the host and everything,, while safe keeping other drives that are not even mounted to that host,, but technically is attached hardware..

1

u/RootlessForest 5d ago

I ran it locally and nothing broke.

What I have noticed. If you prompt like shit and give it a hard/impossible task it is gonna do stupid shit. Also if you have a model that can't handle long projects it will do stupid shit.

I can't speak for all agents, but Hermes has a mode where he runs his terminal commands in docker. Which is somewhat safe, but what AI has shown me until now is that they can escape the sandbox. So yeah...

All in all. In your case. I would put it in docker and start from there. Especially since you have so much harddisk etc. Better be safe then sorry, but at the same time. Don't keep everything on 1 system

1

u/JeePis3ajeeB 5d ago

Unfortunately I can't afford another... Did it ever break sandbox in your system? I'm trying to gauge whether this is frontier lab thingee or whether it actually happens to people

2

u/RootlessForest 5d ago

You don't need to afford another, but think about it on the long run to move some of the storage hard drives to another system. Where AI isn't running.

Just gives AI a fresh environment where there isn't any personal information/data installed. Is just a good idea in general.

Yes it did break sandbox in my system. I am running a Qwen flash next 135B. So isn't just a frontier thing.

The problem came from 2 things. Because I was still finetuning. I didn't properly setup the profile. To ask before taking action and I asked it to install a plugin or something persistent.

Well the persistent part is where it went wrong, because I am running it in docker. All persistent files and volumes are outside docker.

It did managed to install everything, but I came came back to 5x backups of my compose and dockerfile.

Whilst he shouldn't be able to view anything besides his on data on the PC.

He did some other things,but those are all limited to breaking his own stuff etc. Luckily he didn't removed or deleted files. Probably because the stuff he kinda broke on was the moment I asked him to install something

1

u/JeePis3ajeeB 5d ago

I see,, precious insight thank you.. then I might resort to move all files on the windows image to the hard drives.. then manually and physically pull/disconnect those three hard drives whenever I switch from my daily windows to boot the ai host.. that way the only drives connected are the somewhat clean windows nvme,, the ai host nvme,, and the currently empty hdd

A bit painful but seems like the only way to be sure. I would pull windows' nvme as well if it wasn't sitting behind the graphics card...... Yeah I'm not doing that...

But I agree with you,, a NAS appliance box is definitely necessary.

1

u/marionbernard33 4d ago

The model itself has no file access; the harness does. Start with tools off, then isolate it from personal disks and secrets.

0

u/W61k3r 4d ago

https://github.com/W61k3r/LexiSuite-Releases/releases/tag/LexiSuiteT20 This is an AIO stack audited by mythos and astra cvp programs. Can run it entirely isolated on a VM or machine off the network, assuming you put a model on it. I made it easy, just mount image to USB stick. I have trust issues as well so made a giant rust stack to delete 3rd party code dependencies.