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

    VM’s Slow booting

    Scheduled Pinned Locked Moved Compute
    26 Posts 8 Posters 7.3k Views 7 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.
    • B Offline
      bassopt @imaginapix
      last edited by

      @imaginapix

      Well mini was on initramfs. Boot part. I never used cloud init for anything

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

        Cloudinit is loading many things, so I wouldn't be surprised it makes the boot longer. Can we check with a default/basic Ubuntu server install and give the timing?

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          imaginapix @olivierlambert
          last edited by

          @olivierlambert

          Installed a new 22.04.2 Server in default installation and removed cloud-init. Hitting enter in grub to login screen 6 sec. on the same host as noted above

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

            Let see in the community around if they have a similar experience. My impression is 6 seconds is relatively fine.

            M gskgerG 2 Replies Last reply Reply Quote 0
            • M Online
              manilx @olivierlambert
              last edited by

              @olivierlambert I have one Ubuntu server 22.04, fresh install and it has had this "slow" booting (black screen foir a few seconds) since the install. Doesn't bother me much. While all my Debian 12 boot instantly without this hang.

              I 1 Reply Last reply Reply Quote 0
              • I Offline
                imaginapix @manilx
                last edited by

                @manilx

                Could this be the grub menu and it's wait timer? I had it once that I did no saw grub but the system bootet fine. In the end grub was the black screen and depending on the wait interval it stayed black.

                This might be a thing with how the console handles image grabbing during boot

                M 1 Reply Last reply Reply Quote 0
                • M Online
                  manilx @imaginapix
                  last edited by

                  @imaginapix Don't know enough of this. I only use debian and know my way around.
                  The ubuntu VM was just a test....

                  Here is a video of the VM booting: https://www.dropbox.com/scl/fi/z7urjkcubq8vnjjbcs9nn/ScreenShot-2024-04-19-at-18.01.45.mov?rlkey=iufbqfqy7758pke3hsiv58zpt&dl=0

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    bassopt @manilx
                    last edited by

                    @manilx I can tell you this is extremely dois compare to proxmox for exemple. My Debian VMs with one CORe on a i5-12400 boot in half of that time.

                    1 Reply Last reply Reply Quote 0
                    • Tristis OrisT Online
                      Tristis Oris Top contributor
                      last edited by

                      Ubuntu 20-22 boot is slow by design. It may take 1-2min.
                      Debian or any rhel boot in 20sec.

                      1 Reply Last reply Reply Quote 1
                      • gskgerG Offline
                        gskger Top contributor @olivierlambert
                        last edited by gskger

                        @olivierlambert Out of curiosity, I carried out a few tests this weekend. My tests are not really scientific and must be taken with a grain of salt. I started with the bare metal installs, followed by the VM installs on the hypervisors. The current server ISOs have been used for OS or hypervisor installs. All OS or hypervisor were updated, but otherwise no tweaking was done (e.g. remove snap from Ubuntu).

                        The tests were carried out manually by starting the (bare metal/virtualized) OS and taking the time until the login prompt appeared. Where necessary, the grub menu was confirmed manually as quickly as possible. Up to three runs were averaged. The host is a HP ProDesk 400 G6 with a i5-10500T CPU, 32GB RAM and a KIOXIA 512GB M.2 NVMe SSD (KXG70ZNV512G). VMs had 2 CPU, 4 GB RAM and 32 GB storage.

                        Host OS Time to login [BIOS/EUFI in s]
                        bare metal Ubuntu 22.04.4 -/39
                        Debian 12.5 -/20
                        XCP-ng 8.2.1 Ubuntu 22.04.4 28/12
                        Debian 12.5 18/8
                        Proxmox 8.1.4 Ubuntu 22.04.4 12/15
                        Debian 12.5 10/10

                        Even if the differences are measurable, they don't have much significance for me in normal everyday operation. The result is still interesting though.

                        Edit: Added Time to login for EUFI boot on the hypervisors.

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

                          Thanks @gskger 🙂 Have you tried UEFI vs BIOS?

                          gskgerG 1 Reply Last reply Reply Quote 0
                          • ForzaF Online
                            Forza @bassopt
                            last edited by Forza

                            @bassopt said in VM’s Slow booting:

                            @olivierlambert hi, again!

                            Nah, as told before it’s on initramdisk. After loading grub. A Ubuntu test install I did freezes for almost 20 seconds there.

                            I do have some warnings when I boot xcp-ng regarding x-273 and x-297 .... would that cripple performance that much. ( consumer hardware )

                            Sounds like you have the wrong template. If you disable "quiet" option in grub (press e, then go to the kernel command line) you may see it is error out on enabling some hardware feature. I have seen it happen when trying to enumerate the CPUs. Have a look. You might be able to see in dmesg or journalctl too.

                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              bassopt @Forza
                              last edited by

                              @Forza I don’t use xcp-ng anymore. I have a machine i can install it to try out but I haven’t had time lately.

                              1 Reply Last reply Reply Quote 0
                              • gskgerG Offline
                                gskger Top contributor @olivierlambert
                                last edited by gskger

                                @olivierlambert Just updated my post with the BIOS vs. UEFI Time to login. Both hypervisors are equally fast with EUFI, although Ubuntu 22.04 on proxmox is now slightly slower. But I guess that is not realy relevant.

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

                                  That's interesting though 🙂

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