How to Make a TV Box with Kodi & OpenVPN

Build a Kodi TV box from a Raspberry Pi: flash LibreELEC, run the wizard, then add VPN Manager for OpenVPN. Hardware, steps, and fixes inside.

I like a Raspberry Pi with Kodi as a cheap TV box that boots straight into a media library, and adding OpenVPN keeps the traffic between the box and the internet private. In this guide I build the whole box the way I would: the hardware, the LibreELEC install, the first-boot wizard, and the VPN setup.

Turn a Raspberry Pi into a Kodi TV box by flashing LibreELEC onto a microSD card, booting the Pi into Kodi, then adding the VPN Manager for OpenVPN add-on and connecting your VPN. The whole build takes about an hour, and most of it is waiting for the card to write.

What You Need

Gather the parts before you start. The Pi model decides which LibreELEC image to download, so check the board first.

PartWhat to get
Raspberry PiPi 4 or Pi 5 for the best result; Pi 2 or Pi 3 still works
Power supplyThe official supply for your Pi model (5.1V for Pi 2, USB-C for Pi 4/5)
microSD card16 GB or larger, Class 10 or faster
Card readerBuilt into most laptops, or a cheap USB reader
HDMI cableA cable or adapter that fits your Pi and your TV
TV or monitorAny screen with an HDMI input
ComputerA Windows, Mac, or Linux computer to write the card
NetworkAn Ethernet cable, or Wi-Fi for the Pi 4/5

Step 1: Flash LibreELEC onto the microSD Card

LibreELEC is a small Linux system built around Kodi. It boots straight into the media center, carries no desktop, and updates itself, so it fits a TV box better than a full operating system.

  1. Open the LibreELEC downloads page and pick the image for your Raspberry Pi model. The release is LibreELEC 12.2 with Kodi 21.3.
  2. Download the LibreELEC USB-SD Creator for your computer. It downloads the image and writes the card in four steps.
  3. Insert the microSD card into the reader. Check the drive letter or device name twice: writing the image erases the card completely.
  4. Pick your Pi model and the release in the Creator, choose the card as the destination, and click Write. Wait for it to finish, then eject the card safely.
  5. If you use Linux, download the .img.gz file for your model instead and write it with Raspberry Pi Imager or Balena Etcher.
how to make tvbox raspberrypi kodi openvpn Raspberry Pi board wifirouterzone.com
Pick the LibreELEC image for your exact Pi model, then write it to the microSD card.

Sources: LibreELEC: Downloads lists the current release, the USB-SD Creator, and the image for every supported Pi model.

The competitor tutorial for this build still uses Win32DiskImager and a Pi 2 image from years ago. That tool works, but the USB-SD Creator is the current official route.

Step 2: First Boot and the LibreELEC Wizard

Put the card in the Pi, connect the HDMI cable and the network cable, then connect the power. LibreELEC expands the storage on its first boot, then opens the setup wizard.

  1. Insert the prepared microSD card into the Pi, connect HDMI to the TV, and plug in the power. LibreELEC boots and reboots once to expand the filesystem.
  2. Pick your language in the wizard. English is the default, and the choice only affects the menus.
  3. Give the box a hostname, such as LibreELEC. The hostname identifies the box on your network, so you can reach it without remembering its IP address.
  4. Set the network: use the wired connection, or pick your Wi-Fi network and enter its password. The wizard shows the IP address the box gets, such as 192.168.1.33.
  5. Decide on SSH and Samba. Enable SSH only if you plan to manage the box from another computer, and set a strong password when it asks. Samba shares the box’s files on the network.

When the wizard finishes, Kodi opens on the TV. A TV remote over HDMI-CEC, a keyboard, or the Kore app on your phone all drive it.

Step 3: Add the VPN Manager for OpenVPN

LibreELEC carries no VPN settings menu, so the VPN runs through a Kodi add-on. The VPN Manager for OpenVPN add-on, from the Zomboided repository, is the route the Kodi community documents for this build.

  1. On your computer, open an SSH client such as PuTTY and connect to the Pi’s IP address. Log in as root with the password you set when you enabled SSH.
  2. Download the latest Zomboided repository release from its GitHub page and copy the .zip file to the Pi’s home folder, with a USB stick or over SSH. Do not use an old release number from an old tutorial.
  3. In Kodi, open Settings, then Add-ons, and turn on Unknown sources. This step is required to install a .zip file from outside the official add-on list.
  4. Go to Add-ons, then My Addons, then Install from ZIP file. Pick the home folder and the repository .zip file, and wait for the install to finish.
  5. Go to Add-ons, then Install From Repository, then the Zomboided Add-on Repository, then Services, then VPN Manager for OpenVPN. Click Install.

The add-on appears in the Add-ons menu when the install finishes. The competitor tutorial for this build names a 1.0.0 release of the repository from years ago; download the latest release instead, because the old file may not match the current Kodi version.

Step 4: Connect the VPN

