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

    Windows 10 VM reboots when starting software

    Scheduled Pinned Locked Moved Compute
    18 Posts 4 Posters 1.9k Views 5 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.
    • J Offline
      jstorgaard
      last edited by jstorgaard

      I installed a Windows 10 Home VM on XCP-ng 8.1. I'm going to use it for BlueIris NVR application.
      Software is installed and all looks good, but when I start the application the VM just stops or reboots. No apparent messages in EventLog.

      Googling for the same issue I see that other people had similar issues using Proxmox/KVM/QUEMU.
      Solution seems to be to add the following to /etc/modprobe.d/kvm.conf:
      options kvm ignore_msrs=1
      I did try this on XCP-ng but no change.
      Is there are similar setting for XCP-ng? To ignore MSRs or not to passthrough CPU features from the host?

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

        Let me ask around 🙂

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

          Also, is your Windows 10 got all the PV drivers/agent installed?

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jstorgaard @olivierlambert
            last edited by

            @olivierlambert said in Windows 10 VM reboots when starting software:

            Also, is your Windows 10 got all the PV drivers/agent installed?

            Yeah, did try with both the Guest tools from Citrix and the XCP-ng ones.

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

              If it's MSR related, you should see xl dmesg output when the VM crashes.

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

                Also, please share the BSOD screen if possible

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jstorgaard @olivierlambert
                  last edited by

                  @olivierlambert said in Windows 10 VM reboots when starting software:

                  If it's MSR related, you should see xl dmesg output when the VM crashes.

                  This is output from xl dmesg when machine crashes:

                  (XEN) [57920.851786] d10v1 Unknown Host LBR MSRs
                  (XEN) [57920.851789] domain_crash called from vmx.c#vmx_msr_write_intercept+0x4c2/0x510
                  (XEN) [57920.851790] Domain 10 (vcpu#1) crashed on cpu#8:
                  (XEN) [57920.851791] ----[ Xen-4.13.0-8.6.1.xcpng8.1  x86_64  debug=n   Not tainted ]----
                  (XEN) [57920.851792] CPU:    8
                  (XEN) [57920.851793] RIP:    0010:[<fffff8014a7de482>]
                  (XEN) [57920.851794] RFLAGS: 0000000000040002   CONTEXT: hvm guest (d10v1)
                  (XEN) [57920.851795] rax: 0000000000000001   rbx: 0000000000000000   rcx: 00000000000001d9
                  (XEN) [57920.851796] rdx: 0000000000000000   rsi: 0000000000000000   rdi: 00000000000000f0
                  (XEN) [57920.851797] rbp: fffff68839bd7b00   rsp: fffff68839bd7a78   r8:  0000000000000001
                  (XEN) [57920.851798] r9:  fffff68839bd75f8   r10: 0000000000000000   r11: ffffd50f3594a080
                  (XEN) [57920.851799] r12: 0000000002a4b528   r13: 00007ff907ec4900   r14: 00000000000000f0
                  (XEN) [57920.851799] r15: 0000000000000000   cr0: 0000000080050033   cr4: 0000000000370678
                  (XEN) [57920.851800] cr3: 0000000061fa4002   cr2: 000000000027425a
                  (XEN) [57920.851801] fsb: 0000000000000000   gsb: ffffb980e01d1000   gss: ffffb980e01d1000
                  (XEN) [57920.851802] ds: 002b   es: 002b   fs: 0053   gs: 002b   ss: 0018   cs: 0010
                  
                  
                  1 Reply Last reply Reply Quote 1
                  • J Offline
                    jstorgaard @olivierlambert
                    last edited by jstorgaard

                    @olivierlambert said in Windows 10 VM reboots when starting software:

                    Also, please share the BSOD screen if possible

                    Unfortunately no BSOD data available. No guest logs or entries in EventLog. There are never any BSOD shown in the client.
                    It just plain shuts off or reboots from XCP-ng.

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

                      You might have a Windows setting to prevent reboot in crash (or also with xe you can set the VM to not restart in case of crash).

                      Thanks for the output 🙂

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

                        Can you do a copy/paste (eg in hastebin.com) the full output of xl dmesg from your dom0?

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          jstorgaard @olivierlambert
                          last edited by

                          @olivierlambert said in Windows 10 VM reboots when starting software:

                          Can you do a copy/paste (eg in hastebin.com) the full output of xl dmesg from your dom0?

                          Here is the complete dmesg:
                          https://hastebin.com/ruvuqokiba.sql

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jstorgaard @olivierlambert
                            last edited by

                            @olivierlambert said in Windows 10 VM reboots when starting software:

                            You might have a Windows setting to prevent reboot in crash (or also with xe you can set the VM to not restart in case of crash).

                            Thanks for the output 🙂

                            I removed the mark that makes Windows boot in case of a crash, but same result. It just acts like it's a hypervisor crash and not a Windows crash.
                            How can I change the setting in xe? Can't seem to find that option in XO.

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

                              Yeah in xe, it's actions_after_crash that you should set to preserve but in your case, it might be not even relevant.

                              Let me take a look at the dmesg (and showing it to some Xen devs)

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

                                Okay @jstorgaard I have a good news. It's likely related to your CPU.

                                Family 6 Model 165 Stepping 3 in your case, is a Comet Lake CPU.

                                And Xen version you have don't have yet the right code for some calls asked by the VM, trigger a crash (Xen doesn't know which MSRs to give it).

                                This was patched in Xen relatively recently (few months ago), ask you can see here: https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=1fe406685cb19e9544681c6243e7d376deb0297e

                                This patch is relatively trivial, so in theory we could backport it and build an updated Xen version. Then put the package in testing repo so you can test it and confirm it solves the issue.

                                I don't know if @r1 can build it for us, but we'll have to wait next week for @stormi to put the package in testing anyway 🙂

                                edit: issue created: https://github.com/xcp-ng/xcp/issues/434

                                olivierlambert created this issue in xcp-ng/xcp

                                closed Backport Xen patch to support Ice Lake and Comet Lake CPUs #434

                                J R 2 Replies Last reply Reply Quote 1
                                • J Offline
                                  jstorgaard @olivierlambert
                                  last edited by

                                  @olivierlambert Thanks a lot, that's good news!
                                  I'm very much up for testing so I'll keep an eye on the issue you created 🙂

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

                                    A big thanks to @andyhhp for his priceless help on this 👍

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      r1 XCP-ng Team @olivierlambert
                                      last edited by

                                      @olivierlambert said in Windows 10 VM reboots when starting software:

                                      I don't know if @r1 can build it for us, but we'll have to wait next week for @stormi to put the package in testing anyway

                                      The patch needed a rework for fitment. I'd create a PR for modified patch and then it can go in testing repo.

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

                                        @jstorgaard Updated packages are now available for you to test: https://github.com/xcp-ng/xcp/issues/434#issuecomment-688786905

                                        olivierlambert created this issue in xcp-ng/xcp

                                        closed Backport Xen patch to support Ice Lake and Comet Lake CPUs #434

                                        1 Reply Last reply Reply Quote 2
                                        • GoogleSitemapsG GoogleSitemaps referenced this topic on
                                        • First post
                                          Last post