← All guides

Applio in a Proxmox LXC: train your own RVC voice model on an NVIDIA GPU

Applio turns a few minutes of your own speech into a voice model, then re-voices any recording with it. Most tutorials run it on Google Colab. We run it at home: Docker inside a Proxmox LXC container, on an NVIDIA RTX 3090.

This guide is what we actually did, with our own numbers, plus the fixes the upstream Docker setup needed. It also answers two questions people search for: whether realtime voice changing works on a server, and whether you need Colab at all.

What Applio is

Applio is a voice conversion tool built on RVC (Retrieval-based Voice Conversion). You train a model on a few minutes of clean speech, then any recording can be re-voiced so it sounds like that model. Everything runs on your own GPU and no audio leaves your network.

The web interface has tabs for inference (converting audio), training, text-to-speech followed by conversion, a voice blender and a realtime mode. Licence: MIT. Source: github.com/IAHispano/Applio.

Only train on your own voice or on voices you have permission to use. Cloning someone else's voice without consent can be illegal.

What we used

  • Proxmox host with an NVIDIA GeForce RTX 3090 (24 GB VRAM), driver 595.84, passed through to a privileged LXC container.
  • LXC: Debian 13, 4 cores, 8 GB RAM, 80 GB disk, features nesting=1 and keyctl=1.
  • Docker 29.9 and NVIDIA Container Toolkit 1.20.1 inside the container.
  • First install 2026-10-10; the compose file below was rebuilt from scratch and re-checked on 2026-11-23.

Step 1: give the container the GPU

  1. The container needs the NVIDIA device nodes and the same driver version as the host (userspace part only, without the kernel module). We covered that in detail in our GPU passthrough guide, so here is only the part of the container config that matters.
  2. The two dynamic device numbers (nvidia-uvm and nvidia-caps, 236 and 239 below) can change after a host reboot. Check them with cat /proc/devices | grep nvidia on the host and update the allow lines if they differ, or the GPU will silently disappear from the container.
  3. Inside the container, nvidia-smi must list the GPU before you go further.

/etc/pve/lxc/<id>.conf (GPU part)

features: nesting=1,keyctl=1
lxc.cgroup2.devices.allow: c 195:* rwm
lxc.cgroup2.devices.allow: c 236:* rwm
lxc.cgroup2.devices.allow: c 239:* rwm
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file
lxc.mount.entry: /dev/nvidiactl dev/nvidiactl none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-caps dev/nvidia-caps none bind,optional,create=dir

Step 2: Docker and the NVIDIA Container Toolkit

  1. Install Docker from Docker's own Debian repository and the NVIDIA Container Toolkit from NVIDIA's repository, then register the nvidia runtime with nvidia-ctk.
  2. One LXC-specific change is required: set no-cgroups = true in /etc/nvidia-container-runtime/config.toml. Inside an LXC the toolkit cannot manage device cgroups itself (Proxmox already did that in Step 1), and without this setting containers fail to start with a cgroup error.
  3. Test with docker run --rm --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all debian:trixie-slim nvidia-smi before building Applio.

Register the runtime and the LXC fix

nvidia-ctk runtime configure --runtime=docker
nvidia-ctk config --set nvidia-container-cli.no-cgroups --in-place
grep no-cgroups /etc/nvidia-container-runtime/config.toml   # no-cgroups = true
systemctl restart docker

Step 3: build and start Applio

  1. The upstream Dockerfile was out of date when we tested it (it pins a torchvision that does not match the torch version in requirements.txt), so we build from a small inline Dockerfile instead. Save the file below as compose.yaml in an empty folder and run docker compose up -d --build.
  2. The build downloads PyTorch with CUDA. The finished image was 12 GB in our rebuild on 2026-11-23 (17 GB in October, the dependencies change), so give the container 40 GB of disk or more. The rebuild took about 16 minutes on a home connection, and afterwards torch saw the RTX 3090 and the TTS tab worked.
  3. Open http://<container-ip>:6969 when the container is up. The first start takes a minute while Applio downloads its pretrained base models.

compose.yaml

