Ubuntu 20.04 installer downloads ISO more than once

Apologies if this has been dealt with and I wasn’t able to find it when searching.

I have been working through the example posted by Andrew Lowther at Automated 20.04 Server Installation using PXE and live server image . For example using a linux cmdline similar to:

linux /vmlinuz ip=dhcp url=http://${pxe_default_server}/tftp/ubuntu-20.04-live-server-amd64.iso autoinstall ds=nocloud-net\;s=http://${pxe_default_server}/tftp/

…and got things working (Thanks Andrew!)

As one can see, the installer is going to downlaoad the ISO from http://${pxe_default_server}/tftp/ubuntu-20.04-live-server-amd64.iso in that example. In my httpd logs, I can see that the ISO gets downloaded 3 times over the network when doing one automated install. Is there a way I can make it not do that?

192.168.1.225 - - [06/Apr/2021:22:09:47 +0000] "GET /ubuntu-20.04.1-live-server-amd64.iso HTTP/1.1" 200 958398464 "-" "Wget"
192.168.1.225 - - [06/Apr/2021:22:13:24 +0000] "GET /ubuntu-20.04.1-live-server-amd64.iso HTTP/1.1" 200 958398464 "-" "Cloud-Init/20.2-45-g5f7825e2-0ubuntu1~20.04.1"
192.68.1.225 - - [06/Apr/2021:22:16:50 +0000] "GET /ubuntu-20.04.1-live-server-amd64.iso HTTP/1.1" 200 958398464 "-" "Cloud-Init/20.2-45-g5f7825e2-0ubuntu1~20.04.1"

Thanks!

1 Like

This looks like a technical support request. This site is for the co-ordination of the Ubuntu project(s), and other non-support matters. For Ubuntu Support options, please have a look at https://community.ubuntu.com/t/finding-help/709 (It turns out you have already asked on support sites)

I do note you’ve already posted this on support sites though

1 Like

Thanks for clarifying; wasn’t obvious where to post so ended up with multiple.

It’s because cloud-init looks for url= on the kernel command line too. You can stop it doing that by putting cloud-config-url= on the command line as well, with a small or empty file at the end of it.

2 Likes

Administrative question then. Having realized that this post isn’t in the right place, and having found help, is there a way for me to delete it?

No. Simply mark it as a “Solution” (it’s among your post options) and let it age into obscurity…except for the next person who asks this question.

1 Like

i dont get the solution can anyone explain further? also realized that the iso is downloaded multiple times…

Have a look at https://askubuntu.com/questions/1329734/ubuntu-20-04-installer-downloads-iso-more-than-once and let us know on that thread where you’re stuck.

awesome, now i have the background, thanks!

1 Like