我的 ubuntu server 22.04.1 自动安装有什么问题?

我的 ubuntu server 22.04.1 自动安装有什么问题?

我正在尝试为 ubuntu 22.04.1 创建自动安装。但每次我尝试启动时,它都会重新启动并且永远不会停止。没有错误消息,我不知道出了什么问题。用户数据文件如下所示:

#cloud-config

autoinstall:

  apt:

    disable_components: []

    geoip: true

    preserve_sources_list: false

    primary:

    - arches:

      - amd64

      - i386

      uri: http://archive.ubuntu.com/ubuntu

    - arches:

      - default

      uri: http://ports.ubuntu.com/ubuntu-ports

  identity:

    hostname: edgedevice

    password: $6$xU$HazGI4kXe7UxWc9xpP1rGRQsCc1d7a488fYeVvpw0pkkV3lWnNduZw17D7yGqcxS5cwgb49/W3PM7Kxq1BSSS/

    realname: edgeconnector

    username: ec

  kernel:

    package: linux-generic

  keyboard:

    layout: ch

    toggle: null

    variant: de_sundeadkeys

  locale: en_US.UTF-8

  network:

    ethernets:

      enp1s0:

        dhcp4: true

      enp2s0:

        dhcp4: true

    version: 2

  ssh:

    allow-pw: true

    authorized-keys: []

    install-server: false

  storage:

    layout:

      name: direct
    
  updates: security

  version: 1

要创建新的自动安装 iso,我使用自动安装生成器。

如果我将存储配置更改为以下内容,我会收到错误“自动安装配置未创建所需的引导加载程序分区”

  storage:

    config:

    - ptable: gpt

      serial: mSATA_mini_3ME3_BCA12102030330005

      wwn: '0x524693f2ca251959'

      path: /dev/sda

      wipe: superblock

      preserve: false

      name: ''

      grub_device: false

      type: disk

      id: disk-sda

    - device: disk-sda

      size: 1127219200

      wipe: superblock

      flag: boot

      number: 1

      preserve: false

      grub_device: true

      type: partition

      id: partition-0

    - fstype: fat32

      volume: partition-0

      preserve: false

      type: format

      id: format-0

    - device: disk-sda

      size: 4294967296

      wipe: superblock

      flag: swap

      number: 2

      preserve: false

      grub_device: false

      type: partition

      id: partition-1

    - fstype: swap

      volume: partition-1

      preserve: false

      type: format

      id: format-1

    - path: ''

      device: format-1

      type: mount

      id: mount-1

    - device: disk-sda

      size: 26591887360

      wipe: superblock

      flag: ''

      number: 3

      preserve: false

      grub_device: false

      type: partition

      id: partition-2

    - fstype: ext4

      volume: partition-2

      preserve: false

      type: format

      id: format-2

    - path: /

      device: format-2

      type: mount

      id: mount-2

    - path: /boot/efi

      device: format-0

      type: mount

      id: mount-0

    swap:

      swap: 0

答案1

与此同时,我设法解决了这个问题。首先,如果你遇到类似的问题,使用 UEFI 启动它,那么错误“自动安装配置没有创建所需的分区”将不会出现。其次,正如所述这里如果为我添加 grub: reorder_uefi: False,它就会停止无休止的重启。

相关内容