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

    Imported VM Starts but Does Not Initialize the Display

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    51 Posts 8 Posters 3.2k 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.
    • M Online
      manilx @kagbasi-ngc
      last edited by

      @kagbasi-ngc Don't do nesting! It's not to be trusted even when it seems to work.

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        kagbasi-ngc @manilx
        last edited by

        @manilx Yeah, not doing it in production, just in a test environment. Plus I only did it because I actually found a write-up by the Vates team on how to get it done, which confirmed to me that while they don't recommend it for production, they understand that it has some merit in a testing environment and want to see it working.

        That said, I definitely hear your admonition and would never do it in a production setting.

        1 Reply Last reply Reply Quote 1
        • stormiS Offline
          stormi Vates 🪐 XCP-ng Team
          last edited by

          I'm not spooked, I just think it's the relevant error message we need to understand :).

          Since this is a test pool, could you make it use the debug version of OVMF?

          ln -sf OVMF-debug.fd /usr/share/edk2/OVMF.fd 
          

          Then attempt to start the VM again, and get /var/log/daemon.log and /var/log/xensource.log once again.

          K 2 Replies Last reply Reply Quote 0
          • K Offline
            kagbasi-ngc @stormi
            last edited by

            @stormi Glad you're not spooked.... 👍

            I'll enable the debug mode as you'd instructed and grab the logs for you shortly.

            1 Reply Last reply Reply Quote 0
            • K Offline
              kagbasi-ngc @stormi
              last edited by

              @stormi Hi there, as requested, here are the two logs:

              • daemon.log
              • xensource.log

              I started the VM at timestamp Dec 13 13:54:59 and stopped it at Dec 13 13:55:59.

              Now, is deleting the symbolic link created above all that is necessary to reverse the debug mode?

              stormiS 1 Reply Last reply Reply Quote 0
              • MefosheezM Offline
                Mefosheez @stormi
                last edited by

                @stormi @kagbasi-ngc I have this same error in a separate thread, however, there is no nesting involved. from my limited knowledge, it seems like xcp is not seeing the available memory resources during boot and fails. if I migrate a running VM to the same host that gives me this error, it will operate as expected. but, after reboot... failure to launch.

                https://xcp-ng.org/forum/topic/10083/uefi-guests-not-loading-console?_=1734014269146

                @olivierlambert Thanks for your help so far.

                1 Reply Last reply Reply Quote 1
                • MefosheezM Mefosheez referenced this topic on
                • stormiS Offline
                  stormi Vates 🪐 XCP-ng Team @kagbasi-ngc
                  last edited by

                  @kagbasi-ngc Looks like we missed something, as the log indicates it loaded OVMF-release.fd:

                  Dec 13 13:54:59 VMH01 xenguest-2-build[8345]: Loaded OVMF from /usr/share/edk2/OVMF-release.fd
                  

                  We'll come back to you with a better test procedure.

                  For now I just have a quick and dirty one, consisting in overwriting the release file with the debug one:

                  cp /usr/share/edk2/OVMF-debug.fd /usr/share/edk2/OVMF-release.fd
                  

                  You can revert this change with yum reinstall edk2.

                  K 1 Reply Last reply Reply Quote 0
                  • K Offline
                    kagbasi-ngc @stormi
                    last edited by

                    @stormi Sorry for the delayed reply. I did as you requested, and below are the resulting log files. I started the VM at timestamp Dec 17 14:43:34 and stopped it about 2 minutes later.

                    • daemon.log
                    • xensource.log

                    If I can be of assistance, don't hesitate to ask please. Thank you.

                    stormiS 2 Replies Last reply Reply Quote 1
                    • stormiS Offline
                      stormi Vates 🪐 XCP-ng Team @kagbasi-ngc
                      last edited by

                      @kagbasi-ngc @Mefosheez We're trying to find developer time to diagnose the cause, but it's not the best time of the year, so I can't promise anything on delays.

                      K MefosheezM 3 Replies Last reply Reply Quote 0
                      • stormiS Offline
                        stormi Vates 🪐 XCP-ng Team @kagbasi-ngc
                        last edited by

                        @kagbasi-ngc Does your VM have a vTPM? If so, could you try without?

                        K 1 Reply Last reply Reply Quote 0
                        • K Offline
                          kagbasi-ngc @stormi
                          last edited by

                          @stormi No worries at all, I understand.

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kagbasi-ngc @stormi
                            last edited by

                            @stormi Yes it does. I just deleted the VTPM and tried starting it, but no success. Still the same issue - can't initialize the display.

                            I also disabled Secure Boot, and got the same results.

                            1 Reply Last reply Reply Quote 0
                            • MefosheezM Offline
                              Mefosheez @stormi
                              last edited by

                              @stormi thanks for the feedback. no rush here. just let me know if I can help.

                              1 Reply Last reply Reply Quote 0
                              • MefosheezM Offline
                                Mefosheez @stormi
                                last edited by

                                @stormi I wanted to follow up. I saw a good number of patches available today, first updates since the issues started for me. I processed them, but this issue still seems persist.

                                I know this thread is about nested virt, and i don't want to derail that. this is where i had posted about the issue prior. I believe they are going to be tided to the same root. any help would be appreciated.

                                https://xcp-ng.org/forum/topic/10083/uefi-guests-not-loading-console?_=1734014269146

                                stormiS 1 Reply Last reply Reply Quote 0
                                • stormiS Offline
                                  stormi Vates 🪐 XCP-ng Team @Mefosheez
                                  last edited by

                                  @Mefosheez I forwarded internally. Feel free to ask again after a week if no answer comes.

                                  MefosheezM 1 Reply Last reply Reply Quote 0
                                  • MefosheezM Offline
                                    Mefosheez @stormi
                                    last edited by

                                    @stormi I marked it as a question about a week ago now. do you suggest making a new post as a question all together?

                                    stormiS 1 Reply Last reply Reply Quote 0
                                    • stormiS Offline
                                      stormi Vates 🪐 XCP-ng Team @Mefosheez
                                      last edited by

                                      @Mefosheez Marking a new post as a question will not be necessary. @anthonyper is the one working on what we think is the issue (a regression on the EDK2 package). I haven't heard of a fix yet, but it's in progress.

                                      MefosheezM 1 Reply Last reply Reply Quote 1
                                      • MefosheezM Offline
                                        Mefosheez @stormi
                                        last edited by

                                        @stormi thank you for the update. and @anthonyper for taking a look.

                                        1 Reply Last reply Reply Quote 0
                                        • anthonyperA Offline
                                          anthonyper Xen Guru
                                          last edited by

                                          Hi @kagbasi-ngc, I believe I've got a fix for your current issue, do you want to give it a try? @Mefosheez it's probably going to work for you as well.

                                          I've prepared an update, could you install it?

                                          # Download repo file for XCP-ng 8.3
                                          wget https://koji.xcp-ng.org/repos/user/8/8.3/xcpng-users.repo -O /etc/yum.repos.d/xcpng-users.repo
                                          
                                          # Update edk2
                                          yum update --enablerepo=xcp-ng-aperard1 edk2
                                          

                                          Alternatively, the RPM is there: https://koji.xcp-ng.org/repos/user/8/8.3/aperard1/x86_64/Packages/edk2-20220801-1.7.7.1.0.enomemfix.1.xcpng8.3.x86_64.rpm

                                          And if you are curious about the change, it's explained in there https://github.com/xcp-ng-rpms/edk2/pull/4

                                          Cheers,

                                          tperard opened this pull request in xcp-ng-rpms/edk2

                                          closed OvmfPkg/XenPlatformPei: Allocate more memory when PEI FV is shadowed #4

                                          MefosheezM K 2 Replies Last reply Reply Quote 1
                                          • MefosheezM Offline
                                            Mefosheez @anthonyper
                                            last edited by

                                            @anthonyper said in Imported VM Starts but Does Not Initialize the Display:

                                            yum update --enablerepo=xcp-ng-aperard1 edk2

                                            confirmed with ubunutu desktop 24.02 in uefi. i can confirm windows later today but this looks to be the fix. will this be folded into an upcoming release?

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