首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我的ubuntu服务器22.04.1的自动安装有什么问题?

我的ubuntu服务器22.04.1的自动安装有什么问题?
EN

Ask Ubuntu用户
提问于 2022-08-18 07:02:22
回答 1查看 672关注 0票数 0

我正在尝试为ubuntu22.04.1创建一个自动安装。但每次我试图引导后,它的重新启动,它永远不会停止。没有错误信息,我也不知道出了什么问题。用户数据文件如下所示:

代码语言:javascript
复制
#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

为了创建一个新的自动安装,我使用了自动安装生成器.

如果我将存储配置更改为以下内容,则会出现错误"autoinstall没有创建所需的引导加载程序分区“

代码语言:javascript
复制
  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
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2022-08-22 14:17:17

与此同时,我设法解决了这个问题。首先,如果您在UEFI引导它时有类似的问题,那么就不会出现"autoinstall没有创建所需分区“的错误。其次,就像描述的这里一样,如果添加grub: reorder_uefi: False,对我来说,它就会随着无尽的重新启动而停止。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1424248

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档