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 <[email protected]> wrote:

> 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, when I log in to the VM and check, the
> script hasn't run.
>
> Can you please help me troubleshoot this? Your advice would be greatly
> appreciated.
>
>
> *Sample Userdata for references*hostnamectl set-hostname
> prod-proj-midf-ansible01
> sudo apt update -y
> sudo apt install snapd -y
> sudo snap install semaphore
>
> We are using Cloudstack *4.18.1*
> *OS*: Ubuntu 22.04 LTS
>
> Thank you!
>
> Best regards,
> Palash Biswas
>
>

Reply via email to