Hi, I have a home server (basically a NAS) currently running Debian. Basically it’s configuration is as follows

  • debian host running 3 VMs

  • debian running inside each VM as docker host

I just manually install KVM on the host then docker on each VM after creating each of them. I documented the process so I know how to replicate it in case I need to rebuild.

I now dream of being able to automate the rebuild process using config files. I know this is done using Ansible.

But I’ve now heard of Talos… (A thin layer for kubernetes) and intrigued. But I suppose I need a setup for the VM host to achieve automation through config files…

What setup are you guys using?

Thank you.


Thanks for all your suggestions! I’ve chosen to go with just bash scripting (given my simple setup) and keep the setup as it is… Just gotta learn bash and virsh :)

Scrubbles
link
fedilink
English
32M

Personally, if you’re considering it already, kubernetes might be something to look into. It’s a lot. Like a lot to learn. But I can honestly say I could do it for a job now with how much I’ve learned. Then it’s less about how to set up machines and more about just reapplying your infrastructure.

Possibly linux
link
fedilink
English
5
edit-2
2M

~~Stop. Docker is not a hypervisor and shouldn’t be used as one.

Either use a docker compose file to do automated deployments or move to Proxmox and use host templates to deploy VMs which then can host docker.

There is zero reason to run KVM in docker.~~

Never mind, I misread. What you are looking for is Ansible. You can create a VM template that has your SSH keys configured and then you use Ansible to spin up a VM and do stuff instead the VM. I know how to do this under Proxmox but I have no idea how to do it under pure Debian. A lot of it is probably the same.

@ntn888@lemmy.ml
creator
link
fedilink
English
22M

Thanks… Just for clarification, you can use Ansible to control Proxmox as well… and automate the entire VM bring up?

Possibly linux
link
fedilink
English
42M

Yes

Proxmox is basically a VM management software that runs in a Debian install. You may be able to add it to your current install, but I am not certain about that.

@CaptSpify@lemmy.today
link
fedilink
English
42M

I just use a few shell scripts. Basically some simple bash scripts that do all the work after a fresh install.

Kubernetes/Ansible are great to learn, but are also more complicated for simple setups.

@ntn888@lemmy.ml
creator
link
fedilink
English
22M

haven’t thought about it. I guess I’ll learn some bash :)

BTW what is a good OS for the VM host? many here are running proxmox… would you recommend it for this purpose of bash automation to bring up VMs?

@CaptSpify@lemmy.today
link
fedilink
English
22M

I use Debian and Ganeti. I’ve not toyed with much else, so I dont know how they compare.

@ntn888@lemmy.ml
creator
link
fedilink
English
22M

thanks for the info… I’m thinking of sticking with just Debian (as my simple usecase) and use virsh commands…

Proxmox is built on Debian and is great. My second choice would just be plain Debian.

@ntn888@lemmy.ml
creator
link
fedilink
English
22M

Okay 👍 Thanks for your suggestions. Think I’ll just stick with Debian 🙂

AmbiguousProps
link
fedilink
English
1
edit-2
2M

I’m now using Fedora CoreOS which can be deployed from config files. It’s really neat to be able to define everything the way you need it and just start up the VM with no further config necessary. I’m using podman to manage my services.

@Hule@lemmy.world
link
fedilink
English
42M

When I change my server, I always start from scratch, hoping that it will come out better.

I don’t know what I’m expecting, it was always working well…

Create a post

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!

  • 1 user online
  • 171 users / day
  • 422 users / week
  • 1.04K users / month
  • 3.77K users / 6 months
  • 1 subscriber
  • 3.9K Posts
  • 79.1K Comments
  • Modlog