当前位置: 首页 > article >正文

求助帖:ubuntu22.10 auto install user-data配置了为何还需要选择语言键盘(如何全自动)

0-现象:配置好autoinstll的PXE与user-data文件安装过程仍然要人工选语言、键盘等,非全自动;——


1.硬件环境:x86_64机器 + U盘(/dev/sda);
2.软件环境:DHCP+PXE启动做好grub与pxe的autoinstall相关文件:

  • menuentry 'palos-ubuntu22.04-autoinstall' {
    echo "linux kernel vmlinuz-22.04-X86"
    linux IMG_UBUNTU/vmlinuz-22.04-x86 http_host=192.168.2.2 http_port=8080 ip=dhcp url=http://192.120.0.202:8082/IMG_UBUNTU/X8 ... -amd64.iso autoinstall ds=nocloud-net\;s=http://172.20.0.202:8082/IMG_UBUNTU/bash
    echo "Grub.cfg:loading initrd-22.04-X86"
    initrd IMG_UBUNTU/initrd-22.04-x86
    }

    menuentry 'palos-ubuntu22.10-autoinstall' {
    echo "Grub.cfg:loading linux kernel vmlinuz-22.10-X86"
    linux IMG_UBUNTU/vmlinuz-22.10-x86 http_host=192.168.2.2 http_port=8080 ip=dhcp url=http://192.120.0.202:8082/IMG_UBUNTU/X8 ... -amd64.iso autoinstall ds=nocloud-net\;s=http://172.20.0.202:8082/IMG_UBUNTU/bash
    echo "Grub.cfg:loading initrd-22.10-X86"
    initrd IMG_UBUNTU/initrd-22.10-x86
    }

3.user-data文件为人工安装一遍后获取的响应文件——/var/log/installer/autoinstall-user-data

  • #cloud-config
    autoinstall:
    apt:
    disable_components: []
    geoip: true
    preserve_sources_list: false
    primary:
    - arches:
    - amd64
    - i386
    uri: Index of /ubuntu/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
    - arches:
    - default
    uri: Index of /ubuntu-ports
    drivers:
    install: false
    identity:
    hostname: teamol
    password: $6$6GNI6HlrvEIhotl6$44incWozQaCm.HAnAI1onwZ42cLt1n/rNOHoUdzbtUjg6.utJq1.1FeBhBlgod1M7YgRts5vnmmP4RK1sg59i1
    realname: teamol
    username: teamol
    kernel:
    package: linux-generic
    keyboard:
    layout: us
    toggle: null
    variant: ''
    locale: en_US.UTF-8
    network:
    ethernets:
    enx00e04c6803e3:
    dhcp4: true
    enx4ec197e4f6ae:
    dhcp4: true
    enxe2015072449b:
    critical: true
    dhcp-identifier: mac
    dhcp4: true
    version: 2
    source:
    id: ubuntu-server
    search_drivers: false
    ssh:
    allow-pw: true
    authorized-keys: []
    install-server: true
    storage:
    config:
    - ptable: gpt
    serial: USB_SanDisk_3.2Gen1_0101025e7ed32c68c0797f41acfb4a5b9fb7c1daaf35c7ca0750772f90e0d081e4ea000000000000000000001a55885c0002530091558107952a45ec-0:0
    path: /dev/sda
    wipe: superblock-recursive
    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
    offset: 1048576
    type: partition
    id: partition-0
    - fstype: fat32
    volume: partition-0
    preserve: false
    type: format
    id: format-0
    - device: disk-sda
    size: 2147483648
    wipe: superblock
    number: 2
    preserve: false
    grub_device: false
    offset: 1128267776
    type: partition
    id: partition-1
    - fstype: ext4
    volume: partition-1
    preserve: false
    type: format
    id: format-1
    - device: disk-sda
    size: 58253639680
    wipe: superblock
    number: 3
    preserve: false
    grub_device: false
    offset: 3275751424
    type: partition
    id: partition-2
    - name: ubuntu-vg
    devices:
    - partition-2
    preserve: false
    type: lvm_volgroup
    id: lvm_volgroup-0
    - name: ubuntu-lv
    volgroup: lvm_volgroup-0
    size: 29125246976B
    wipe: superblock
    preserve: false
    type: lvm_partition
    id: lvm_partition-0
    - fstype: ext4
    volume: lvm_partition-0
    preserve: false
    type: format
    id: format-2
    - path: /
    device: format-2
    type: mount
    id: mount-2
    - path: /boot
    device: format-1
    type: mount
    id: mount-1
    - path: /boot/efi
    device: format-0
    type: mount
    id: mount-0
    updates: security
    version: 1

http://www.kler.cn/a/371844.html

相关文章:

  • 【热门主题】000013 C++游戏开发全攻略
  • CH569开发前的测试
  • 【大数据】Flink + Kafka 实现通用流式数据处理详解
  • GPT避坑指南:如何辨别逆向、AZ、OpenAI官转
  • 13.音乐管理系统(基于SpringBoot + Vue)
  • 雷军:对“雷军语音包”感到不适,希望停止使用
  • python通过translate库实现中英文翻译
  • 【libGL error】Autodl云服务器配置ACT的conda虚拟环境生成训练数据时,遇到了libGL相关错误,涉及swrast_dri.so
  • 数据采集(全量采集和增量采集)
  • 三方接口调用设计方案
  • 3. STM32之TIM实验--输出比较(PWM输出,电机,四轴飞行器,智能车,机器人)--(实验1:PWM驱动LED呼吸灯)
  • sparksql建临时表的几种方式
  • Java | Leetcode Java题解之第513题找树左下角的值
  • 数据结构 ——— 二叉树的概念及结构
  • 联动香港、成都、武汉三所高校!“2024 深圳国际金融科技大赛”校园行圆满结束
  • MySql基础34题写题记录(21-29)
  • 【AI】numpy_pandas_matplotlib_sklearn合集
  • macOS Sonoma 14.7.1 (23H222) Boot ISO 原版可引导镜像下载
  • 没有对象来和我手撕红黑树吧
  • 安装git-lfs发生报错Could not find Git; can not register Git LFS.解决方案
  • Milvus - 内存索引类型详解
  • 中阳金融智能量化交易系统的创新与未来发展
  • 出海要深潜,中国手机闯关全球化有了新标杆
  • 网络安全包含哪些方面?如何加强网络安全建设?
  • 函数练习python
  • BERT,RoBERTa,Ernie的理解