Question

How to enable EFI on droplets?

Home Assistant requires EFI:

Make sure EFI is enabled. If EFI is not enabled, HAOS won’t boot.

https://www.home-assistant.io/installation/linux#hypervisor-specific-configuration

Is there a way to use EFI instead of BIOS? Or do we have to use nested VMs to achieve this?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
September 16, 2024

Heya,

By default Droplets use BIOS firmware and can’t be switched to EFI. All you are left are workarounds such as using Docker to spin up a docker container.

Hey,

Enabling EFI (Extensible Firmware Interface) on DigitalOcean Droplets can be a bit tricky since, by default, Droplets use BIOS firmware. Unfortunately, DigitalOcean doesn’t provide a straightforward way to switch from BIOS to EFI on their standard Droplets.

Home Assistant OS (HAOS) is designed to boot using UEFI firmware. EFI provides modern boot features that HAOS relies on, and without it, HAOS won’t boot properly.

However, what you could do is to install Home Assistant Container instead using Docker:

  • Install Docker:

    sudo apt update
    sudo apt install docker.io
    sudo systemctl start docker
    sudo systemctl enable docker
    

    Or use the 1-Click installation: https://marketplace.digitalocean.com/apps/docker

  • Run Home Assistant Container:

    As per the instructions here start your container:

    sudo docker run -d --name homeassistant --restart=unless-stopped \
      -e TZ=YOUR_TIME_ZONE \
      -v /home/your_user/homeassistant:/config \
      --network=host \
      ghcr.io/home-assistant/home-assistant:stable
    

    Replace YOUR_TIME_ZONE with your actual time zone (e.g., America/New_York) and adjust the volume path as needed.

  • Access Home Assistant:

    Navigate to http://your_droplet_ip:8123 to access the Home Assistant web interface.

While DigitalOcean doesn’t natively support enabling EFI on Droplets, using the Docker container method is a viable workaround to get Home Assistant up and running.

Let me know if you need any more help or clarification!

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more