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

    Automating VM configurations after mass VMware imports

    Scheduled Pinned Locked Moved XCP-ng
    9 Posts 3 Posters 272 Views 3 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.
    • MK.ultraM Offline
      MK.ultra
      last edited by

      Good morning,

      I am nearing the end of a thorough POC of XCP-NG as a potential VMware replacement. It ticks many boxes, although there are a few caveats of course, particularly integration with specific 3rd party software like Commvault.

      My primary concern though is that our VMs are requiring significant manual configuration post-V2V import. Here is what I am needing to do with them:

      -Set the VM network
      -Power on VM
      -Disable Secure Boot if enabled
      -Enable HA on VM
      -Mount ISO to install Xen Tools
      -Reboot
      -Reapply the network configuration within Windows

      Is all of this possible via XAPI? I am well-versed in PowerShell but I am a complete noob working with API calls.

      Thanks

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        Commvault should work out of the box with XCP-ng 🤔 (native support)

        Note: we have a powershell module for XO API

        MK.ultraM 1 Reply Last reply Reply Quote 0
        • MK.ultraM Offline
          MK.ultra @olivierlambert
          last edited by

          @olivierlambert said in Automating VM configurations after mass VMware imports:

          Hi,

          Commvault should work out of the box with XCP-ng 🤔 (native support)

          Note: we have a powershell module for XO API

          Hi Olivier,

          Commvault has significant limitations with Xen such as NBD only transport mode. For our infrastructure size, HotAdd or SAN transport is strongly preferred. Also, I have a ticket open with Commvault, I have thus far not been able to back up a VM with 2x 1.95 TB disks (I made a different thread about that). Lastly, since the Pool Master host is imported into Commvault as the "hypervisor" instead of XOA, if that particular host is down, the VM backups will all fail since they are configured for a single host.

          As for the PowerShell module, I ran through all the commands. I did not see anything for actually changing VM configuration in there, only basic start/stop/reboot stuff.

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            If you have some specific features you'd like to have in the Powershell module, feel free to ask our @Team-DevOps 🙂

            CyrilleC 1 Reply Last reply Reply Quote 1
            • CyrilleC Offline
              Cyrille Vates 🪐 DevOps Team @olivierlambert
              last edited by

              Hi,
              If you're familiar with Golang, I'm pretty sure the xenorchestra-go-sdk might be able to do what you want (except the network configuration within Windows, but for this you can use Ansible with Xen Orchestra Inventory plugin: read the blogpost.)

              The Powershell module is quite new, and we are working on improving it. Please let us know what you are expecting from it 🙂

              MK.ultraM 1 Reply Last reply Reply Quote 0
              • MK.ultraM Offline
                MK.ultra @Cyrille
                last edited by

                @Cyrille said in Automating VM configurations after mass VMware imports:

                Hi,
                If you're familiar with Golang, I'm pretty sure the xenorchestra-go-sdk might be able to do what you want (except the network configuration within Windows, but for this you can use Ansible with Xen Orchestra Inventory plugin: read the blogpost.)

                The Powershell module is quite new, and we are working on improving it. Please let us know what you are expecting from it 🙂

                Configuration of pool, host, and VM settings would be the primary things I'm used to accomplishing with PowerShell in VMware.

                1 Reply Last reply Reply Quote 1
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  Okay so let's try to prioritize what you need exactly 🙂 Can you do a list of the top 5 calls you'd like to have?

                  MK.ultraM 1 Reply Last reply Reply Quote 0
                  • MK.ultraM Offline
                    MK.ultra @olivierlambert
                    last edited by

                    @olivierlambert said in Automating VM configurations after mass VMware imports:

                    Okay so let's try to prioritize what you need exactly 🙂 Can you do a list of the top 5 calls you'd like to have?

                    Well, in terms of the specific goal outlined in the original post:

                    1. VM network assignment
                    2. VM disable/enable Secure Boot
                    3. VM configure HA
                    4. VM mount ISO from repository

                    In general:

                    1. Host patching
                    2. Host storage addition
                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO Offline
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      Thanks, this is helpful 🙂 We'll discuss that with the @Team-DevOps and try to get things implemented!

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