I want to set up a new Incus server and configure it with a YAML file. But I have a hard time figuring out how to construct that YAML file. Trawling the docs and the forum, I got something like
$ incus admin init --preseed incus-preseed.yaml
Error: Failed to parse the preseed: yaml: unmarshal errors:
line 4: field description not found in type api.InitPreseed
line 5: field devices not found in type api.InitPreseed
Somehow, I haven’t found documentation about how to put all the things together, so I could write a YAML file that contains all networks, storage, backups, monitoring, certificates, DNS, routing etc. (so far, I’m only trying to set network and storage, but completeness would be great) in one, possibly omitting keys that I don’t want to change, and possibly having an option to delete keys, too. I also haven’t found out how to create a skeleton YAML file as an export from an existing server, even though I found messages indicating that this is possible. Is it possible, and where should I look, please?
Thank you, but my problem is that incus already freaks out at the ‘devices:’ entry, which I got from the documentation. It’s not even reaching the individual devices. I also thought that I somehow need to tell incus about the network first, before I can attach any devices to it?
Thank you! I’m still trying to figure things out, but I also want to automate things, and issuing a sequence of commands later does sound like trouble to me. It’s error prone, hard to reason about, and inefficient as well. Creating a configuration file from a template and then feeding that to incus sounds like a much saner option to me.
I will try to put it politely as possible as I can, English is not my first language.
It seems to me, you are not very familiar with incus’s configuration. It’s better to take step by step. I recommend you install incus in a VM and use incus admin init to create a demo server to mess up with anything. After done, I think you will be good at automatically create a incus server.
Don’t worry. English is not my first language, either, and yes, I am not very familiar with incus, yet. I’ve been playing with it on my laptop for a while now, but am still exploring the capabilities and trying to understand how everything fits together.