How can i set KVM static IP

job “lokivm” {
datacenters = [“dc1”]
type = “service”
group “logs” {
count = 1

restart {
  attempts = 2
  interval = "30m"
  delay = "15s"
  mode = "fail"
}

ephemeral_disk {
  size = 10000
}

network {
  mode = "cni/mynet"

}

task "myvmtask" {

  driver = "qemu"

  config {
    image_path        = "local/ubuntu-18.04-server-cloudimg-amd64.img"
    graceful_shutdown = true
    args              = ["-nodefaults"]
    ipv4_address =  [192.168.0.129/24]
  }


  artifact {
     source = "https://cloud-images.ubuntu.com/releases/bionic/release-20200908/ubuntu-18.04-server-cloudimg-amd64.img"
  }

}

}
}