# Needs an NVIDIA GPU, the NVIDIA driver and nvidia-container-toolkit on the host.
# The first build downloads PyTorch with CUDA and takes several minutes (image is 12-17 GB).
services:
  applio:
    build:
      context: .
      dockerfile_inline: |
        FROM python:3.12-trixie
        RUN apt-get update \
         && apt-get install -y --no-install-recommends git ffmpeg libportaudio2 \
         && rm -rf /var/lib/apt/lists/*
        RUN git clone --depth 1 https://github.com/IAHispano/Applio.git /app
        WORKDIR /app
        RUN python -m venv .venv \
         && .venv/bin/pip install --no-cache-dir --upgrade pip python-ffmpeg \
         && .venv/bin/pip install --no-cache-dir -r requirements.txt \
         && .venv/bin/pip install --no-cache-dir --no-deps torchvision==0.26.0 pedalboard==0.9.16 \
         && .venv/bin/pip install --no-cache-dir --no-deps -U edge-tts==7.3.1
        ENV PATH="/app/.venv/bin:$PATH" \
            LD_LIBRARY_PATH="/app/.venv/lib/python3.12/site-packages/nvidia/cu13/lib"
        EXPOSE 6969
        ENTRYPOINT ["python3"]
        CMD ["app.py", "--server-name", "0.0.0.0", "--port", "6969"]
    container_name: applio
    restart: unless-stopped
    mem_limit: 6g
    runtime: nvidia
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=compute,utility
    shm_size: 2gb
    ports:
      - "6969:6969"
    volumes:
      - ./applio-logs:/app/logs
      - ./applio-models:/app/rvc/models

Why each pin is there

  • torchvision==0.26.0: matches the torch 2.11 that requirements.txt installs. Without it the import fails.
  • pedalboard==0.9.16: newer wheels crash with SIGILL on CPUs without AVX2 (our host has an old AMD Athlon X4). On a modern CPU the pin is harmless.
  • edge-tts==7.3.1: older versions get HTTP 403 from Microsoft, which breaks the TTS tab.
  • LD_LIBRARY_PATH: points torch to its own CUDA 13 libraries. Without it training dies inside a JIT-compiled function on the first step.
  • mem_limit: 6g: training on 7 minutes of audio fitted in 6 GB. The limit means a runaway job is stopped inside Docker instead of pushing the whole host out of memory.

Step 4: train a voice model

  1. Record 5 to 10 minutes of clean, dry speech: one voice, no music, no reverb, no background noise. A quiet room and a phone held close work better than a long, noisy recording.
  2. Copy the audio into the container's dataset folder (see the commands below), then in the Training tab enter a model name, pick the dataset, keep 40000 Hz and HiFi-GAN, and run Preprocess, Extract and Train in that order.
  3. We trained on 7 minutes of audio for 200 epochs at 40 kHz. It took about 25 minutes on the RTX 3090 and stayed inside the 6 GB memory limit.
  4. Check that the model really exists before you trust the log: a file named <model>_<epochs>e_<steps>s.pth must appear in the logs folder. When we trained from the command line, the script printed a success message even after a crash, so the file is the real proof.

Copy a dataset in and check the result

docker exec applio mkdir -p /app/assets/datasets/my-voice
docker cp ./my-voice/. applio:/app/assets/datasets/my-voice/

# after training:
docker exec applio sh -c 'ls /app/logs/my-voice/*.pth'

Converting audio

In the Inference tab pick your model, upload a recording and press Convert. A 15-second clip took a few seconds on the RTX 3090. The TTS tab writes text with a Microsoft Edge voice first and then converts it to your model, which is handy for quick narration tests.

Note: the dataset folder is not a mounted volume in this compose file, so docker compose up --force-recreate deletes it. Trained models in /app/logs and downloaded models in /app/rvc/models are on volumes and survive.

Does realtime voice changing work on a server?

Not in this setup. The Realtime tab captures from a microphone and plays to an output device on the machine where Applio runs. A server container has no sound card: in our container the audio device list was empty (0 devices), so there is nothing to select.

For a realtime voice changer, run Applio on the desktop PC that has the microphone and the GPU. The model you trained on the server can be copied there: it is a single .pth file plus an .index file.

Google Colab or your own GPU?

Applio ships notebooks for Google Colab and Kaggle (Applio.ipynb and Applio_Kaggle.ipynb in the repository), and many tutorials start there because no local GPU is needed.

The trade-off: free cloud sessions are time-limited, a GPU is not guaranteed, your recordings are uploaded to someone else's machine, and the environment starts from zero each time. On your own GPU the models, datasets and settings stay where you left them and nothing leaves your network.

If you have an NVIDIA card with roughly 8 GB of VRAM or more, running it at home is the more comfortable option. If you do not, Colab is a reasonable way to try RVC before buying hardware.

Things that went wrong for us

  • GPU missing in the container after a host reboot: the dynamic device numbers had changed. Fix the allow lines and restart the container.
  • The Docker build cache grows by several GB per rebuild. Free it with docker builder prune -af when you are done.
  • Training stopped early with no clear error: check the memory limit first (docker stats while training), then the .pth file check above.

Apps in this guide

More guides

Get new guides by email

One short email when we publish a new guide or add apps. No spam, unsubscribe any time.

Browse all apps →Read the weekly notes →