無法使用CoreOS中proxmox部署的設定密碼登入

無法使用CoreOS中proxmox部署的設定密碼登入

我嘗試在 proxmox 中將 CoreOS 安裝到我的虛擬機器上,我建立了一個檔案 cloud-config.yaml:

#cloud-config

hostname: coreos

coreos:  
  etcd:    
    addr: $private_ipv4:4001
    peer-addr: $private_ipv4:7001
  units:
    - name: etcd.service
      command: start
    - name: fleet.service
      command: start
    - name: static.network
      runtime: true
      content: |
        [Match]
        Name=ens18

        [Network]
        Address=192.168.4.109/24
        Gateway=192.168.4.1
        DNS=8.8.8.8
users:  
  - name: core
    passwd: core
    groups:
      - sudo
      - docker

我在啟動時載入即時 ISO 並啟動此命令:

sudo coreos-install -d /dev/sda -c cloud-config.yaml

CoreOS 安裝正確,但我無法使用使用者名稱和密碼「core」登錄,錯誤在哪裡?

答案1

確保您指定了哈希值密碼文件中的選項#cloud-config

$ echo "core" | openssl passwd -stdin -1
$1$o2SU8wJ7$IUhyYV.5yJ5TI7BSZmZDx.

相關內容