How to use Cloudbase-init in lxc?

asked 2023-05-16 20:08:43 +0300

anonymous user


Hello everyone,

I have a windows image baked with cloudbase-init. I created a profile in lxc which has user-data and meta-data using lxc sdk's in golang and started the VM. When I login to vm, I couldn't see user-data and meta-data under LocalScripts folder of Cloubase-init. Also, the user-data which I have provided was not executed during the pre-boot. Can you let me know the steps to make this work as expected? I would be great if you can provide an example of user-data to setup users and run powershell commands.

edit retag flag offensive close merge delete