GitHub user ipcloudlive added a comment to the discussion: How to setup
Username and password on Ubuntu Cloud Image Template
I am using template with the below config,
I also tried user-data with below, is something I need to change ?
plz give if there is any solution,
Thank you
```
#cloud-config
chpasswd:
list: |
root:marvel
expire: False
ssh_pwauth: True
```
```
{
"listtemplatesresponse": {
"count": 1,
"template": [
{
"id": "be9f098c-97fa-4afb-88c8-fc9a6af6eb00",
"name": "Ubuntu Server 22.04",
"displaytext": "Ubuntu Server 22.04 amd64",
"ispublic": true,
"created": "2025-02-18T14:25:02+0530",
"isready": true,
"passwordenabled": true,
"format": "QCOW2",
"isfeatured": true,
"crossZones": true,
"ostypeid": "b628304c-b52b-4ee4-97d1-88075c459c3a",
"ostypename": "Ubuntu 22.04 LTS",
"account": "admin",
"zoneid": "90a4343c-df24-40a7-9685-99fa5c7d0c65",
"zonename": "SALEM",
"status": "Download Complete",
"size": 2361393152,
"physicalsize": 666944000,
"templatetype": "USER",
"hypervisor": "KVM",
"domain": "ROOT",
"domainpath": "/",
"domainid": "0c029311-eb9b-11ef-8f9f-4e90e406eee4",
"isextractable": true,
"checksum":
"06ae3f1af58525dd9413835d04fc2a405ba1df28d1a81bebcce705476c966d29fac00325eaf976df9d57e7c2f4574d2af3dd906d4f6269e4e40099954ac5444f",
"details": {
"rootDiskController": "osdefault"
},
"downloaddetails": [
{
"downloadState": "DOWNLOADED",
"datastore": "Secondary Storage",
"datastoreRole": "Image",
"downloadPercent": "100",
"datastoreId": "90c6db43-e4ee-442e-b368-105b2c237c99"
},
{
"downloadState": "DOWNLOADED",
"datastore": "Primary Storage ",
"datastoreRole": "Primary",
"downloadPercent": "100",
"datastoreId": "b30c0f37-8876-3003-a552-61bcce73ea4c"
}
],
"arch": "x86_64",
"bits": 0,
"sshkeyenabled": false,
"isdynamicallyscalable": false,
"directdownload": false,
"deployasis": false,
"requireshvm": true,
"url":
"https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img",
"userdataid": "dea3349c-f94e-4b78-8f65-23c110add809",
"userdataname": "ResetpasswordNew",
"userdatapolicy": "ALLOWOVERRIDE",
"tags": [],
"hasannotations": false
}
]
}
}
```
GitHub link:
https://github.com/apache/cloudstack/discussions/10592#discussioncomment-12562810
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]