The /var/log/installer/subiquity-server-debug.log file can give a comprehensive answer on if the autoinstall data did in fact make it to the installer. One scenario that sounds similar to your symptoms is, if you’re providing autoinstall data by way of cloud-init, but it is not valid cloud-config data, it won’t make it as far as subiquity. This explanation was written in hopes of disambiguating that problem: https://canonical-subiquity.readthedocs-hosted.com/en/latest/explanation/cloudinit-autoinstall-interaction.html
In terms of looking at logs for debugging, a successful autoinstall will contain a line in subiquity-server-debug.log that looks similar to this:
2024-05-08 19:53:30,082 DEBUG subiquity.server.server:703 load_autoinstall_config only_early True file /autoinstall.yaml
The file value at the end there is somewhat deceptive, any value that isn’t None is success. (Data provided via cloud-init will be copied to /autoinstall.yaml.)
Failure on the other hand looks like:
2024-05-08 21:10:27,076 DEBUG subiquity.server.server:703 load_autoinstall_config only_early True file None
Again, the file argument is what we’re interested in, and it shows None
this time. So in this case, no autoinstall data made it to Subiquity, perhaps because it wasn’t provided, or perhaps it could be that the data was malformed so it didn’t make it that far, or maybe something I’m not thinking of right now.
In Ubuntu 24.04 we have added more debugging clues - these are visible in the logs, and in the Subiquity UI when installing Ubuntu Server. I think those autoinstall failures haven’t quite made it as far yet as showing in the Ubuntu Desktop installer UI, but the errors should still be visible in the log.
This last logfile snippet is of me intentionally providing malformed cloud-config - it won’t be acted upon as autoinstall because of this:
input:
#cloud-config
# THIS IS AN EXAMPLE OF BAD AUTOINSTALL DATA, PROVIDED TO DEMONSTRATE WHAT
# FAILURES WOULD LOOK LIKE
version: 1
source:
id: ubuntu-server-minimal
result in subiquity-server-debug.log:
2024-05-08 21:26:42,298 WARNING subiquity.server.server:130 cloud-init schema validation failure for: 'source'
2024-05-08 21:26:42,298 DEBUG curtin.reporting.warning.subiquity/load_cloud_config/extract_autoinstall:45 warning: subiquity/load_cloud_config/extract_autoinstall: cloud-init schema validation failure for: 'source'
2024-05-08 21:26:42,299 ERROR subiquity.server.server:135 'source' is valid autoinstall but not found under 'autoinstall'.
2024-05-08 21:26:42,299 DEBUG curtin.reporting.error.subiquity/load_cloud_config/extract_autoinstall:45 error: subiquity/load_cloud_config/extract_autoinstall: 'source' is valid autoinstall but not found under 'autoinstall'.
2024-05-08 21:26:42,299 DEBUG curtin.reporting.finish.subiquity/load_cloud_config/extract_autoinstall:45 finish: subiquity/load_cloud_config/extract_autoinstall: FAIL: Misplaced autoinstall directives resulted in a cloud-init schema validation failure.
2024-05-08 21:26:42,299 DEBUG curtin.reporting.finish.subiquity/load_cloud_config:45 finish: subiquity/load_cloud_config: FAIL: Misplaced autoinstall directives resulted in a cloud-init schema validation failure.