I’m looking to use KVM/QEMU on my Linux computer.

Are there scripts that help me automate deploying the same VM builds I’ve done before – with the same RAM, HDD, networking, etc… settings.

I’ve found the following but I’m not sure if there are better options:

https://github.com/doccaz/kvm-scripts

https://github.com/doccaz/kvm-scripts

Would Ansible be a better option for this?

  • moonpiedumplings@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    3 hours ago

    My recommendation is to use an abstraction layer that runs qemu-kvm under the hood and automate that. Some people have mentioned libvirt, but Incus is another good option.

  • Botzo@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    It sounds like you want to create a vm template image.

    Some options:

    Both virsh and virt-manager have tools for managing libvirt xml files that you can turn into a template to use for launching additional images.

    Proxmox and ovirt both have template concepts and APIs you can interact with for automation.

    If you’re looking to create a golden image or just automate configuration, virt-clone, ansible, puppet, packer, and even pxe boot are good options depending on the methods you prefer.

    There are so many well-established ways to approach this problem domain. Just don’t get decision paralysis. There isn’t a best either.

    • moonpiedumplings@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      Have you used ovirt? It’s currently being maintained by Oracle after Red Hat gave it up.

      I’ve been meaning to try it, but the documentation is dense and hard to get through, and I unironically find the openstack install instructions more approachable in some ways…