92
VMs or containers? (lemmy.world)
submitted 1 year ago by rpn@lemmy.world to c/selfhosted@lemmy.world

I'm thinking about starting a self hosting setup, and my first thought was to install k8s (k3s probably) and containerise everything.

But I see most people on here seem to recommend virtualizing everything with proxmox.

What are the benefits of using VMs/proxmox over containers/k8s?

Or really I'm more interested in the reverse, are there reasons not to just run everything with k8s as the base layer? Since it's more relevant to my actual job, I'd lean towards ramping up on k8s unless there's a compelling reason not to.

you are viewing a single comment's thread
view the rest of the comments
[-] brad@toad.work 14 points 1 year ago

I, personally, haven't done a whole lot of VM work but I do run a metric ass-ton of containers. I can spool up servers in docker compose on absolutely dogshit hardware and have it run serviceably. Also, the immutability of the container OS is really nice for moving things around and/or getting them set up quickly.

[-] stark@qlemmy.com 3 points 1 year ago

Where did you learn so much about Docker? Having a server at home, I'm more inclined to spin up a VM. I would like to learn more about Docker.

[-] brad@toad.work 7 points 1 year ago

If I'm honest, I've stumbled nose-first through pretty much everything I know. I am never afraid to break things as long as I learn from it.

[-] soldersmoker@reddthat.com 2 points 1 year ago* (last edited 1 year ago)

Just get started somewhere. I ran traditional VMs for most things before and I would never go back unless it was necessary for something.

Easiest way is just to start using Docker for some service you're hosting that has a public image available and go from there. If you want a more visual approach there's stuff like Portainer you can use too.

Also get started early on with docker compose, it makes it much easier to organize your container configs.

this post was submitted on 04 Jul 2023
92 points (97.9% liked)

Selfhosted

39700 readers
686 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS