Score:0

Can't run autoinstall with ubuntu server 20.04

bt flag

Good morning,

I have a problem with starting up autoinstall while booting Ubuntu Server 20.04 ISO. I have already read all documentation and couple internet manuals but I'm not able to make Ubuntu using user-data file.

I have user-data file prepared by Ubuntu installer. I'm trying to boot it with parameters like:

autoinstall ds=nocloud-net;s=ftp://repo/files/ubuntu2004/

I created an empty meta-data file, tried a lot of ftp/http, syntax combination for this. Nothing was successful so far. Does anyone know what I'm doing wrong? Each time cloud-init is loading but then it starts interactive installation. I'm running out of ideas :(

Score:1
jp flag

FYI, ftp is not supported by cloud-init. This can be confusing because the documentation used to claim that is was, but that should be fixed now.

Since you claim that you also tried http without success, here are a few thoughts (for these items I simply replaced ftp in your URL with http for demonstration purposes)

  • wrap the ds argument in quotes. Otherwise grub will ignore everything past the ;. E.g. ds="nocloud-net;s=http://repo/files/ubuntu2004/".
  • confirm the user-data file can be downloaded by using curl in a terminal. E.g. this should print your file curl http://repo/files/ubuntu2004/user-data.
  • check your web server logs to see if the user-data and meta-data files are being requested by the installer.
  • access a terminal in the installer and check the logs in /var/log/installer
adio93 avatar
bt flag
First thank you for support. I tried with http and in the logs I can see error /vendor-data file. Do I need to add more files? [10/Sep/2021:06:49:34 +0000] "GET /meta-data HTTP/1.1" 200 0 "-" "Cloud-Init/21.1-19-gbad84ad4-0ubuntu2" "-" 10.206.190.126 - - [10/Sep/2021:06:49:34 +0000] "GET /user-data HTTP/1.1" 200 6712 "-" "Cloud-Init/21.1-19-gbad84ad4-0ubuntu2" "-" 2021/09/10 06:49:34 [error] 33#33: *6 open() "/usr/share/nginx/html/vendor-data" failed (2: No such file or directory), client: 10.206.190.126, server: localhost, request: "GET /vendor-data HTTP/1.1", host: "10.206.190.11"
Andrew Lowther avatar
jp flag
You don't need a `vendor-data` file. It sounds like the `user-data` file is downloaded from the web server, so I would check the logs in the installer.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.