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

    restore config.xml after install no packages [solved]

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 560 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.
    • noplanN
      noplan
      last edited by noplan

      any idea when you save your conf.xml via webGui
      including the packages

      take this xml file and do this after a fresh install,
      this steps are gonna happen after the CLI installation is finished,
      so no webGui wizzard was runnin, and i switched to console, also no reboot happend after install.

      • mount_msdosfs /dev/da1s1 /media/usb (/media/usb was created after install)

      • cp /media/usb/config.xml /cf/conf/config.xml

      • rm /tmp/config.cache

      • umount /media/usb

      • reboot the system

      the system comes up like the old one but without packages ...
      strange ??

      gonna test it again ...
      (testing again ...)

      757a89b8-57ad-4d0d-b59e-6988fcc7cbb8-grafik.png

      after some time ...
      8da46be2-a27d-47e5-84fe-2e19ba483c08-grafik.png

      any hints someone can/will share with me
      thx in advance NP

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Usually it's because it couldn't access the package repo at that point in the boot. Sometimes that's because WAN has not come up yet or because you restored it onto new hardware before it was in place.

        If that happens to me I usually just restore the same config again once it's in place and I've verified the package manager can see available packages. That does require a second reboot but it will then pull in all the packages in the config.

        Steve

        noplanN JKnottJ 2 Replies Last reply Reply Quote 1
        • noplanN
          noplan @stephenw10
          last edited by

          @stephenw10

          thanks for the hint with the WAN interface!
          yes i've reproduced it, if WAN is not up or unable to get connection
          the packages will not be installed !

          solved thx !

          next step is to get the config.xml on the smae usb stick and getting the thing done in auto install ;)

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yup, pull it in at first boot or during the install significantly simplifies the re-install process. 👍

            noplanN 1 Reply Last reply Reply Quote 1
            • noplanN
              noplan @stephenw10
              last edited by

              @stephenw10

              yes i hope i was doin it right this way, cuz i was unable to get it workin with one USB stick, to install and reimport the old config.xml
              so my way is 2 sticks one for the installation and one for the config.
              finish the installation go to the console mount copy unmount reboot
              hope that WAN is on / up and login on the webIf check if everything is there and reboot again, and reset the log files (for some reason the log file size was not recognized) and you got a new installed pfS box ready to runn till the ardware dies ... or pfS+ on coole netgate hardware comes arround ;)

              1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @stephenw10
                last edited by

                @stephenw10

                That's good to know. I'll be installing on a new computer shortly and have the config.xml file saved. I'll get it installed & running, before copying over the config. I didn't copy the DUID, as it's all new hardware, with different MAC addresses, so I expect I'll be getting a new prefix.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.