XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Automatic Xen-Orchestra CE installation

    Scheduled Pinned Locked Moved Xen Orchestra
    2 Posts 2 Posters 3.9k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Momi_V
      last edited by

      Hello fellow xcp-ng users. After a few weeks of getting to know the system and testing stuff out I'd like to share something I looked for but couldn't really find:

      An easy way to get Xen-Orchestra running from just the xe cli.
      https://github.com/HPPinata/Xen-Orchestra-Install

      So I just made my own. This script creates a VM running openSUSE MicroOS to start a decent docker image I found, bringing up Xen-Orchestra commuity edition completely automatically from a newly installed XCP-ng Server without any other management tools.

      Due to choosing a transactional OS as the container host it should be virtually manitenance free and update automatically (though to apply those updates a reboot of the VM is required).

      All of the configuration happens on the Hypervisor for extra flexibility, but this requires the script to install (and later remove) a few unofficial packages: (genisoimage, qemu-img and pv).
      I made this choice to allow for easier customisation (and troubleshooting while creating this) compared to a baked VHD file (like the only other cli to orchestra script i could find uses) but this definitely is not an officially supported use case.

      The script works, but currently isn't doing any error checking and makes a few assumptions:

      • The Host is connected to the Internet
      • A local ISO SR can be created at /var/opt/xen/ISO_Store
      • A VM with 1GiB-4GiB of Ram and a 32GiB disk (on the default SR) can be created
      • The VM can connect to the default bridge network (xenbr0)
      • An IP is assigned to the VM by a DHCP server in your network
      • The initial configuration inside the MicroOS VM happens in 5 minutes or less (ca. 3 min. on my 50 MBit connection, can be changed in the script)

      Feedback is welcome, though this is a side project and it currently has all the functionality I need/wanted it to have.
      Greetings from Germany and a huge thanks to the developers, definitely get XOA if you can afford it (or use XCP-ng for anything critical) and have a good day.

      A 1 Reply Last reply Reply Quote 1
      • A Offline
        Andrew Top contributor @Momi_V
        last edited by

        @Momi_V Thanks for providing details. New documented setups are helpful to others. I'm using this installer script on a Debian 11. (Thanks to @ronivay!). Not exactly a quick hands off deployment but it works well for me.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post