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

    Latest pfsense+ 23.01 beta freezes on Hyper-v

    Scheduled Pinned Locked Moved Plus 23.05 Development Snapshots (Retired)
    67 Posts 10 Posters 19.1k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      I was wondering about the VM version, but I guess that confirms it. I'd hoped it was just the default being 10 on the older platforms but they could still support the higher one. But that was likely just a red herring anyway since others are working on 10.

      I've tried changing my VM in various ways to be similar to the problem one above (higher CPU count, more RAM, dynamic memory on/off, etc.) but nothing so far has made it fail. It boots up perfectly no matter what I do here.

      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
      • A
        andrew_241 @Bob.Dig
        last edited by

        @bob-dig

        I may try with a fresh install of Windows Server 2022 when 23.01 is released.

        I'm curious; my VM configuration dump says the VM has two COM ports, but Hyper-V doesn't pass the physical one I have to the VMs - third party software is required for that. This isn't exposed in the Hyper-V Manager GUI. Does your VMCX configuration file show ComPort1 and ComPort2?

        Bob.DigB 1 Reply Last reply Reply Quote 0
        • Bob.DigB
          Bob.Dig LAYER 8 @andrew_241
          last edited by Bob.Dig

          @andrew_241 said in Latest pfsense+ 23.01 beta freezes on Hyper-v:

          Does your VMCX configuration file show ComPort1 and ComPort2?

          I can't tell because I don't know any of the syntax of you command. I am just an advanced home user, don't know nothing about powershell etc.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            My VM config that works also shows the COM ports, so that's unlikely to be related.

            One of our TAC crew who could reproduce this noticed that they could get theirs to boot if they removed the DVD drive from the VM, so that's something else to try.

            Mine works with the DVD drive attached (and with no media mounted). Theirs appeared to be set the same but failed until they removed it.

            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
            • V
              vbjp
              last edited by vbjp

              Sadly but removing DVD drive did not solve the problem. Even vm that booted successfully after upgrade started displaying same behavior after some reboots. There was the confusion that it only crashing with console open when booting, that seems no longer be the case. It seems that sometimes it just boots after upgrade, but breaks later and sometimes it just broken as soon as you upgrade.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Might be a long shot, but do your configurations on those VMs have the serial console enabled even though they don't have COM ports mapped in Hyper-V?

                There is a known issue in that area with FreeBSD on Azure Gen2 VMs but I wouldn't think it would manifest on local Hyper-V setups since even though the VM contains COM port configurations it doesn't actually have any uart controllers or serial ports visible to the guest.

                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
                • V
                  vbjp
                  last edited by

                  Most likely related thread
                  https://forum.netgate.com/topic/176572/hyper-v-upgrade-from-22-05-to-23-01-b-20221217-1429-fails-to-boot/7

                  Will test rc tomorrow.

                  Also 2.7 ce builds worked ok

                  1 Reply Last reply Reply Quote 0
                  • V
                    vbjp
                    last edited by

                    Tried installing 23.01 rc

                    2.6ce to 22.1 then 22.5 and 23.1 rc
                    First boot after upgrade successful then tried rebooting same pattern crashing
                    First boot after upgrade
                    rc first.PNG
                    Reboot
                    rc reboot.PNG

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      I have yet to see an answer to my last question:

                      Do these VMs have the serial console option enabled in settings? (System > Advanced, Admin Access tab)? If so, disable it before upgrading.

                      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!

                      V Bob.DigB 2 Replies Last reply Reply Quote 1
                      • V
                        vbjp @jimp
                        last edited by

                        @jimp they don't have serial enabled at least when it booted after upgrade I checked in ui and serial check box was unchecked if that's what you mean.

                        1 Reply Last reply Reply Quote 0
                        • Bob.DigB
                          Bob.Dig LAYER 8 @jimp
                          last edited by

                          @jimp said in Latest pfsense+ 23.01 beta freezes on Hyper-v:

                          Do these VMs have the serial console option enabled in settings? (System > Advanced, Admin Access tab)? If so, disable it before upgrading.

                          Mine doesn't and I never had any problem. I don't even know what a serial console is. ๐Ÿ˜€

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            If you can, look at /boot/loader.conf and /boot/loader.conf.local and post the contents from before the upgrade (or the first boot after if that works would be even better).

                            The similar problem that happens in Hyper-V is definitely loader related, but it has to do with serial output. We have a potential fix but since it's in the loader it's a bit too disruptive to get into this release at this stage. Even though Hyper-V doesn't have serial consoles per se in Gen2 it may still interfere. Most of us still can't even reproduce the boot failure here in Hyper-V which is a bit maddening.

                            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!

                            V 1 Reply Last reply Reply Quote 0
                            • V
                              vbjp @jimp
                              last edited by

                              @jimp
                              Got contents of loader.conf couldn't find loader.conf.local (sorry for picture format was easiest to grab this way)
                              This is from 22.5 before upgrade to RC. Rolled back to vm snapshot.
                              (Tried upgrade to 23.1 again but this time it crashed even on first boot)
                              225bootconf.PNG

                              Contents of boot folder no local file
                              225bootf.PNG

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                There isn't always a .local file unless someone created it manually, but it's good to check for it in case it is there. Nothing stands out in that loader config, definitely no sign of serial or console config which is what I was curious about.

                                Did you check for and remove any optical drives from that VM? We have one person here who only saw it crash/fail to boot with an optical drive on the VM.

                                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!

                                V 1 Reply Last reply Reply Quote 0
                                • V
                                  vbjp @jimp
                                  last edited by

                                  @jimp
                                  No DVD drive
                                  settings.PNG

                                  1 Reply Last reply Reply Quote 0
                                  • Bob.DigB
                                    Bob.Dig LAYER 8 @Bob.Dig
                                    last edited by Bob.Dig

                                    @bob-dig said in Latest pfsense+ 23.01 beta freezes on Hyper-v:

                                    Maybe MS is just doing MS things and it depends on the age of your Windows Installation and what not... I have problems running a service in a debian VM in Hyper-V, I always have to boot it twice.

                                    After this MS-patchday my problem with the debian VM is gone. But I had some other changes too... it is a possibility.

                                    1 Reply Last reply Reply Quote 0
                                    • jimpJ jimp moved this topic from Plus 23.01 Development Snapshots (Retired) on
                                    • V
                                      vbjp
                                      last edited by

                                      Just quick update. The official release of 23.01 still does not boot in Hyper-v.
                                      Tried on 2 different hosts (Both Windows server 2022 standard all updates installed) still getting stuck at boot.

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        fiblimitless @vbjp
                                        last edited by

                                        @vbjp said in Latest pfsense+ 23.01 beta freezes on Hyper-v:

                                        Just quick update. The official release of 23.01 still does not boot in Hyper-v.
                                        Tried on 2 different hosts (Both Windows server 2022 standard all updates installed) still getting stuck at boot.

                                        same issue while updating with all settings/packages/configuration in place.

                                        If you open the Hyper-V machine and check the logs while updating, you will see a log saying disk out of space, and the system continues, as it finished. I believe that's the reason. corrupt/partial update.

                                        Negate minimum requirement says you needs a minimum of 8GB. (mine was 5GB fixed)

                                        You can expand the vhdx file and shell into pfsense and resize the partitions.

                                        Here is a good link on how adjust your disk after expanding the vhdx
                                        https://people.freebsd.org/~rodrigc/doc/handbook/disks-growing.html

                                        Or

                                        • backup your pfsense
                                        • create a new vhdx disk (I set mine to 15GB)
                                        • install pfSense-CE-2.6.0
                                        • update to pfsense + 22.05 then 23.01
                                        • restore the backup.

                                        I can confirm it worked for me.
                                        Cheers.

                                        V 1 Reply Last reply Reply Quote 0
                                        • V
                                          vbjp @fiblimitless
                                          last edited by

                                          @fiblimitless my pfsense vm has 30gb (other one has 60gb both not booting) drive assigned to it is that not enough? Possibly not same problem.

                                          F 1 Reply Last reply Reply Quote 1
                                          • F
                                            fiblimitless @vbjp
                                            last edited by

                                            @vbjp shell into pfsense check your partitions: gpart show

                                            what do you have?
                                            d434a6df-3473-4b24-bf70-e40e5a84a34e-image.png

                                            V 1 Reply Last reply Reply Quote 1
                                            • stephenw10S stephenw10 referenced this topic on
                                            • stephenw10S stephenw10 referenced this topic on
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.