The installer hits an error when trying to get the preseed file:
┌──────────┤ [!!] Download debconf preconfiguration file ├──────────┐
│ │
│ Failed to retrieve the preconfiguration file │
│ The file needed for preconfiguration could not be retrieved from │
│ http://192.168.122.1/preseed. The installation will proceed in │
│ non-automated mode. │
│ │
│ <Continue> │
│ │
└───────────────────────────────────────────────────────────────────┘
Testing performed with Disco, Cosmic, Bionic, Xenial, and Trusty.
The output is similar if not identical, so pasting just one test, from Disco.
(Web Server, HTTP/HTTPS redirect, setup not included, ping me if interested.)
$ wget http:// archive. ubuntu. com/ubuntu/ dists/disco/ main/installer- amd64/current/ images/ netboot/ ubuntu- installer/ amd64/{linux,initrd.gz}
$ GUEST=disco
$ virt-install \ qcow2,bus= virtio, format= qcow2,size= 8 \ virbr0, model=virtio \ args='console= ttyS0 url=http:// 192.168. 122.1/preseed debian- installer/ allow_unauthent icated_ ssl=true'
--name $GUEST \
--vcpus 2 \
--memory 1024 \
--disk $GUEST.
--network bridge=
--graphics none \
--import \
--boot \
kernel=linux,\
initrd=initrd.gz,\
kernel_
The installer hits an error when trying to get the preseed file:
┌──────────┤ [!!] Download debconf preconfiguration file ├──────────┐ 192.168. 122.1/preseed. The installation will proceed in │ ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ─────── ───┘
│ │
│ Failed to retrieve the preconfiguration file │
│ The file needed for preconfiguration could not be retrieved from │
│ http://
│ non-automated mode. │
│ │
│ <Continue> │
│ │
└─
The synthetic tests with fetch-url:
===
~ # cat /proc/cmdline 192.168. 122.1/preseed debian- installer/ allow_unauthent icated_ ssl=true
console=ttyS0 url=http://
~ # cat /etc/default- release
disco
Without patch:
---
~ # fetch-url http:// 192.168. 122.1/preseed preseed certificate' .
ERROR: cannot verify 192.168.122.1's certificate, ...
...
To connect to 192.168.122.1 insecurely, use `--no-check-
~ # echo $?
1
With patch:
---
~ # wget --no-check- certificate http:// 192.168. 122.1/di- utils_1. 124ubuntu2_ amd64.udeb 1.124ubuntu2_ amd64.udeb
~ # udpkg -i di-utils_
~ # fetch-url http:// 192.168. 122.1/preseed preseed /192.168. 122.1// preseed [11/11] -> "./_fetch- url_preseed. 1467" [1]
WARNING: cannot verify 192.168.122.1's certificate, ...
...
2018-11-14 13:17:03 URL:https:/
~ # echo $?
0
With patch and Without d-i/allow_ unauthenticated _ssl=true: No Change
---
~ # cat /proc/cmdline 192.168. 122.1/preseed
console=ttyS0 url=http://
~ # wget --no-check- certificate http:// 192.168. 122.1/di- utils_1. 124ubuntu2_ amd64.udeb 1.124ubuntu2_ amd64.udeb
~ # udpkg -i di-utils_
~ # fetch-url http:// 192.168. 122.1/preseed preseed certificate' .
ERROR: cannot verify 192.168.122.1's certificate, ...
...
To connect to 192.168.122.1 insecurely, use `--no-check-
~ # echo $?
1