New Hyper-V VM using config.xml from another VM



  • I have a pfSense 2.4.3 generation 1 Hyper-V VM running on Windows 2016.
    Wanted to try to migrate to generation 2 VM. What is the best way to do it?

    Hyper-V doesn't support USB memory sticks. So I tried copying /config/config.xml from the gen1 VM to a USB hard-drive and added that to the gen2 VM along with the installation DVD/ISO.
    The installation however fails to find the config.xml file and proceeds to ask me to reinitialize pfSense from scratch.

    Any other way I can do this?
    Not super familiar with freebsd. From the installation shell could I mount the HD and copy the config.xml somewhere where it would be found?


  • Netgate Administrator

    Any reason why you can't just create the new VM and then restore the config from GUI?

    To use the PFI or ECL methods the drive containing the config must be FAT32 formatted. That could be why it failed to pull it in your case.

    Steve



  • @mircolino:

    I have a pfSense 2.4.3 generation 1 Hyper-V VM running on Windows 2016.
    Wanted to try to migrate to generation 2 VM. What is the best way to do it?

    Hyper-V doesn't support USB memory sticks. So I tried copying /config/config.xml from the gen1 VM to a USB hard-drive and added that to the gen2 VM along with the installation DVD/ISO.
    The installation however fails to find the config.xml file and proceeds to ask me to reinitialize pfSense from scratch.

    Any other way I can do this?
    Not super familiar with freebsd. From the installation shell could I mount the HD and copy the config.xml somewhere where it would be found?

    I wanted to do the same thing, but eventually just went with stephenw10's solution.  During the installation, I just went with the default options.  As soon as I could log into the GUI, I went to Diagnostics > Backup & Restore, and uploaded the config file there.  I believe the end result is the same.