New Question
0

How to use Cloudbase-init in lxc?

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

anonymous user

Anonymous

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

1 answer

Sort by » oldest newest most voted
0

answered 2023-06-19 13:11:55 +0200

avladu gravatar image

updated 2023-06-19 13:14:28 +0200

Hello,

There might be an issue with the actual setup -- can you please add more information on how did you use lxc to create VMs and what is the content of the user-data/meta-data set up and how that metadata is delivered (via HTTP or config-drive attachment)?

As far as I know, lxc is a containerization sdk, but the underlying technology used might have diverged and maybe lxc sdk is now able to use libvirt and actually running qemu-kvm in order to be able to run Windows instances.

The examples on how to create users / run powershell commands are documented here https://cloudbase-init.readthedocs.io... .

Thank you.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-05-16 20:08:43 +0200

Seen: 491 times

Last updated: Jun 19 '23