• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

boot failure upgrading to 25.03.b.20250306.0140 i

Scheduled Pinned Locked Moved Plus 25.03 Develoment Snapshots
65 Posts 7 Posters 3.3k Views
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.
  • N
    netblues @stephenw10
    last edited by Apr 2, 2025, 6:51 PM

    @stephenw10 said in boot failure upgrading to 25.03.b.20250306.0140 i:

    Mmm, so just to review; if you change the disk type to something other than vitio block device (modern) it finds it and boots but still fails to find the virtio (modern) NICs?

    Yes, this is exactly the case.

    If I change virtio ethernet to e1000, it also finds network interfaces.

    1 Reply Last reply Reply Quote 1
    • N
      netblues @stephenw10
      last edited by Apr 6, 2025, 7:00 AM

      @stephenw10 fiddling around I think I found the curlpit.
      At some point kvm switched default emulated machine from i440fx to q35.
      Latest supported os under latest kvm (or at least redhat supported) is freebsd14

      So if hypervisor defaults are

      34c56738-cfe8-4a09-a322-c5662f46de26-image.png

      Then virtio drivers don't work under freebsd15

      changing to
      d2fa336d-6cff-4907-9a43-4739da0cacc1-image.png

      makes virtio work again.

      The problem is that changing this with virsh edit isn't easy, since it also changes pci configuration.
      The obvious way forward is creating a new freebsd 14 vm, with manual config.
      Add interfaces as needed,
      adjust vlans/passthrough/bridges and maybe mac addresses as need
      and then move the disk subsystem to the new config with virsh edit.

      This allowed me to upgrade ce 2.7.2 to ce 2.8 without issues, and most probably it will also work
      for plus,
      I don't know if older chipset has any performance or other penalties, but pf used to work under this, and only changed to q35 recently.
      I suspect freebsd15 dropped/changed something in virtio driver support.

      N 1 Reply Last reply Apr 6, 2025, 8:24 AM Reply Quote 0
      • N
        netblues @netblues
        last edited by Apr 6, 2025, 8:24 AM

        @netblues And also plus updated to 25.03 beta, with no issues. Dirty upgrade too.

        1 Reply Last reply Reply Quote 1
        • S
          stephenw10 Netgate Administrator
          last edited by Apr 6, 2025, 12:13 PM

          Hmm, interesting. I tried usssing a Q35 machine in Proxmox and it booted fine. That in itself also didn't change the PCI device type either.

          I think it must be changing the presented PCIe controller since it seems to fail to detect entirely any NICs or the drive controller. Still couldn't make Proxmox do it though even with a bunch of custom command hackery.

          N 1 Reply Last reply Apr 6, 2025, 4:02 PM Reply Quote 0
          • N
            netblues @stephenw10
            last edited by Apr 6, 2025, 4:02 PM

            @stephenw10 actually pcie isn't supported in i440fx, you have to change this to pci
            In older kvm implementations, creating a new freebsd13.1 would create a q35 based virtual machine.
            Now if you create a new freebsd14 i440fx is selected.

            Proxmox isn't a redhat derivative as you know , too.

            In any case, no issues in new installations. Upgrades will hurt "randomly" since this isn't really pfsense related. Its upstream freebsd

            S 1 Reply Last reply Apr 6, 2025, 4:59 PM Reply Quote 0
            • S
              stephenw10 Netgate Administrator @netblues
              last edited by Apr 6, 2025, 4:59 PM

              @netblues said in boot failure upgrading to 25.03.b.20250306.0140 i:

              actually pcie isn't supported in i440fx,

              Hmm, interesting. I wonder if my change didn't really apply somehow then. 🤔

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Apr 7, 2025, 5:46 PM

                Were you using an odd mix like q35+BIOS instead of q35+UEFI?

                FreeBSD 15.x recently changed some things in probing of older ISA style devices, which I wouldn't expect to impact things here, but it's possible some quirk in that combination triggered an issue.

                I use q35+OVMF/UEFI on nearly all my Proxmox VMs with all virtio devices (Proxmox 8.3.5) and everything runs perfectly.

                I still have a few that are using i440fx+BIOS and all virtio devices and they're good, too.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                N 1 Reply Last reply Apr 7, 2025, 6:38 PM Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Apr 7, 2025, 5:55 PM

                  Hmm, yes I probably did end up with Q35+BIOS.

                  Do you see the PCI devices shown as (modern) in the boot logs?

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by jimp Apr 7, 2025, 6:10 PM Apr 7, 2025, 6:00 PM

                    I don't see any mention of modern in my logs, they still show as VirtIO (legacy) even on recently created VMs.

                    In the info qtree of all the VMs it doesn't seem to express a preference either way:

                                    disable-legacy = "off"
                                    disable-modern = false
                    

                    Same on every device

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 1
                    • N
                      netblues @jimp
                      last edited by Apr 7, 2025, 6:38 PM

                      @jimp said in boot failure upgrading to 25.03.b.20250306.0140 i:

                      Were you using an odd mix like q35+BIOS instead of q35+UEFI?

                      Everything was/is q35 + bios, but the issue was that after booting couldn't load disk voiume.
                      Just changing driver to scsci /or sata from virtio would allow startup normaly till network cards not being detected at later stage.

                      This can't be a uefi thing IMHO.

                      J 1 Reply Last reply Apr 7, 2025, 6:41 PM Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate @netblues
                        last edited by Apr 7, 2025, 6:41 PM

                        @netblues said in boot failure upgrading to 25.03.b.20250306.0140 i:

                        @jimp said in boot failure upgrading to 25.03.b.20250306.0140 i:

                        Were you using an odd mix like q35+BIOS instead of q35+UEFI?

                        Everything was/is q35 + bios, but the issue was that after booting couldn't load disk voiume.
                        Just changing driver to scsci /or sata from virtio would allow startup normaly till network cards not being detected at later stage.

                        This can't be a uefi thing IMHO.

                        Declaring that without trying it seems hasty. There isn't much of a compelling reason to run q35+BIOS so it's probably a much less tested combination comparatively.

                        It absolutely can make a difference in how the system probes devices and boots.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        N 1 Reply Last reply Apr 7, 2025, 7:00 PM Reply Quote 0
                        • N
                          netblues @jimp
                          last edited by Apr 7, 2025, 7:00 PM

                          @jimp 14ed0df1-095b-4560-82cc-f40706dc29b1-image.png

                          Tried, but it will take more than changing bios settings. Most probably a reinstall

                          1 Reply Last reply Reply Quote 0
                          • J
                            jimp Rebel Alliance Developer Netgate
                            last edited by Apr 7, 2025, 7:22 PM

                            I setup a fresh VM as q35+BIOS and it worked fine and showed legacy virtio devices by default.

                            I forced modern devices with qm set 157 --args "-global virtio-net-pci.disable-legacy=on -global virtio-blk-pci.disable-legacy=on" and it still booted fine and worked on the network, dmesg output shows modern for the disk/block device and network devices.

                            This is on a fresh 2.8.0 VM but it should be using the same base OS version as 25.03 builds.

                            That's all on Proxmox though so it's possible KVM is doing something differently, maybe it's a newer version of KVM/qemu or something else changed.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Apr 7, 2025, 9:43 PM

                              Yeah it feels like whatever is upstream of those PCI devices fails to be detected and hence anything downstream isn't seen at all. I did try setting -global virtio-pci.disable-legacy=on, which should be valid, but it fails to boot entirely.

                              1 Reply Last reply Reply Quote 0
                              • J
                                jimp Rebel Alliance Developer Netgate
                                last edited by Apr 7, 2025, 9:50 PM

                                I tried that and hit the same failure, hence my limiting it to NICs and disk devices, which did work.

                                One thing I did read when looking into this is that it may make a difference if the root device is PCI vs PCIe but I didn't look into how to check/change that on Proxmox yet.

                                Though at least I did confirm that the modern NICs and block devices do work on their own, so the original stated issue is somewhat of a red herring and the workaround may have allowed it to function, but not for the reason that was thought.

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Apr 7, 2025, 10:05 PM

                                  Yup, that's exactly what I did. 😉 Good to get confirmation at least.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    Maff
                                    last edited by Apr 19, 2025, 8:39 AM

                                    good Morning, i am currently running 25.03-BETA (amd64)
                                    built on Tue Feb 4. and when ever i try to upgrade to the latest i get this failure but i am not using any virtual machines, is a minisfourm ms-01, onboard nics and nvme drive

                                    any pointers i could look for?

                                    M 1 Reply Last reply Apr 19, 2025, 9:59 AM Reply Quote 0
                                    • M
                                      Maff @Maff
                                      last edited by Apr 19, 2025, 9:59 AM

                                      @Maff

                                      fresh install cleared it up

                                      1 Reply Last reply Reply Quote 1
                                      • N netblues referenced this topic on Apr 21, 2025, 5:43 PM
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                        This community forum collects and processes your personal information.
                                        consent.not_received