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

    List VMs set to autostart

    Scheduled Pinned Locked Moved Management
    6 Posts 2 Posters 212 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
      McHenry
      last edited by

      When I restart my host there are a number of CR VMs that auto start and to avoid conflicts with the production VM I quickly stop them however I do not know their names to change their auto start setting.

      Is there a way to list the VMs that are set to auto start to avoid going through them one by one?

      1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        Hi,

        The filter other:auto_poweron:"true" will show you all VMs known to XO that are set to auto-start. AFAIK, VM replicas created via CR shouldn't auto-start when the hosts are rebooted. Are you running XOA or XO from sources? What version / commit?

        Dan

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          McHenry @Danp
          last edited by

          @Danp

          Thank you. Wow, I have 36 set to power on when the host starts!

          Can these be bulk updated to false? Easier to set all to false and then update on three to true.

          9fd92138-8492-4b21-838e-379129e4da80-image.png

          XOA 5.98.1

          DanpD 1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team @McHenry
            last edited by

            @McHenry Even though these VMs have auto-start enabled, the auto-start should be blocked if they were created via CR. This is why I wanted more information on how they were created.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              McHenry @Danp
              last edited by

              @Danp

              Thanks again. So I better understand, what makes a VM auto start or block auto start. Is it the CR tag?

              I ask as if I need to fallback to one of these VMs I will want it to then auto start.

              DanpD 1 Reply Last reply Reply Quote 0
              • DanpD Offline
                Danp Pro Support Team @McHenry
                last edited by

                @McHenry Check the contents of the VM's blocked-operations parameter. This is from one of my VMs --

                # xe vm-param-get param-name=blocked-operations uuid=e764e6fb-5e18-35dd-cfb6-ddf83d32e1fd
                start_on: Start operation for this vm is blocked, clone it if you want to use it.; start: Start operation for this vm is blocked, clone it if you want to use it.
                

                Both the start and start_on operations should be blocked on CR created replicas.

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