Rocky9 and Rocky10 generic cloud images hang when building with Terraform

I am trying to build test servers using Terraform on KVM. It works if I use:

source = “https://download.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-GenericCloud-LVM.latest.x86_64.qcow2”

But hangs if I change this to R9 or R10 images?

The other issue I have is if I try to create a fixed-IP it is ignored and I still get a DHCP address?

data "template_file" "network_config" {
  template = file("${path.module}/network.cfg")
}

# cat network.cfg
# Source - https://stackoverflow.com/q
# Posted by Lion, modified by community. See post 'Timeline' for change history
# Retrieved 2025-12-12, License - CC BY-SA 4.0

version: 2
ethernets:
  ens3:
    dhcp4: false
    dhcp6: false
     addresses:
       - 10.21.184.199
    gateway4: 10.21.184.1

I also tried via the cloud_init.cfg:

 cat cloud_init.cfg

#cloud-config

..

network:
version: 2
ethernets:
ens3:
dhcp4: no
addresses:
- 10.21.184.199/22
gateway4: 10.21.184.1
nameservers:
addresses:
- 10.21.184.1

Does anyone know why Terraform doesn’t work with Rocky9 and 10, and has anyone managed to create a VM with a fixed-IP?