欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 健康 > 养生 > Ubuntu22.10/22.04 autoinstall--OK

Ubuntu22.10/22.04 autoinstall--OK

2025/5/1 22:18:27 来源:https://blog.csdn.net/weixin_38915451/article/details/144744078  浏览:    关键词:Ubuntu22.10/22.04 autoinstall--OK

第一步:建立ubuntu22.04 jammy apt本地源(见本博主对应栏)

---------------------------------------------------------------------------------------

ubuntu22.04 grub配置:

menuentry 'Ubuntu22.04-autoinstall(UEFI)' --id UBUNTU22.04-autoinstall {
    echo "Grub.cfg:loading linux kernel"
    linux  (http,172.31.1.20)/IMG_X86_UBUNTU/V22.04/vmlinuz-22.04-x86 http_host=172.31.1.20 http_port=8080 iommu=on vifio-pci.enable_sriov=1 ip=dhcp url=http://172.31.1.20:8082/ubuntu-22.04.4-live-server-amd64.iso autoinstall ds=nocloud-net\;s=http://172.31.1.20/IMG_X86_UBUNTU/V22.04/
    echo "Grub.cfg:loading linux initrd"
    initrd (http,172.31.1.20)/IMG_X86_UBUNTU/V22.04/initrd-22.04-x86
    echo "end of img"
}
 

ubuntu22.04 user-data配置:

#cloud-config
autoinstall:
  apt:
    disable_components: []
    geoip: false
    preserve_sources_list: false
    primary:
    - arches:
      - amd64
      - i386
      uri: http://172.31.1.21/ubuntu/
    - arches:
      - default
      uri: http://172.31.1.21/ubuntu/
    security:
    - arches:
      - default
      uri: http://172.31.1.21/ubuntu/
  drivers:
    install: false
  identity:
    hostname: tsingmicro
    password: $6$Ho7jv.SGhLgW6eDi$aGqOXW2qZ0XPNDyLK8BlNO/rqby2n9Z58/su4jxqstanskD6fzE3Jd1C/Q6ZZpUgbUoPX8Na93zPbx4FLnw4f0
    realname: tsingmicro
    username: tsingmicro
  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_0101025e7ed32c68c0797f41acf

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com