Skip to content

how to set root password like cloud-init ? #3781

@ningmingxiao

Description

@ningmingxiao

I use custom image

images:
- location: "https://mirrors.openanolis.cn/anolis/23.3/isos/GA/x86_64/AnolisOS-23.3-x86_64.qcow2"
  arch: "x86_64"
  digest: "sha256:cf530bbca8430942d9cf2ce91be3a9b647c7bb3cfd36f97519e3bf0aae6f6b7c"

error

INFO[0002] Downloaded the image from "/home/nmx001/AnolisOS-23.3-x86_64.qcow2" 
INFO[0002] [hostagent] hostagent socket created at /home/nmx001/.lima/default2/ha.sock 
INFO[0002] [hostagent] Using system firmware ("/usr/share/OVMF/OVMF_CODE.fd") 
INFO[0003] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/home/nmx001/.lima/default2/serial*.log") 
INFO[0004] SSH Local Port: 45435                        
INFO[0003] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 

INFO[0013] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0023] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0033] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0043] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0053] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0063] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0073] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0083] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0094] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0104] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0114] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0124] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0134] [hostagent] Waiting for the essential requirement 1 of 2: "ssh" 
INFO[0144] [hostagent] Waiting for the essential requirement 1 of 2: "ssh"

but use socat - unix-connect:$HOME/.lima/default2/serial.sock can login but I can't change to root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions