Anyway, now that I managed to build RHEL images, I have one last issue :
With RHEL8+, virtiofs is enabled in the kernel and even if it needs some tricks to make it work as expected, I can install the lxd-agent and at the end, LXD is happy with the IP address reported to LXC.
However, RedHat was a bit annoying with RHEL7 because it disabled 9p and virtiofs in their kernel and there is no way to mount the virtiofs/9p shre inside the VM and then, install the LXD agent.
Because of that, the VM works as expected but
lxc ls doesn’t display the IP address of the VM.
This is not something that we can’t live with but it makes “wait_for_network” option in terraform unusable and terraform ends in error because it thinks the VM is not “alive”.
Of course, we could just disable the “wait_for_network” option but I find this IP report quite usefull to make sure a VM is properly up and I would think it would be too bad to discard it.
Is there a way to install the lxd-agent manually in anyway ?
Are there other possibilities to report this information to LXD ?
How does it work with *BSD or Windows based systems ?
Can’t we rely on the qemu-guest-agent instead which is a way more common package that most of the systems (even Windows) has ?
Thanks for your help