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

    Very scary host reboot issue

    Scheduled Pinned Locked Moved XCP-ng
    60 Posts 6 Posters 15.6k 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.
    • D Offline
      darabontors @olivierlambert
      last edited by

      @olivierlambert Is this log snippet helpful? Do I need to dig somewhere else specifically?

      1 Reply Last reply Reply Quote 0
      • A Offline
        Andrew Top contributor @olivierlambert
        last edited by

        @darabontors @olivierlambert I use OPNsense and never had this problem... It is currently FreeBSD 13.2 based and shows management agent 6.2.0-76888. It is using the default Xen drivers included in FreeBSD 13.2. I have run many many gigabytes of data through the firewalls (several VMs). I am running an older processor (Xeon E5 v2), but no issues.

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

          @darabontors Thanks, that's what I suspected…

          @Andrew as I said, the hard part of this bug is to make it reproducible. It seems to be related to Wireguard AND FreeBSD, as you can see OVS is crashing the whole Dom0 kernel at some point. Xen detects it, and finally decide (logically) to reboot the Dom0.

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            Andrew Top contributor @olivierlambert
            last edited by

            @olivierlambert I'll spinup some OPNsense/WireGuard VMs and see what happens for me...

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

              Thanks, we are doing the same. However, I'm not optimistic on the possibility to trigger it artificially… We have thousands of users all around the world using BSD+wireguard. We even do it here.

              And yes, we had the issue 6 months ago. And then it stopped, and never happened again. It's really a difficult problem to investigate in the first place.

              A D 2 Replies Last reply Reply Quote 0
              • A Offline
                Andrew Top contributor @olivierlambert
                last edited by

                @olivierlambert I loaded everything and ran 1TByte of data over WireGuard and nothing failed... So, another non-fail here too.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  darabontors @olivierlambert
                  last edited by

                  @olivierlambert Is there something specific I could do? A specific way to test maybe?
                  @Andrew Are you using WireGuard kmod in OPNsense?

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    Andrew Top contributor @darabontors
                    last edited by

                    @darabontors I'm using the current OPNsense (23.7.5) install and I added the WG (2.1) plugin from the GUI. I built a WG tunnel between two OPNsense VMs and put a Debian VM attached to each firewall. Then I transfered data between the Debian VMs (through the firewall/WG tunnel).

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

                      @darabontors we need all the information you can provide on your setup so we can trigger the bug.

                      My feeling on this is a malformed packet that is crashing OVS, maybe due to the lower MTU of wireguard, but ANY detail on the configuration/setup you have will help to build something similar, and ideally reproduce it.

                      Without a reproducible way to trigger the bug, it will be nearly impossible to fix it.

                      1 Reply Last reply Reply Quote 0
                      • planedropP Offline
                        planedrop Top contributor
                        last edited by

                        Just wanted to add a few things here, I've never had this happen running pfSense VMs on all 3 of my hosts, some of them with moving quite a bit of data around between Wireguard connections, so does seem hard to reproduce.

                        Might be worth a try @darabontors to run this on pfSense instead of opnSense jut to see if you run into the same issue or not, may help narrow things down.

                        Though maybe I'm speaking out of turn here, haven't really seen this bug before so maybe pf/opn has nothing to do with it and it's just BSD.

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

                          We had the issue with pfSense, so IMHO it's related a combo between FreeBSD and OVS. Likely the PV drivers in BSD that are less tested.

                          planedropP 1 Reply Last reply Reply Quote 1
                          • planedropP Offline
                            planedrop Top contributor @olivierlambert
                            last edited by

                            @olivierlambert Gotcha, makes sense. I'll do some more testing to see if I can replicate the issue.

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

                              Please do so. Gut feeling is something related to the MTU/wireguard, but hard to suspect anything specific at the moment 😞

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                darabontors
                                last edited by

                                Guys, I might be onto something.

                                I started having this issue in September this year, right after switching to a new laptop with Windows 11.

                                I also have VMWare Player and VirtualBox installed on my laptop.

                                I have a weird issue often with WG not being able to bring up the tunnel with an error message. I googled the error and it was something related to the other virtual network interfaces VirtualBox and VMWare player installs.

                                I think the issue could be related to Windows 11 and my other Type 2 Virtualization platforms.

                                I did try on my other laptop running Windows 10 and having VirtualBox installed and the host reboot isn't triggered.

                                Could someone help replicate this specific combo that I have?

                                D 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  darabontors @darabontors
                                  last edited by

                                  I just triggered the reboot with my setup I detailed above. I started transferring 26 GB worth of video files through my tunnel. My host restarted. I continued the transfer and now strangely somehow my tunnel is capped at 100 Mb/s.

                                  During the transfer when the host reboot happened I was having 300 Mb/s.

                                  So strange behavior.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    darabontors @darabontors
                                    last edited by

                                    I continued with the transfer capped at 100 Mb/s (capped by WireGuard most probably) and after ~8 GB transferred, suddenly my tunnel collapsed. After short while, less than 2 minutes it came back up while no host reboot happened. WireGuard crashed somehow but didn't cause the Dom0 crash.

                                    Some other detail that might be unrelated: my PPPoE connection to my ISP has MTU 1492. WireGuard connection also has MTU 1492. Is this relevant in any way?

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

                                      Thanks for the info. Hard to tell if it's related or not, but we take any info you can provide on your setup 🙂 Thanks!

                                      D 1 Reply Last reply Reply Quote -1
                                      • D Offline
                                        darabontors @olivierlambert
                                        last edited by

                                        @olivierlambert Just produced another reboot. I'm closing in on the way to replicate this issue.

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

                                          That will be helpful for everyone having the issue, thanks for contributing with your time and efforts!

                                          D 1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            darabontors @olivierlambert
                                            last edited by

                                            @olivierlambert It's the least I can do. I really like XCP-ng and Xen Orchestra. I have around 15 clients with XCP-ng stacks in production. I run an MSP company. You understand this issue scares me a lot. Right now I'm randomly rebooting my own production server where a bunch of VM and TrueNAS backups land. I am fully motivated to mitigate this issue.

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