Failure downloading install.img for C8 stream

Problem: Install.img fails to download

Expected outcome: The download should complete and install should progress.

Foreman and Proxy versions:
Foreman 3.2.0
No external proxies
Foreman and Proxy plugin versions:
foreman-tasks 6.0.0
foreman_discovery 20.0.1
foreman_remote_execution 6.0.0
katello 4.4.0.rc2

Distribution and version:
CentOS Stream release 8

Other relevant data:

I can download the install.img using my web browser and get the same file size and sum as I can find on one of the distro mirrors.
C7 installs work just fine for me.

Welcome to CentOS Stream 8 dracut-049-201.git20220131.el8 (Initramfs)!

[   11.053357] systemd[1]: No hostname configured.
[   11.054533] systemd[1]: Set hostname to <localhost>.
[   11.056056] systemd[1]: Initializing machine ID from KVM UUID.
[   11.125559] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   11.130340] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[   11.133793] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Reached target Timers.
[  OK  ] Listening on Open-iSCSI iscsid Socket.
[   11.142416] usb 1-1: New USB device found, idVendor=0627, idProduct=0001, bcdDevice= 0.00
[   11.145080] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=5
[   11.147277] usb 1-1: Product: QEMU USB Tablet
[   11.148639] usb 1-1: Manufacturer: QEMU
[   11.149826] usb 1-1: SerialNumber: 42
[  OK  ] Listening on Open-iSCSI iscsiuio Socket.[   11.153298] input: QEMU QEMU USB Tablet as /devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input4

[   11.157272] hid-generic 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Mouse [QEMU QEMU USB Tablet] on usb-0000:02:00.0-1/input0
[  OK  ] Reached target Slices.
[  OK  ] Listening on Journal Socket.
[  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
         Starting Create list of required st…ce nodes for the current kernel...
         Starting Setup Virtual Console...
         Starting iSCSI UserSpace I/O driver...
         Starting Journal Service...
         Starting Load Kernel Modules...
[  OK  ] Reached target Initrd Root Device.
[   11.201271] Loading iSCSI transport class v2.0-870.
[   11.202513] IPMI message handler: version 39.2
[   11.205958] ipmi device interface
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started iSCSI UserSpace I/O driver.
[  OK  ] Started Journal Service.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
         Starting dracut cmdline hook...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
[   11.434379] BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
[   11.506806] dracut-cmdline[388]: Warning: 'ks=http://foreman-c8.netvel.net/unattended/provision?token=29868e3f-d1bd-426a-8707-4f772aae83d8'
[   11.509074] dracut-cmdline[388]: Warning: ks has been deprecated. All usage of Anaconda boot arguments without 'inst.' prefix have been deprecated and will be removed in a future major release. Please use inst.ks instead.
[   11.512404] dracut-cmdline[388]: Warning: 'kssendmac='
[   11.513430] dracut-cmdline[388]: Warning: kssendmac has been deprecated. All usage of Anaconda boot arguments without 'inst.' prefix have been deprecated and will be removed in a future major release. Please use inst.ks.sendmac instead.
[   11.681508] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
[   11.722112] iscsi: registered transport (tcp)
[   11.746478] iscsi: registered transport (qla4xxx)
[   11.747996] QLogic iSCSI HBA Driver
[   11.756532] libcxgbi:libcxgbi_init_module: Chelsio iSCSI driver library libcxgbi v0.9.1-ko (Apr. 2015)
[   11.803803] Chelsio T4-T6 iSCSI Driver cxgb4i v0.9.5-ko (Apr. 2015)
[   11.805782] iscsi: registered transport (cxgb4i)
[   11.814572] cnic: QLogic cnicDriver v2.5.22 (July 20, 2015)
[   11.820791] QLogic NetXtreme II iSCSI Driver bnx2i v2.7.10.1 (Jul 16, 2014)
[   11.822621] iscsi: registered transport (bnx2i)
[   11.834234] iscsi: registered transport (be2iscsi)
[   11.835405] In beiscsi_module_init, tt=000000005def78c3
[  OK  ] Started dracut cmdline hook.
         Starting dracut pre-udev hook...
[   11.924551] cramfs is deprecated and is slated for removal in a future RHEL release. Please use an alternative file system like squashfs.
[   11.948373] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   11.975972] dracut-pre-udev[652]: anaconda-modprobe: Module floppy not found
[   12.000416] No iBFT detected.
[   12.092018] raid6: sse2x1   gen()  8433 MB/s
[   12.110016] raid6: sse2x1   xor()  5583 MB/s
[   12.128017] raid6: sse2x2   gen()  6754 MB/s
[   12.146015] raid6: sse2x2   xor()  6588 MB/s
[   12.164014] raid6: sse2x4   gen()  8326 MB/s
[   12.182010] raid6: sse2x4   xor()  3460 MB/s
[   12.183286] raid6: using algorithm sse2x1 gen() 8433 MB/s
[   12.184566] raid6: .... xor() 5583 MB/s, rmw enabled
[   12.185811] raid6: using ssse3x2 recovery algorithm
[   12.188397] async_tx: api initialized (async)
[   12.191062] xor: measuring software checksum speed
[   12.202008]    prefetch64-sse: 12584.000 MB/sec
[   12.213016]    generic_sse:  8652.000 MB/sec
[   12.214130] xor: using function: prefetch64-sse (12584.000 MB/sec)
[   12.346185] device-mapper: uevent: version 1.0.3
[   12.347959] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[   12.445722] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.479684] dracut-pre-udev[652]: anaconda-modprobe: Module cbc not found
[   12.508572] dracut-pre-udev[835]: modprobe: ERROR: could not insert 'sha256_mb': No such device
[   12.614230] RPC: Registered named UNIX socket transport module.
[   12.616439] RPC: Registered udp transport module.
[   12.618162] RPC: Registered tcp transport module.
[   12.619876] RPC: Registered tcp NFSv4.1 backchannel transport module.
[  OK  ] Started dracut pre-udev hook.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
         Starting dracut pre-trigger hook...
