HPE Morpheus VM Essentials
1830230 Members
2316 Online
109999 Solutions
New Discussion

Adding a user with Cloud-Init

 
kurotan
Frequent Advisor

Adding a user with Cloud-Init

User information is specified in the virtual image (qcow2) with Cloud-init enabled. (For example, User01)
Also, a user for authentication is specified in Cloud-Init Settings in Administration-Provisioning. (For example, sysadmin)

According to the documentation, authentication should be performed with the user specified in Cloud-Init Settings (sysadmin), and the user specified in the virtual image (User01) should be added, but it seems that the user is not added to the provisioned VM.
When provisioning, "CREATE YOUR USER" is checked in the User Config item.

Is there something specified incorrectly?

 

https://support.hpe.com/hpesc/public/docDisplay?docId=sd00006472en_us&page=GUID-429877DA-255E-41FC-86B6-E7069B0EE7A6.html

1 REPLY 1
kurotan
Frequent Advisor

Re: Adding a user with Cloud-Init

Further information.

I downloaded a Cloud-Init enabled image from "https://cloud-images.ubuntu.com/noble/current/" and created a "metadata.json" file by imitating other images.

I uploaded it to a virtual image and provisioned the instance.

 

As a result, when "CREATE YOUR USER" was not checked, the "sysadmin" user and "User01" were added. When "CREATE YOUR USER" was checked, only the "sysadmin" user was added.

 

Isn't it correct that by enabling the checkbox, sysadmin/User01 are created, and by disabling it, only sysadmin is created?