Re: Userdata not working while create new instance

2024-01-24 Thread Wei ZHOU
Have you added CloudStack to the datasource_list ? refer to https://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html#using-cloud-init -Wei On Wed, 24 Jan 2024 at 15:07, Palash Biswas wrote: > Hi, > > Indeed, cloud-init is installed in the VM. I've attempted both

Re: Userdata not working while create new instance

2024-01-24 Thread Palash Biswas
Hi, Indeed, cloud-init is installed in the VM. I've attempted both plain text and base64 encoded text, but unfortunately, I haven't had any success. Regards, Palash On Wed, Jan 24, 2024 at 9:56 PM Wei ZHOU wrote: > 1. Is cloud-init installed in the vm ? > 2. can you insert "#!/bin/bash" as t

Re: Userdata not working while create new instance

2024-01-24 Thread Wei ZHOU
1. Is cloud-init installed in the vm ? 2. can you insert "#!/bin/bash" as the first line of userdata and retry ? -Wei On Wed, 24 Jan 2024 at 14:30, Palash Biswas wrote: > Hello Community, > > I need some assistance with my UserData script. It's not working as > expected, and I can't figure out

Userdata not working while create new instance

2024-01-24 Thread Palash Biswas
Hello Community, I need some assistance with my UserData script. It's not working as expected, and I can't figure out why. I've tried both stored UserData and manual entry, but the script doesn't seem to execute. Strangely, there are no error messages, and instance creation goes smoothly. However