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 :)

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    18 days ago

    ~~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.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 days ago

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