ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    KVM Virtual Machine Boot Order

    IT Discussion
    virtualization kvm boot order
    9
    45
    9.4k
    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.
    • ObsolesceO
      Obsolesce @DustinB3403
      last edited by

      @dustinb3403 said in KVM Virtual Machine Boot Order:

      Just as a note, this problem of startup order appeared to have been an issue since the inception of KVM and even before. It's as if the devs simply thing a startup delay or manually starting your VM's is sufficient. . .

      It's really not a big deal though...

      If you're a smaller shop, it takes no time to manually start your VMs.

      If you're huge, you just set them all to start at boot because you have entire hosts dedicated to one type of VM and it doesn't matter in what order.

      If medium sized, it's still not a big deal. I don't mind anyways. If I reboot the main host, I'm there watching it anyways. So it's not an issue to start up the DHCP server first, and a few other initial VMs, then the rest in one shot.

      DustinB3403D 1 Reply Last reply Reply Quote 0
      • DustinB3403D
        DustinB3403 @Obsolesce
        last edited by

        @obsolesce but it could be an issue if your DHCP server starts after other VM's. Or a database server that is dependant on other VM's being up and accessible first.

        There is truly a case for needing a startup priority here.

        I wonder what Amazon does. . .

        ObsolesceO 1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce @DustinB3403
          last edited by Obsolesce

          @dustinb3403 said in KVM Virtual Machine Boot Order:

          @obsolesce but it could be an issue if your DHCP server starts after other VM's. Or a database server that is dependant on other VM's being up and accessible first.

          There is truly a case for needing a startup priority here.

          I wonder what Amazon does. . .

          My point was that, Amazon doesn't have DB, DHCP servers, and other app VMs that depend on them on the same hosts.

          And those companies who do are small enough to just do it manually with minimal effort.

          I have a host with 70 VMs on it, it takes seconds to start the AD and DHCP server first, then a few database servers.

          DustinB3403D 1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403 @Obsolesce
            last edited by

            @obsolesce said in KVM Virtual Machine Boot Order:

            @dustinb3403 said in KVM Virtual Machine Boot Order:

            @obsolesce but it could be an issue if your DHCP server starts after other VM's. Or a database server that is dependant on other VM's being up and accessible first.

            There is truly a case for needing a startup priority here.

            I wonder what Amazon does. . .

            My point was that, Amazon doesn't have hosts with DB servers and DHCP servers and other apps that depend on them on the same hosts.

            And those companies who do are small enough to just do it manually with minimal effort.

            I have a host with 70 VMs on it, it takes seconds to start the AD and DHCP server first, then a few database servers.

            How are you starting the remaining 60 VM's?

            ObsolesceO 1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce @DustinB3403
              last edited by Obsolesce

              @dustinb3403 said in KVM Virtual Machine Boot Order:

              @obsolesce said in KVM Virtual Machine Boot Order:

              @dustinb3403 said in KVM Virtual Machine Boot Order:

              @obsolesce but it could be an issue if your DHCP server starts after other VM's. Or a database server that is dependant on other VM's being up and accessible first.

              There is truly a case for needing a startup priority here.

              I wonder what Amazon does. . .

              My point was that, Amazon doesn't have hosts with DB servers and DHCP servers and other apps that depend on them on the same hosts.

              And those companies who do are small enough to just do it manually with minimal effort.

              I have a host with 70 VMs on it, it takes seconds to start the AD and DHCP server first, then a few database servers.

              How are you starting the remaining 60 VM's?

              Select-all or shift+click, right-click on them, click start.

              Edit, this is on Hyper-V.

              DustinB3403D 1 Reply Last reply Reply Quote 1
              • DustinB3403D
                DustinB3403 @Obsolesce
                last edited by DustinB3403

                @obsolesce that's annoying. . .

                Edit: still annoying but doesn't Hyper-V have startup priority?

                ObsolesceO matteo nunziatiM 2 Replies Last reply Reply Quote 0
                • ObsolesceO
                  Obsolesce @DustinB3403
                  last edited by

                  @dustinb3403 said in KVM Virtual Machine Boot Order:

                  @obsolesce that's annoying. . .

                  Not really, it's once a month at worst.

                  1 Reply Last reply Reply Quote 0
                  • matteo nunziatiM
                    matteo nunziati @DustinB3403
                    last edited by

                    @dustinb3403 said in KVM Virtual Machine Boot Order:

                    @obsolesce that's annoying. . .

                    Edit: still annoying but doesn't Hyper-V have startup priority?

                    No it hasnt until I checked 6 months ago. Only way is build a delay schema by hand and assign delays to VM batch start them in layers

                    DustinB3403D ObsolesceO 2 Replies Last reply Reply Quote 1
                    • DustinB3403D
                      DustinB3403 @matteo nunziati
                      last edited by

                      @matteo-nunziati said in KVM Virtual Machine Boot Order:

                      @dustinb3403 said in KVM Virtual Machine Boot Order:

                      @obsolesce that's annoying. . .

                      Edit: still annoying but doesn't Hyper-V have startup priority?

                      No it hasnt until I checked 6 months ago. Only way is build a delay schema by hand and assign delays to VM batch start them in layers

                      Well. . . that's just bad. . .

                      1 Reply Last reply Reply Quote 0
                      • matteo nunziatiM
                        matteo nunziati
                        last edited by

                        The only actual need I got was a vm expecting a postgres to be up. I delayed such a vm. But yes: complex dependency schemas are a PITA but also out of the smb standard scenario imho.

                        1 Reply Last reply Reply Quote 0
                        • matteo nunziatiM
                          matteo nunziati @black3dynamite
                          last edited by

                          @black3dynamite said in KVM Virtual Machine Boot Order:

                          Uncomment START_DELAY=0 in /etc/sysconfig/libvirt-guests file.

                          https://access.redhat.com/discussions/685243
                          0_1533138645107_8657357f-89b9-4565-a0ba-c6a64389a585-image.png

                          0_1533138783472_51e96b88-60ae-443b-8cbc-2c3ebac10574-image.png

                          This will kill parallel startup adding a delay between each vm boot

                          dafyreD 1 Reply Last reply Reply Quote 2
                          • dafyreD
                            dafyre @matteo nunziati
                            last edited by

                            @matteo-nunziati said in KVM Virtual Machine Boot Order:

                            @black3dynamite said in KVM Virtual Machine Boot Order:

                            Uncomment START_DELAY=0 in /etc/sysconfig/libvirt-guests file.

                            https://access.redhat.com/discussions/685243
                            0_1533138645107_8657357f-89b9-4565-a0ba-c6a64389a585-image.png

                            0_1533138783472_51e96b88-60ae-443b-8cbc-2c3ebac10574-image.png

                            This will kill parallel startup adding a delay between each vm boot

                            I think that's the point, though. Some of the VMs are starting before the other VMs that they need to work properly.

                            matteo nunziatiM 1 Reply Last reply Reply Quote 1
                            • matteo nunziatiM
                              matteo nunziati @dafyre
                              last edited by

                              @dafyre nope starting order is still 'random'

                              1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403
                                last edited by

                                I still find it odd that there isn't a start priority or weight setting to apply to each VM so the hypervisor could do this automatically. . .

                                1 Reply Last reply Reply Quote 2
                                • DustinB3403D
                                  DustinB3403
                                  last edited by

                                  XenServer and XCP-ng both have this option to set for individual VM's under "Start options" under properties of each VM.

                                  By default everything is "0" aka start immediately if configured for Autostart/HA. But it can be changed easily to 1, 2 3 etc and the VM's will boot in that order.

                                  matteo nunziatiM 1 Reply Last reply Reply Quote 2
                                  • ObsolesceO
                                    Obsolesce @matteo nunziati
                                    last edited by Obsolesce

                                    @matteo-nunziati said in KVM Virtual Machine Boot Order:

                                    @dustinb3403 said in KVM Virtual Machine Boot Order:

                                    @obsolesce that's annoying. . .

                                    Edit: still annoying but doesn't Hyper-V have startup priority?

                                    No it hasnt until I checked 6 months ago. Only way is build a delay schema by hand and assign delays to VM batch start them in layers

                                    Hyper-V had startup priority since 2012... fully configurable... startup action and startup delay.

                                    matteo nunziatiM JaredBuschJ 2 Replies Last reply Reply Quote 0
                                    • matteo nunziatiM
                                      matteo nunziati @Obsolesce
                                      last edited by

                                      @obsolesce said in KVM Virtual Machine Boot Order:

                                      @matteo-nunziati said in KVM Virtual Machine Boot Order:

                                      @dustinb3403 said in KVM Virtual Machine Boot Order:

                                      @obsolesce that's annoying. . .

                                      Edit: still annoying but doesn't Hyper-V have startup priority?

                                      No it hasnt until I checked 6 months ago. Only way is build a delay schema by hand and assign delays to VM batch start them in layers

                                      Hyper-V had startup priority since 2012... fully configurable... startup action and startup delay.

                                      You mean you can use action to wait for another vm to be up and running? If so I ignored it. Delay is mostly a workaround as no one really knows when a dependency will be ready!

                                      1 Reply Last reply Reply Quote 1
                                      • matteo nunziatiM
                                        matteo nunziati @DustinB3403
                                        last edited by

                                        @dustinb3403 but this will include "wait until vm A is operational/service B is available"?

                                        DustinB3403D 1 Reply Last reply Reply Quote 0
                                        • DustinB3403D
                                          DustinB3403 @matteo nunziati
                                          last edited by

                                          @matteo-nunziati said in KVM Virtual Machine Boot Order:

                                          @dustinb3403 but this will include "wait until vm A is operational/service B is available"?

                                          The hypervisor has no way of knowing what the VM does, so no. It just says start this VM first, then that one, and then that one etc.

                                          matteo nunziatiM 1 Reply Last reply Reply Quote 0
                                          • matteo nunziatiM
                                            matteo nunziati @DustinB3403
                                            last edited by

                                            @dustinb3403 said in KVM Virtual Machine Boot Order:

                                            @matteo-nunziati said in KVM Virtual Machine Boot Order:

                                            @dustinb3403 but this will include "wait until vm A is operational/service B is available"?

                                            The hypervisor has no way of knowing what the VM does, so no. It just says start this VM first, then that one, and then that one etc.

                                            At this level hyperv acts like xen. Anyway pre post hooks could be available...

                                            matteo nunziatiM 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post