I know I can feed an initial configuration to lxd via ‘lxc init ----preseed.’ But is there a way to dump the current configuration as yaml? What is the best way to get the current configuration other than using the lxc network or storage etc. commands or browse the SQLite database itself?
There isn’t right now, I think it’d be a valuable thing to add as a flag to lxc info, something like lxc info --preseed could spit out a preseed based on what you have right now.
It obviously wouldn’t be guaranteed to work as-is, but would be a good starting point for sure.
@freeekanayaka is that something you’d be interested to contribute when you have a few spare cycles?