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

> 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