Error installing HA in VirtualBox on Windows 10

Have installed VirtualBox and tried installing HA via the provided .vdi file but when i go to homeassistant.local:8123 i get an error saying there was an Error Installing Home Assistant. Have shown the 2 parts of the log showing the errors.
From a few google searches it was suggest to try changing to dns server address, which I did but still getting the same issue.
Any suggestions please?’

24-01-03 22:17:35 INFO (MainThread) [supervisor.store.git] Cloning add-on https://github.com/home-assistant/addons repository
24-01-03 22:17:40 ERROR (MainThread) [supervisor.store.git] Can't clone https://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/hassio-addons/repository /data/addons/git/a0d7b954
  stderr: 'Cloning into '/data/addons/git/a0d7b954'...
fatal: unable to access 'https://github.com/hassio-addons/repository/': Could not resolve host: github.com
'.
24-01-03 22:17:40 ERROR (MainThread) [supervisor.store] Can't retrieve data from https://github.com/hassio-addons/repository due to 
24-01-03 22:17:40 INFO (MainThread) [supervisor.resolution.module] Create new suggestion execute_remove - store / a0d7b954
24-01-03 22:17:40 INFO (MainThread) [supervisor.resolution.module] Create new issue fatal_error - store / a0d7b954
24-01-03 22:17:40 INFO (MainThread) [supervisor.store] Loading add-ons from store: 32 all - 32 new - 0 remove
24-01-03 22:17:40 INFO (MainThread) [supervisor.addons] Found 0 installed add-ons
24-01-03 22:17:40 INFO (MainThread) [supervisor.backups.manager] Found 0 backup files
24-01-03 22:17:40 INFO (MainThread) [supervisor.discovery] Loaded 0 messages
24-01-04 08:41:33 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state setup
24-01-04 08:41:33 INFO (MainThread) [supervisor.resolution.check] System checks complete
24-01-04 08:41:33 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
24-01-04 08:41:33 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-01-04 08:41:33 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - setup
24-01-04 08:41:33 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup
24-01-04 08:41:33 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-01-04 08:41:33 INFO (MainThread) [__main__] Running Supervisor
24-01-04 08:41:33 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good
24-01-04 08:41:33 INFO (MainThread) [supervisor.supervisor] Fetching AppArmor profile https://version.home-assistant.io/apparmor_stable.txt
24-01-04 08:41:33 INFO (MainThread) [supervisor.host.apparmor] Adding/updating AppArmor profile: hassio-supervisor
24-01-04 08:41:33 INFO (MainThread) [supervisor.supervisor] Update Supervisor to version 2023.12.0
24-01-04 08:41:33 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/amd64-hassio-supervisor with tag 2023.12.0.
24-01-04 08:47:49 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/amd64-hassio-supervisor:2023.12.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2023.12.0&fromImage=ghcr.io%2Fhome-assistant%2Famd64-hassio-supervisor&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.module] Create new issue update_failed - supervisor / None
24-01-04 08:47:49 ERROR (MainThread) [supervisor.supervisor] Update of Supervisor failed: Can't install ghcr.io/home-assistant/amd64-hassio-supervisor:2023.12.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2023.12.0&fromImage=ghcr.io%2Fhome-assistant%2Famd64-hassio-supervisor&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 08:47:49 CRITICAL (MainThread) [supervisor.core] Can't update Supervisor! This will break some Add-ons or affect future versions of Home Assistant!
24-01-04 08:47:49 INFO (MainThread) [supervisor.addons] Phase 'initialize' starting 0 add-ons
24-01-04 08:47:49 INFO (MainThread) [supervisor.addons] Phase 'system' starting 0 add-ons
24-01-04 08:47:49 INFO (MainThread) [supervisor.addons] Phase 'services' starting 0 add-ons
24-01-04 08:47:49 INFO (MainThread) [supervisor.core] Skipping start of Home Assistant
24-01-04 08:47:49 INFO (MainThread) [supervisor.addons] Phase 'application' starting 0 add-ons
24-01-04 08:47:49 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
24-01-04 08:47:49 INFO (MainThread) [supervisor.core] Supervisor is up and running
24-01-04 08:47:49 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant setup
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.module] Create new suggestion create_full_backup - system / None
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.module] Create new issue no_current_backup - system / None
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.check] System checks complete
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
24-01-04 08:47:49 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
24-01-04 08:47:49 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not healthy - supervisor
24-01-04 08:47:50 INFO (MainThread) [supervisor.host.services] Updating service information
24-01-04 08:47:50 INFO (MainThread) [supervisor.host.network] Updating local network information
24-01-04 08:47:50 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
24-01-04 08:47:50 INFO (MainThread) [supervisor.host.manager] Host information reload completed
24-01-04 08:53:55 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 08:53:55 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
24-01-04 08:54:25 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0
24-01-04 08:54:25 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.1.0.
24-01-04 09:00:01 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 09:00:01 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
24-01-04 09:00:31 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0
24-01-04 09:00:31 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.1.0.
24-01-04 09:06:07 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": context deadline exceeded")
24-01-04 09:06:07 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
24-01-04 09:06:37 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0
24-01-04 09:06:37 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.1.0.
24-01-04 09:12:13 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 09:12:13 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
24-01-04 09:12:44 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0
24-01-04 09:12:44 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.1.0.
24-01-04 09:18:20 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 09:18:20 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
24-01-04 09:18:50 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0
24-01-04 09:18:50 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.1.0.
24-01-04 09:24:25 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 09:24:25 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
24-01-04 09:24:56 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0
24-01-04 09:24:56 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.1.0.
24-01-04 09:30:31 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")
24-01-04 09:30:31 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
24-01-04 09:31:02 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/qemux86-64-homeassistant:landingpage to ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0
24-01-04 09:31:02 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/qemux86-64-homeassistant with tag 2024.1.0.
24-01-04 09:32:12 INFO (MainThread) [supervisor.plugins.dns] Restarting CoreDNS plugin
24-01-04 09:32:12 INFO (SyncWorker_3) [supervisor.docker.manager] Restarting hassio_dns
24-01-04 09:34:25 INFO (MainThread) [supervisor.plugins.dns] Restarting CoreDNS plugin
24-01-04 09:34:25 INFO (SyncWorker_2) [supervisor.docker.manager] Restarting hassio_dns
24-01-04 09:34:32 INFO (MainThread) [supervisor.plugins.dns] Restarting CoreDNS plugin
24-01-04 09:34:32 INFO (SyncWorker_3) [supervisor.docker.manager] Restarting hassio_dns
24-01-04 09:34:59 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/input/event5 - /dev/input/by-id/usb-VirtualBox_USB_Tablet-event-mouse
24-01-04 09:34:59 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/hidraw0 - None
24-01-04 09:34:59 INFO (MainThread) [supervisor.hardware.monitor] Detecting remove hardware /dev/bus/usb/002/002 - None
24-01-04 09:35:04 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/bus/usb/002/003 - None
24-01-04 09:35:04 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/input/event5 - /dev/input/by-id/usb-VirtualBox_USB_Tablet-event-mouse
24-01-04 09:35:04 INFO (MainThread) [supervisor.hardware.monitor] Detecting add hardware /dev/hidraw0 - None
24-01-04 09:35:04 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.1.0: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=2024.1.0&fromImage=ghcr.io%2Fhome-assistant%2Fqemux86-64-homeassistant&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": dial tcp: lookup ghcr.io: no such host")
24-01-04 09:35:04 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec
s6-rc: info: service legacy-services: stopping
24-01-04 09:35:09 INFO (MainThread) [supervisor.api] Stopping API on 172.30.32.2
24-01-04 09:35:09 INFO (MainThread) [supervisor.misc.scheduler] Shutting down scheduled tasks
24-01-04 09:35:09 INFO (MainThread) [supervisor.docker.monitor] Stopped docker events monitor
24-01-04 09:35:10 INFO (MainThread) [supervisor.hardware.monitor] Stopped Supervisor hardware monitor
24-01-04 09:35:10 INFO (MainThread) [supervisor.dbus.manager] Closed conection to system D-Bus.
24-01-04 09:35:10 INFO (MainThread) [supervisor.core] Supervisor is down - 0
24-01-04 09:35:10 INFO (MainThread) [__main__] Closing Supervisor

Most likely a DNS problem. I was having same issue, but I got it to work by setting my router to Dynamic DNS and turning off my virus real time scanning. Hope it works!