Greetings,
I am attempting to load a configuration file from a mounted ISO rather than a USB. The use case is for deployment on a VM inside of Proxmox, a virtualization environment. Generating an ISO and then uploading it to Proxmox's ISO storage is straightforward as is adding a second cd drive to the VM with that ISO attached. The result is cd0 with the OPNsense ISO attached and conf.iso attached to cd1. The layout of the conf.iso is /conf/config.xml as outlined in this previous thread:
https://forum.opnsense.org/index.php?topic=22307.0
Both devices are recognized correctly during first boot. When I press any key to start the configuration importer, both are listed:
<QEMU QEMU DVD-ROM 2.5+> at scbus1 target 0 lun 0 (cd0,pass0)
<QEMU QEMU DVD-ROM 2.5+> at scbus1 target 1 lun 0 (cd1,pass1)
When I select "cd1" at the prompt as the device to import from, it doesn't find the configuration and the following is printed to console:
No known partition layout was found for 'cd1'.
Is there a change that I can make to the ISO image that will allow this to work?
https://github.com/opnsense/core/blob/master/src/sbin/opnsense-importer#L220
It looks like the opnsense-importer is looking for a MBR or GPT partition table or a zfs pool, not a ISO 9660 filesystem ...
https://github.com/opnsense/core/blob/master/src/sbin/opnsense-importer#L156
Yeah, we need to patch in ISO support but it could be done (similar to what msdosfs is doing) if you could raise a ticket on GitHub.
https://github.com/opnsense/core/issues/new?assignees=&labels=&template=feature_request.md&title=
Thanks,
Franco
Quote from: franco on April 20, 2022, 08:20:25 AM
Yeah, we need to patch in ISO support but it could be done (similar to what msdosfs is doing) if you could raise a ticket on GitHub.
Done, and thank you sir.
https://github.com/opnsense/core/issues/5733
https://github.com/opnsense/core/commit/206f0d2f
# opnsense-patch 206f0d2f
Cheers,
Franco