[  OK  ] Started dracut pre-trigger hook.
         Starting udev Coldplug all Devices...
[   12.908070] pcieport 0000:00:02.6: pciehp: Slot(0-6): No device found
         Mounting Kernel Configuration File System...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started udev Coldplug all Devices.
         Starting Show Plymouth Boot Screen...
         Starting udev Wait for Complete Device Initialization...
[   13.131617] virtio_blk virtio2: [vda] 209715200 512-byte logical blocks (107 GB/100 GiB)
[   13.134577] vda: detected capacity change from 0 to 107374182400
[   13.154851] ACPI: \_SB_.GSIA: Enabled at IRQ 16
[   13.175220]  vda: vda1 vda2
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Started Forward Password Requests to Plymouth Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Paths.
[   13.187926] ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 6 ports 1.5 Gbps 0x3f impl SATA mode
[   13.190654] ahci 0000:00:1f.2: flags: 64bit ncq only 
[   13.224423] scsi host0: ahci
[   13.251528] 8021q: 802.1Q VLAN Support v1.8
[   13.276388] scsi host1: ahci
[   13.277979] scsi host2: ahci
[   13.279771] scsi host3: ahci
[   13.283052] scsi host4: ahci
[   13.285921] ACPI: \_SB_.GSIF: Enabled at IRQ 21
[   13.286699] virtio_net virtio0 enp1s0: renamed from eth0
[   13.287613] qxl 0000:00:01.0: vgaarb: deactivate vga console
[   13.292903] Console: switching to colour dummy device 80x25
[   13.294135] scsi host5: ahci
[   13.296033] [drm] Device Version 0.0
[   13.296653] ata1: SATA max UDMA/133 abar m4096@0xfce1d000 port 0xfce1d100 irq 47
[   13.297135] [drm] Compression level 0 log level 0
[   13.297138] [drm] 12286 io pages at offset 0x1000000
[   13.300082] ata2: SATA max UDMA/133 abar m4096@0xfce1d000 port 0xfce1d180 irq 47
[   13.301753] [drm] 16777216 byte draw area at offset 0x0
[   13.301756] [drm] RAM header offset: 0x3ffe000
[   13.302079] [drm] qxl: 16M of VRAM memory size
[   13.303701] ata3: SATA max UDMA/133 abar m4096@0xfce1d000 port 0xfce1d200 irq 47
[   13.305692] [drm] qxl: 63M of IO pages memory ready (VRAM domain)
[   13.305702] [drm] qxl: 64M of Surface memory size
[   13.318285] [drm] slot 0 (main): base 0xf4000000, size 0x03ffe000
[   13.319058] ata4: SATA max UDMA/133 abar m4096@0xfce1d000 port 0xfce1d280 irq 47
[   13.322357] [drm] slot 1 (surfaces): base 0xf8000000, size 0x04000000
[   13.323798] ata5: SATA max UDMA/133 abar m4096@0xfce1d000 port 0xfce1d300 irq 47
[   13.326671] [drm] Initialized qxl 0.1.0 20120117 for 0000:00:01.0 on minor 0
[   13.326771] ata6: SATA max UDMA/133 abar m4096@0xfce1d000 port 0xfce1d380 irq 47
[   13.336838] fbcon: qxldrmfb (fb0) is primary device
[   13.341288] Console: switching to colour frame buffer device 128x48
[   13.360244] qxl 0000:00:01.0: [drm] fb0: qxldrmfb frame buffer device
[   13.645486] ata4: SATA link down (SStatus 0 SControl 300)
[   13.647664] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[   13.649826] ata2: SATA link down (SStatus 0 SControl 300)
[   13.651437] ata3: SATA link down (SStatus 0 SControl 300)
[   13.653171] ata1.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[   13.654426] ata1.00: applying bridge limits
[   13.655657] ata6: SATA link down (SStatus 0 SControl 300)
[   13.657611] ata5: SATA link down (SStatus 0 SControl 300)
[   13.659479] ata1.00: configured for UDMA/100
[   13.660955] scsi 0:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
[   13.676973] scsi 0:0:0:0: Attached scsi generic sg0 type 5
[   13.707430] sr 0:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[   13.709039] cdrom: Uniform CD-ROM driver Revision: 3.20
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Device-Mapper Multipath Device Controller...
[  OK  ] Started Device-Mapper Multipath Device Controller.
         Starting Open-iSCSI...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Basic System.
