There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

[Question] for running Samba on a Debian host, what's the better solution? Native, LXC container, or VM?

My environment at this point is a (freshly installed) Debian server with ZFS pools. I would like to use one of those ZFS pools to store and share files with Samba.

My question is which is better from efficiency, effort, and security (for the host) perspectives? Running it natively on the bare-metal Debian host, running it in an LXC container, or running it in a VM? Why do you think one way is better than the others? I’m pretty familiar with VMs, but don’t have much experience or knowledge of containers.

This is what I’m thinking at the moment, but I would appreciate any feedback:

  1. Natively: no resource overhead, medium admin overhead (manual Samba configuration), least secure(?)
  2. LXC: small resource overhead, least admin overhead (preconfigured containers?), possibly more security than native(?)
  3. VM: most resource overhead, most admin overhead (not only configuration, but also managing virtual disk [including snapshots, backups, etc]), most secure
friend_of_satan ,

Personally I run almost everything in docker, with the launch configs stored in git, backed by zfs. This means that if the host dies I can import that zpool, docker compose up -d and be done with it.

I suppose the same could be done with VMs or LXC. The main thing is to keep it all separate from the bare metal OS, and in a technology that allows quick provisioning from a launch config of some sort, be it makefile, shell script, docker-compose, or whatever.

MangoPenguin ,
@MangoPenguin@lemmy.blahaj.zone avatar

I do LXC, just seems easier since I can mess with things and use Cockpit or whatever to manage it, without worrying about the host system.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines