← Academy insights

Hosting Private LLMs Locally: Configuring Proxmox to Run Secure, Private AI Workloads

To host private LLMs on Proxmox, design the virtual machine or container, model runtime, data access and daily operations as one system. Proxmox supplies the infrastructure layer for a local server, but it does not automatically make an LLM service private, accurate or economical. The right setup depends on the task, available hardware and whether a CPU, GPU or another option suits the workload. This distinction is the starting point for security: local placement is one part of a private service, not proof of complete protection.

Before you get started, define who will use the model, what data may enter it, which applications connect to it and what response time the service requires. Identify the intended models, runtime, machine, storage and access controls, then record the assumptions behind the design. This guide uses vendor documentation to explain the main decisions and provides a practical way to assess them. It does not present benchmark results, guarantee performance or claim a tested deployment for unspecified hardware. Treat each example as illustrative and validate the final arrangement in your own environment.

Choose the model service before allocating a GPU

Before selecting hardware for local LLMs, document the model and runtime you intend to use, their licence conditions, expected concurrency, context size and acceptable response time. Record whether the service will run on a server, workstation or other machine, and note which software, interface and applications will connect to it. Estimate RAM, VRAM, CPU capacity, disk space and storage for model files, logs and permitted data. Treat these estimates as planning assumptions: they describe the resources your setup may need, not guaranteed requirements. This step helps you host the service on suitable hardware and identify constraints before they affect the work.

A smaller local model may meet the task more practically than a larger one, and smaller models can be a sensible option for a narrowly defined workload. The model’s inference quality, context requirements and response time still need validation with representative, non-sensitive requests. A GPU is one workload choice, not proof that the design will perform well; a CPU-based arrangement may be appropriate for some uses. Keep quality and response-time acceptance criteria separate, so a fast but unsuitable answer does not count as success. A useful pilot tests the idea against actual requirements and records what happens rather than assuming that any model or device will handle every task.

Separate VM passthrough, container access and vGPU

Approach Important distinction What to verify
VM with whole-device PCI passthrough The guest receives control of the assigned device IOMMU, device grouping, guest driver, firmware and restart behaviour
LXC with permitted device access A container uses host-kernel/device facilities Host and container compatibility, permissions and isolation implications
Supported vGPU arrangement Hardware/vendor software exposes a supported virtual GPU mechanism Hardware support, vendor licences/drivers and supported Proxmox configuration

These approaches are not interchangeable. A VM with whole-device PCI passthrough gives the guest control of the assigned GPU, whereas an LXC container uses facilities provided by the host kernel and device permissions. A supported vGPU arrangement is a separate option in which hardware and vendor software expose a virtual GPU mechanism. For a server, workstation or other machine, choose the approach that matches the models, network design and isolation requirements of the service. The available GPUs, CPU, guest operating system and hardware support can change which setup is practical; no single approach is correct for every system.

The official PCI passthrough reference describes assigning a PCI device to a VM. Follow that reference as the relevant starting point, and verify each step for the intended architecture. Do not copy a generic PCI-to-container command and assume it implements VM passthrough. Whole-device assignment also changes whether the host or another guest can use the device. Treat that access boundary as a key part of the design, rather than as a minor configuration detail.

For specialist hardware questions, see the existing Proxmox GPU virtualisation guide. This article keeps its focus on the complete model-service design, including how containers, LXC access and GPUs fit into the wider service.

Build a minimal guest and validate the runtime

  1. Record the installed Proxmox release, server hardware, RAM, disk arrangement and intended guest operating system. Choose a VM or container approach whose constraints you understand, including any LXC limitations.
  2. Create the guest with an approved network and storage setup. Keep management access separate from ordinary model-client access, and do not connect sensitive data until the access boundary has been checked.
  3. If using a GPU, follow the supported assignment, passthrough and guest-driver guidance for that exact architecture. Confirm that the guest can see and use the intended device, but do not treat visibility as evidence of application performance.
  4. Install the model runtime and required software using its current official instructions. Select a permitted model, avoid unverified scripts, and run a small local test before connecting the service to a wider workflow.
  5. Observe memory use, device use, errors, response quality and response time under representative demand. Check the inference task with non-sensitive requests before connecting sensitive workflows or relying on the container for operational work.

Ollama’s hardware documentation lists supported GPU/driver arrangements. Support and installation requirements change, so verify the actual combination of host, guest, GPU and software rather than relying on an old article’s driver number. A successful device listing is a useful check, not proof of application performance. Treat any example, video or test result from another environment as background information rather than evidence for this setup.

Make “private” a defined data boundary

List where prompts, source documents, responses, embeddings and logs can travel through the server, container and connected applications. Include the user interface, the retrieval service, external tools, monitoring, backups and any cloud-model features. Record which data can leave the local machine, which network connections the setup permits and which model or models each user can access. A local guest can still send data to an external service if its application is configured to do so, regardless of whether the host uses a GPU or another hardware option.

The Ollama FAQ distinguishes local use from cloud features and describes local-only configuration. Review that distinction against your runtime version, application settings and interface configuration. Keep access restricted to authorised clients; do not expose a model API publicly on the web just to make a demonstration convenient. Check the container, host, disk and network settings before allowing sensitive data into the service.

Protect the service with an appropriate authenticated access layer, network controls and clear administrative ownership. Decide which user may retrieve which business documents and record the permissions that enforce that boundary. Model hosting is not a substitute for this security work, whether the service runs on a server, in a container or within another system. Local placement alone does not establish legal compliance, complete isolation or protection from every application defect.

Plan recovery and maintenance

Decide what must be recoverable for the service: application configuration, permitted model artifacts, document indexes, access settings and persistent business data. Define which backup contains each item, and preserve keys and recovery instructions outside the failed guest. Include the relevant disk, storage arrangement, container settings and security controls in the recovery record. Test the restored service against an intended authorised request, not only whether its operating system starts; a successful boot does not by itself show that the model or application works.

GPU assignment and local data can constrain migration and failover. Document which server or host can run the workload, which hardware and GPUs it requires, and what happens when that device, host or storage is unavailable. Record whether VM passthrough, an LXC container or another container arrangement affects the available recovery options. Review the setup periodically as models, resources and dependencies change, but do not promise uninterrupted migration for every GPU-backed service.

Use a pilot acceptance record

Question Evidence to collect
Does the model meet the task? Representative prompts, expected answer properties and human review for the selected LLM or smaller models
Does the infrastructure meet demand? Observed latency, response time, concurrency, GPU use, resource use and error behaviour on the server, workstation or other host
Does data stay within its permitted boundary? Documented connections, permissions, cloud settings and access checks for the user, web interface and container
Can the service recover? Restore rehearsal, required keys, backup checks and application acceptance for the model, system and container

Use representative, non-sensitive requests to test the actual model, runtime, guest and hardware. Record the configuration used; results from a different guide or environment are not evidence for your system.

Write down actual observations when testing; do not use illustrative metrics as if they came from your server. Check whether the selected LLM answers the intended task, whether the setup remains usable as demand changes and whether the data boundary holds. A pilot may show that the current machine, GPU, container, model or access design needs revision. Use unresolved results to choose the next infrastructure or learning decision, and only get started with sensitive workflows after the relevant checks are complete.

Explore Proxmox Official Training, check the English registration details or 中文培训报名页面, or bring unresolved requirements to Proxmox Discovery.

Sources and review date

Official references reviewed 19 October 2026. This documentation-based guide does not claim test results from your environment.