I’ve only just begun looking at this so I’m not sure what other changes will be needed.
Edit: additionally it seems that tiny-cloud need /dev/incus/sock which is provided by the incus-agent inside of the VM. At first this was’t working for me because I use alpinelinux as my host server OS and I didn’t have the linux incus-agent available for the vm. After downloading the incus-agent for the host side agents dir export INCUS_AGENT_PATH=/opt/incus/agents in my case. the agent started up in the VM and /dev/incus/sock appeared.
After more testing it seems incus-agent in the VM starts at runlevel default and starts too late for tiny-cloud and tiny-cloud is still not picking up on the user-data.
Hello dazoe,
I’m using the Incus Terraform provider with my own custom Fedora image, cloud-init, and VMs.
I’ve written a blog article that explains how to do this. I’m not saying you have to use terraform, but you might want to look at my article, as it explains how to create a cloud-init config-drive for the VM:
device {
name = "cidata"
type = "disk"
properties = {
source = "cloud-init:config"
}