Template ubuntu vm with virtual box with the access to docker from remote

My configuration is not working and i don’t know why. i try to use runcmd, late_commands and write_files but they don’t work. The VM gives the errore “used fallback datasource”

someone help me i am desperate pls

SOURCE

source “virtualbox-iso” “ubuntu-server-auto” {
vm_name = var.vm_name
guest_os_type = var.vm_guest_os_type
cpus = var.vm_cpu_cores
memory = var.vm_mem_size
iso_url = var.iso_url
iso_checksum = var.iso_checksum
boot_wait = var.vm_boot_wait
cd_files = [
“./{var.data_directory}/meta-data", "./{var.data_directory}/user-data”]
cd_label = “cidata”
boot_command = [
“e”,
"linux /casper/vmlinuz autoinstall ds=nocloud;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ ",
“initrd /casper/initrd”,
“”,
“”
]
ssh_username = var.ssh_username
ssh_password = var.ssh_password
ssh_timeout = “120m”
}

##################################################################################

BUILD

##################################################################################

build {
sources = [“source.virtualbox-iso.ubuntu-server-auto”]

provisioner “shell” {
inline = [
“cloud-init status --wait”,
]
}
}

#cloud-config
autoinstall:
version: 1
update: true
locale: en_US
keyboard:
layout: it
packages:
- docker.io
- docker-compose
package_upgrade: true
runcmd:
- sudo touch /etc/cloud/cloud-init.disabled
write_files:
- path: /etc/systemd/system/docker.service.d/override.conf
content: |
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
storage:
version: 1
config:
- id: disk1
type: disk
ptable: gpt
match:
size: largest
grub_device: true
wipe: superblock-recursive
- id: bios_part
type: partition
size: 1M
device: disk1
flag: bios_grub
- id: boot_part
type: partition
size: 5GB
device: disk1
flag: boot
- id: boot_format
type: format
fstype: ext4
volume: boot_part
- id: boot_mount
type: mount
path: /boot
device: boot_format
- id: vg_partition
type: partition
size: 25GB
device: disk1
- id: volgroup1
name: vg1
type: lvm_volgroup
devices:
- vg_partition
- id: lvm_swap_partition
type: lvm_partition
name: swap
volgroup: volgroup1
size: 5GB
- id: swap_format
type: format
fstype: swap
volume: lvm_swap_partition
- id: lvm_partition_home
type: lvm_partition
name: home
volgroup: volgroup1
size: 10GB
- id: home_format
type: format
fstype: ext4
volume: lvm_partition_home
- id: lvm_partition_root
type: lvm_partition
name: root
volgroup: volgroup1
size: 8GB
- id: root_format
type: format
fstype: ext4
volume: lvm_partition_root
- id: mount_root
type: mount
path: /
device: root_format
- id: mount_home
type: mount
path: /home
device: home_format
identity:
hostname: test-desktop
username: ubuntu
password: “$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0”
ssh:
install-server: true
allow-pw: true
ssh_pwauth: true
user-data:
disable_root: true