boxcutter / ubuntu

Virtual machine templates for Ubuntu written in legacy JSON
Apache License 2.0
738 stars 374 forks source link

subiquity/Install/install/postinstall/install_build-essentials returned non-zero exit status 100 #202

Open basictheprogram opened 3 years ago

basictheprogram commented 3 years ago
Banners_and_Alerts_and_ubuntu2004_and_New_Issue_·_boxcutter_ubuntu

Not sure how to get to the local filesystem when the installer fails on a VMware Fusion build. The crash log is written to /var/crash/nnnnn.nnnnn.install_fail.crash

basictheprogram commented 3 years ago

This http/user-data got me around the above crash/error, I commented out the build-essential package

#cloud-config
autoinstall:
  version: 1
  identity:
    hostname: vagrant
    password: '$6$iCc.WH.j$EuCSsvXtnIX2UnrunKZHApB3uvKuxplkAL1UBtBkab047y/jyn9WnpVAkc57jtqSv.hsLGje.milvneydC.Cw/'
    username: vagrant
  network:
    version: 2
    ethernets:
      enp0s3:
        dhcp4: true
        dhcp-identifier: mac
  ssh:
    install-server: true
  packages:
  #  - build-essential
    - perl
  late-commands:
    - 'echo "vagrant        ALL=(ALL)       NOPASSWD: ALL" > /target/etc/sudoers.d/vagrant'
    - chmod 440 /target/etc/sudoers.d/vagrant
    - apt-get -y install linux-headers-$(uname -r)
  locale: en_US
  keyboard:
    layout: us
    variant: ''

The problem now is Ethernet interface ens32 does not get assigned an IP address.