@stephenw10 said in config.xml during initial install - in vmware?:
If attach a second fat32 formatted virtual drive it doesn't pull a config file from that?
Or just that isn't a practical option?
Steve
I finally got it working this afternoon!
At present, you must attach a second virtual hard drive, MBR-formatted (not GPT), with a FAT filesystem on it.
I couldn't tell if the installer was picking up the config file or if ECL was picking it up, so I placed a copy of config.xml in both /conf and /config to cover all my bases.
On macOS, I did the following:
export config.xml (WITH RRD data) from existing firewall
run these commands locally on your macbook with both qemu and VMware Fusion installed:
dd if=/dev/zero of=ECL.img bs=1024k count=100
D=$( hdiutil attach -noMount ECL.img )
diskutil eraseDisk MS-DOS ECL MBR ${D}
mkdir -p /Volumes/ECL/conf /Volumes/ECL/config
cp ~/Downloads/config*.xml /Volumes/ECL/config.xml
cp ~/Downloads/config*.xml /Volumes/ECL/conf/config.xml
cp ~/Downloads/config*.xml /Volumes/ECL/config/config.xml
diskutil eject ${D}
hdiutil detach ${D}
qemu-img convert -f raw -O vmdk -o subformat=monolithicSparse -S 1 ECL.img ECL.vmdk
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -d ECL.vmdk
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -k ECL.vmdk
• upload the resulting ECL.vmdk file to VMware at OVH
• add it as a second hard disk to the new pfSense VM
• shut down the old pfSense VM
• boot the new pfSense VM into the installer, off the ISO image
• install pfSense
• it will automatically pick up the config file from the 2nd hard disk
• test that the firewall works
• RE-UPLOAD the config.xml file to the firewall manually (this will restore the RRD data)
• shutdown the firewall (instead of rebooting)
• remove the 2nd hard disk
• power it back on
(WARNING: those are notes-in-progress, don't just blindly paste that in anywhere!)
FWIW, the last error I made was copying the downloaded config.xml file in as-is without renaming it back to simply "config.xml".
-Adam