[  OK  ] Started Open-iSCSI.
         Starting dracut initqueue hook...
[   14.260735] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[   14.263161] 8021q: adding VLAN 0 to HW filter on device enp1s0
[   15.099832] dracut-initqueue[1266]:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[   15.100121] dracut-initqueue[1266]:                                  Dload  Upload   Total   Spent    Left  Speed
100  3893    0  3893    0     0   2618      0 --:--:--  0:00:01 --:--:--  2618
[   17.671481] dracut-initqueue[1383]:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[   17.671724] dracut-initqueue[1383]:                                  Dload  Upload   Total   Spent    Left  Speed
 80  767M   80  614M    0     0  1013k      0  0:12:55  0:10:21  0:02:34     0
 80  767M   80  614M    0     0   689k      0  0:19:00  0:15:13  0:03:47     056  0:10:22  0:02:34     0
[  930.921574] dracut-initqueue[1383]: curl: (56) Recv failure: Connection timed out
[  945.296616] loop: module loaded
[  945.302951] loop0: detected capacity change from 0 to 644848640
[  945.311665] dracut-initqueue[1480]: losetup: /tmp/curl_fetch_url1/install.img: Warning: file does not fit into a 512-byte sector; the end of the file will be ignored.
[  945.318962] dracut: FATAL: Failed to find a root filesystem in /tmp/curl_fetch_url1/install.img.
[  945.318585] d[  945.322719] dracut: Refusing to continue
racut-initqueue[1483]: mount: /run/initramfs/squashfs: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
[  945.355233] printk: systemd-shutdow: 16 output lines suppressed due to ratelimiting
[  945.367068] systemd-shutdown[1]: Syncing filesystems and block devices.
[  945.370889] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  945.408550] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  945.421377] systemd-shutdown[1]: Unmounting file systems.
[  945.425362] [1498]: Remounting '/var/lib/nfs/rpc_pipefs' read-only in with options '(null)'.
[  945.430448] [1499]: Unmounting '/var/lib/nfs/rpc_pipefs'.
[  945.441331] [1501]: Remounting '/' read-only in with options 'size=7963032k,nr_inodes=1990758'.
[  945.446144] systemd-shutdown[1]: All filesystems unmounted.
[  945.448595] systemd-shutdown[1]: Deactivating swaps.
[  945.450826] systemd-shutdown[1]: All swaps deactivated.
[  945.453116] systemd-shutdown[1]: Detaching loop devices.
[  945.456185] systemd-shutdown[1]: Detaching loopback /dev/loop0.
[  945.464606] systemd-shutdown[1]: All loop devices detached.
[  945.505431] reboot: System halted

Hey, so I had the same issue, issue is due to using only 2GB of ram to provision CentOS 8+. If you change to 4GB of RAM, it will install.

More Details: CentOS 8 Stream installation with Foreman 2.3.5