Open the VPN Manager add-on and run its wizard. It downloads the server files from your VPN provider, so have your VPN account details ready.

  1. Open VPN Manager for OpenVPN and click the Wizard button. The wizard downloads the .crt files and configuration files from your VPN provider.
  2. Pick your VPN provider from the list. This guide uses no single provider: pick the one you already pay for.
  3. Enter your VPN username, usually the email you registered with, and your VPN password.
  4. Turn on auto-connect, so the VPN connects each time Kodi starts. Pick UDP as the protocol unless your firewall blocks it; OpenVPN also works over TCP.
  5. Pick a server. Choose one near you for speed, or one in the country whose streaming library you want.
  6. Confirm the connection when the wizard asks to start it. Kodi shows the VPN server details when the connection succeeds.

Check the connection from your computer: open our What Is My IP tool before and after the VPN connects, and confirm that the address changes to the VPN server’s country. If the address does not change, the VPN is not routing traffic yet.

Add Your Movies and Shows to Kodi

Kodi is a library, not a streaming service. Point it at your files and it builds a browsable collection with posters, descriptions, and watched marks.

  1. Put your files on a USB drive plugged into the Pi, a shared folder on your computer, or a NAS on the same network.
  2. In Kodi, open Videos, then Files, then Add videos, and pick the location.
  3. Set the content type to Movies or TV shows, pick a scraper, and let Kodi scan the files.
  4. Browse the library from the home screen. Kodi groups films by title and shows by series, season, and episode.

Kodi cannot play paid streaming apps that need their own DRM. Check each service’s app and DRM needs separately before you treat the Pi as a replacement for a commercial streaming box. Our router setup guide covers the network side if the Pi cannot see a shared folder.

TV Box Problems and Fixes

Most Kodi TV box problems come from the card, the image, or the network. Work down this list before you rebuild anything.

  • LibreELEC will not boot: the image is for the wrong Pi model, or the card wrote badly. Download the image for your exact board, write it again with the USB-SD Creator, and try another microSD card.
  • No HDMI signal: check the cable and the TV input, then try another HDMI port. Some Pi models need the cable plugged in before power.
  • Wizard network step fails: plug in an Ethernet cable for the first boot. Wi-Fi works after setup, but the cable removes the network from the list of suspects.
  • SSH is refused: SSH is off by default. Enable it in the wizard or in the LibreELEC settings, and check that you use the IP address the wizard showed.
  • Repository .zip will not install: turn on Unknown sources in the add-on settings first, and check that the .zip file is the latest release for your Kodi version.
  • VPN will not connect: check the username and password, pick another server, and try TCP if UDP fails. A firewall on the router can block UDP, and the provider’s own status page shows outages.
  • Streaming is slow over the VPN: pick a server near you and test with the VPN off. If the line is fast without it, the server is the bottleneck, not the Pi.
  • Kodi cannot see the NAS: check that the Pi and the NAS share the same network, and that the share name and password are right. A wired connection fixes most share problems.
  • 4K video stutters: the Pi 2 and Pi 3 cannot decode 4K smoothly. Move the box to a Pi 4 or Pi 5, which decode HEVC in hardware.
  • VPN drops on wake: open the VPN Manager settings, go to the Monitor tab, and turn on Force reconnect on wake and Try next connection if first connect fails.

If the box still will not boot after a fresh write, the card is the most likely fault. Cheap or worn cards fail under the constant writes of a media library, so a new Class 10 card fixes more boots than any setting change. If the network itself is the problem, check the gateway address with our Router IP Finder tool.

A Pi TV box is a small project with a big payoff: one board, one card, and one evening gives you a media center that boots into Kodi and keeps its traffic private.

FAQs About How to Make a TV Box with Kodi & OpenVPN

A Raspberry Pi 4 or Pi 5 works best: both run the current LibreELEC release with Kodi 21.3 and decode HEVC video in hardware. A Pi 2 or Pi 3 still boots LibreELEC, but it struggles with heavy skins and 4K video.

A VPN hides your streaming traffic from your internet provider and anyone else on the network path. It is not required for Kodi to work, but the VPN Manager add-on makes it easy to add one, and this guide covers it.

The usual cause is the wrong image for the board, or a card written badly. Download the image for your exact Pi model, write it again with the USB-SD Creator, and try another microSD card if it still fails.

Yes, and Kodi runs on it as an app. LibreELEC is the simpler choice for a TV box, because it boots straight into Kodi and carries nothing else to maintain.

Put the files on a USB drive, a network share, or a NAS, then add that location as a video source in Kodi. Kodi scans the files and builds a library with posters and descriptions.

The VPN server distance and the Pi’s processor set the speed. Pick a server near you, use UDP, and test with the VPN off: if the line is fast without it, the server is the bottleneck, not the Pi.

The team behind this guide
Kevin Doyle

Kevin Doyle found this topic
SEO Research Lead
Focus: Topic & Keyword Research

Priya Sharma

Priya Sharma wrote this guide
Content Writer · Published November 27, 2026
Focus: Broadband & ISP Guides

Nina Petrova

Nina Petrova designed the visuals
Graphic Designer
Focus: Brand & Illustrations

Awais

Awais verified the facts
Founder & Editor-in-Chief · Last verified: November 2026
Focus: Final fact-check & publishing

Similar Posts