XCP-ng on Docker vs Kubernetes vs VMs

XCP-ng is a bare-metal hypervisor, so Docker and Kubernetes run inside its VMs or on separate hardware. This page compares the workload layers on upgrades, high availability, backup, operating skills and cost, and shows which team each one fits.

On this page

XCP-ng deployment options: which workload layer fits your team

XCP-ng is a type-1 hypervisor that boots on bare metal, so Docker and Kubernetes never run in the hypervisor layer itself. They run inside guest VMs on XCP-ng or on separate hardware outside the pool. Each option is a different amount of work on the same hypervisor, so the decision your team actually faces is which workload layer runs inside the VMs. Our verdict: choose plain VMs for a small team running a few fixed services, choose Docker hosts in VMs for container apps with one clear owner, and choose Kubernetes only when your team already operates it or needs its scheduling and GitOps model.

Plain VMs push the work to each guest. Every VM needs its own operating system patching, service configuration and backup job, so effort grows with the VM count. Docker hosts in VMs add one layer, the container runtime and image pipeline, but keep the host VM as the unit you patch and back up through Xen Orchestra. Kubernetes adds a control plane, etcd, node pools and a version upgrade cadence, all running on the same XCP-ng hosts, so it only pays off when someone on your team already carries that operating load. Whichever layer you pick, name one owner for the hypervisor, one for the guest OS and one for the workload before you size the hosts.

Before you commit, run three checks. First, confirm your host version: XCP-ng 8.3 LTS was released on October 7, 2024 and is supported until November 30, 2028, while XCP-ng 8.2 LTS support ended September 16, 2025, so a pool still on 8.2 needs an upgrade plan before any new workload layer goes in. Check the XCP-ng release notes for your build. Second, ask Vates how your Xen Orchestra backups handle application consistency, since a VM-level backup alone may not restore a consistent database or Kubernetes state. Third, restore one VM and one container host in your own environment and time it, so the recovery effort rests on a measured result.

XCP-ng deployment options side by side: VMs, Docker and Kubernetes

This table compares plain VMs, Docker hosts inside VMs and a Kubernetes cluster on VMs, all running on XCP-ng, across fit, failure domains, sizing, high availability, upgrades, switching cost and cost drivers. Read each row as a question about your team's skills and workload, since each added layer adds operating work. Confirm which HA features apply to your pool and storage setup in the XCP-ng documentation before you rely on any of them.

Decision pointPlain VMsDocker hosts in VMsKubernetes cluster on VMs
Best fitSingle workloads, legacy applications and teams that want the fewest moving parts and patch each guest directly.A small set of containerized services run by a team that wants simple deployment without a scheduler.Many services that need scheduling, rolling deployments and self-healing, run by a team with platform engineering skills.
Failure domainsA failed guest affects only that guest, but a failed XCP-ng host takes all of its VMs down.A failed host VM takes down every container on it, and plain Docker does not move containers to another host.A failed node reschedules its pods, but control plane or etcd problems can affect the whole cluster.
Unit of sizingvCPU, memory and disk per guest, bounded by the capacity of the hosts in the pool.The Docker host VM first, then the containers packed onto it.The node pool, with resource requests and limits per workload deciding how many nodes you need.
High availability mechanismXCP-ng pool features can restart VMs on another host. Confirm in the XCP-ng documentation which HA features apply to your pool and storage setup.Restart policies on each host. Cross-host failover needs VM-level HA or an orchestrator, so confirm your setup.The scheduler reschedules pods to healthy nodes. Control plane HA depends on redundant control plane nodes and etcd quorum.
Upgrade unitThe guest operating system and application in each VM, plus the XCP-ng host during pool maintenance.The host VM image and the container images, usually changed together on each host.The control plane first, then each node one at a time, with workloads drained before each node is upgraded.
Switching cost to another modelLowest at the start, but moving to containers or a cluster means repackaging each application.Moderate. Images carry over, while networking, storage and deployment files must be rebuilt for a cluster.Highest. Manifests, storage classes, operators and cluster runbooks are specific to the platform you run.
Main cost driversGuest count, OS and application patching, backup scope and the Vates subscription per host if you buy one.Host VM count, image rebuild and patch cadence, and monitoring of each host.Control plane and node count, platform engineering time, upgrade cadence and the monitoring stack.

Where XCP-ng, Xen Orchestra and each workload layer sit

Each layer has a different owner in an XCP-ng estate. The hypervisor and the management appliance sit with the platform team, guest VMs carry the workloads, and Docker or Kubernetes add a second scheduling layer inside those VMs. Stateful databases then depend on whichever layer they run on, which decides how failover and backup work.

XCP-ng host

The XCP-ng host is a type-1 hypervisor that boots on bare metal and combines the Xen hypervisor, the dom0 control domain, the XAPI toolstack and QEMU for guest I/O. Your internal team operates the physical hosts: firmware, hardware replacement, host updates, pool membership, storage repositories and network configuration. Host updates affect every VM on that host, so plan maintenance windows and spare capacity before you size a pool. XCP-ng 8.3 LTS is supported until November 30, 2028, so check that date against your planned operating life.

XCP-ng release support

Xen Orchestra as management layer

Xen Orchestra is the management layer that controls XCP-ng pools, VM operations, backup jobs and migrations such as V2V. Vates describes Xen Orchestra and the XCP-ng hypervisor as open-source projects with no license fees, with commercial support subscriptions adding SLAs. Your team operates the appliance, including its updates, role assignments, admin access and its own backup and recovery plan. Confirm which features your chosen support level covers before you design operations around them.

Guest VMs carry the workloads

Guest VMs run the operating systems and applications, and they are the layer that Docker hosts and Kubernetes nodes run on when you add them. Your team operates each guest OS, its patching, disks, network settings and the snapshot and backup schedule for every VM. Confirm the pool's HA settings and test a host failure before relying on automatic restart. If you are moving from VMware, the V2V tool uses warm migration, so the source VM keeps running during the copy. Confirm your ESXi version is supported, since the migration documentation says ESXi 6.x hosts are not supported for V2V.

XCP-ng migration guide

Docker hosts as guest VMs

A Docker host on XCP-ng is a guest VM that runs the container engine, so the hypervisor and the container layer each have their own patch cycle and failure domain. Your team operates the host OS, the Docker engine, registry access, restart policies and volume backups. A host reboot or VM failure stops every container on that VM at once, so decide which services get their own VM. Confirm whether your VM-level backups are consistent enough for any stateful container volumes, and test a restore before you rely on them.

Kubernetes control plane and workers

Kubernetes splits into a control plane (API server, scheduler, controller manager and etcd) and worker nodes, and DeployOpen runs Kubernetes on virtual machines and bare metal. In an illustrative XCP-ng design, control plane and worker nodes are guest VMs, so the team operates two scheduling layers: the hypervisor pool and the cluster. Your team owns etcd backups and restores, node and control plane upgrades, certificate rotation and capacity across nodes. Spread control plane VMs across hosts so that one host failure does not cost etcd quorum.

Stateful databases on each layer

Patroni runs PostgreSQL 9.3 to 18 in high availability on VMs, using etcd, Consul, ZooKeeper or Kubernetes as its distributed configuration store. CloudNativePG, an Apache-2.0 CNCF Sandbox operator, runs PostgreSQL on Kubernetes, manages PVCs directly without StatefulSets, and uses the Kubernetes API server for failover. Decide which layer reacts first to a host failure, the database failover or the XCP-ng HA, and test that the two do not conflict. Your team also operates storage placement, backup restores and PostgreSQL upgrades.

Patroni docs

Where the hypervisor boundary sits between hardware and containers

The diagram starts at the bare-metal host, where XCP-ng boots as a type-1 hypervisor that combines Xen, the dom0 control domain, the XAPI toolstack and QEMU for guest I/O. Everything inside the guest group sits above that boundary. Xen Orchestra sits beside the hypervisor as the management plane, so its access path is separate from the workloads it manages. One VM runs Docker containers, while the Kubernetes control plane and worker VMs run on the same physical host. Check that last point first: if every control plane VM sits on one host, a single hardware failure takes out the whole control plane, whatever runs above it.

Guest VMs and the management plane stacked on one XCP-ng host.

Why Kubernetes on XCP-ng adds a second failover layer

One host failure can trigger recovery at two layers at once. The virtualization layer may restart or move the affected VM to another host in the XCP-ng pool, while Kubernetes reschedules the pods that ran on the failed node onto surviving workers. If both layers react without coordination, the same workload can be recovered twice, or the two actions can compete, so that a pod briefly runs in two places or waits on a volume that is still attached elsewhere. Which layer acts first depends on the settings you choose, so you need to decide the order of recovery deliberately and document it before go-live.

The main risk is unclear ownership. If the infrastructure team assumes the hypervisor handles host failure and the platform team assumes the cluster handles it, nobody owns the cases in between, such as VM restart interacting with pod anti-affinity rules or persistent volume reattachment. Write down which layer owns host failure, VM restart, pod eviction and volume reattachment for each workload. Then test failover at each layer separately: power off one host in a non-production pool and record where the VM lands and how long the guest takes to return, then drain or fail a Kubernetes worker and confirm pod rescheduling and volume recovery. Finally, run a combined test, because the interaction only shows up when both layers fail over together.

The exact behavior depends on your pool configuration and storage, so confirm it in the XCP-ng documentation and test it on the version you will run. Check how high availability is configured at the pool level, which hosts take part, how a host failure is detected and what happens to running VMs. Storage matters as much as the hypervisor settings, because it determines whether a VM disk is reachable from another host after a failure. XOSTOR is a Vates add-on for hyperconverged storage, sold separately from the base platform. Confirm with Vates how using XOSTOR changes VM failover, replica placement and recovery time before you rely on it for either layer, and test with the storage you plan to run in production.

Upgrades, backups, monitoring and skills for each model

This table compares the upgrade steps, support windows, backup scope, monitoring tools and skills each model needs on XCP-ng. Read each row as a question about who owns the step: the XCP-ng host, the guest OS, or the platform layer above it. The main takeaway is that every model keeps the XCP-ng host upgrade and backup work, so the extra layers add steps and skills on top.

AreaXCP-ng on DockerKubernetesVirtual machines
UpgradesHost, guest OS and Docker engine upgrade separately, with containers redeployed after each change.Control plane, worker nodes and add-ons upgrade in separate steps, normally node by node.Hypervisor host, guest OS and application each upgrade separately; plan the order per VM.
Support windowXCP-ng 8.3 LTS: released October 7, 2024, supported until November 30, 2028.Nodes on XCP-ng follow the same 8.3 LTS window, and the 8.2 LTS line ended September 16, 2025.Host and guest OS windows differ; confirm both before choosing a release.
Backups: what to protectDocker host VM images, volumes and bind-mounted data, plus compose files and image definitions.etcd snapshots, persistent volume data, manifests or Git state, plus the node VMs.Whole VM disks and application-consistent data, plus OS configuration and secrets.
Backup tool supportConfirm with the backup vendor that it supports XCP-ng VM backups for the Docker host.Confirm the tool supports XCP-ng VM backups for nodes and the chosen Kubernetes storage.Confirm XCP-ng VM backup support and restore testing with the backup vendor before purchase.
Monitoring examplesPrometheus (Apache-2.0) for container and host metrics, or Zabbix (AGPL-3.0 from 7.0) for host checks.Prometheus (Apache-2.0) fits cluster metrics and alerting; Zabbix (AGPL-3.0 from 7.0) can cover XCP-ng hosts.Zabbix (AGPL-3.0 from 7.0) suits agent-based host checks; Prometheus needs exporters on each VM.
Skills neededLinux, Docker and XCP-ng host administration, plus image build and registry handling.Kubernetes operations, etcd backup and restore, networking and storage, plus XCP-ng for nodes.Hypervisor and guest OS administration, restore drills, and application-level runbooks.

What Vates subscriptions cost per host and what labor adds

The XCP-ng hypervisor and Xen Orchestra are open-source projects, and Vates describes both as carrying no license fees. What you pay Vates for is commercial support, which adds SLAs. The Vates pricing page lists Essential at $2,000 per year and Essential+ at $4,000 per year for up to 3 hosts, Pro at $1,000 per host per year with a 3-host minimum, and Enterprise at $1,800 per host per year with a 4-host minimum and 24/7 support. XOSTOR hyperconverged storage is a separate add-on at $800 to $1,200 per host per year. Match the tier to your host count before you budget. Illustrative example: a 2-host pool cannot meet the Pro minimum of 3 hosts, so it would need a different tier or no subscription. Confirm current figures on the Vates pricing and support page, because list prices change.

Kubernetes is Apache-2.0 licensed, so the software itself adds no license line. The cost sits in labor, hardware, storage and on-call coverage. Labor covers the control plane and etcd layout, node upgrades, storage integration and backups of etcd and persistent volumes. Hardware means the extra VMs or bare-metal nodes that a Kubernetes control plane and its workers need on top of the XCP-ng hosts. Storage depends on the backend you choose for persistent volumes, and that choice drives both hardware and licensing questions. On-call coverage can become the largest recurring item: a platform that must recover from node failures, certificate expiry or a failed upgrade at night needs a named rota. Running Docker directly on VMs uses the same cost categories with fewer moving parts, so the gap is mostly how many people you need to cover the stack.

Which team should pick which deployment model

A small IT team with a few applications usually gets the most from plain virtual machines on XCP-ng. Each application runs in its own VM, the team manages hosts and guests through Xen Orchestra, and no cluster scheduler sits between them to learn, patch or back up. The model is simple to hand to a second administrator, which matters more at this size than density.

  • Model that fits: one VM per application, with Docker used only inside a VM when a vendor ships a container image and the team can patch it.
  • What the team owns after handover: host patching and XCP-ng upgrades, guest operating system patches, backup schedules, restore tests and the Xen Orchestra server itself.
  • Operating load: a few hosts, a short list of guests and one runbook per application. A Kubernetes control plane adds components to patch and back up, which seldom pays off at this scale.
  • Support decision: whether the team needs vendor support terms and SLAs, which depend on the option chosen with Vates, so confirm them before go-live.

Before choosing, ask how many applications must be restored within a recovery window the business has agreed, and whether one administrator can complete the upgrade and restore steps alone.

How a VMware to XCP-ng move runs with V2V

This sequence moves a VMware virtual machine to XCP-ng with the V2V tool in Xen Orchestra, keeping the source VM running during the copy so downtime is concentrated in the final sync and checks. It produces a booted, validated guest on XCP-ng and a documented rollback path. Run the steps in order, and confirm the migration documentation for your Xen Orchestra version before you start.

  1. Confirm the ESXi version is supported

    The platform team checks the source ESXi host version against the migration documentation for the Xen Orchestra release you plan to run. Current Xen Orchestra versions do not support ESXi 6.x hosts for V2V, so a 6.x source has to be brought to a supported version before this sequence starts. Done when the ESXi version, the Xen Orchestra version and the matching migration notes are written into the change record.

  2. Confirm HTTP access to the ESXi API

    The network team verifies an HTTP path from the Xen Orchestra appliance to the ESXi API on the source host, and the VMware administrator confirms the account the migration uses has the access the documentation describes. V2V needs only HTTP access to the ESXi API, so keep firewall changes limited to that path. Done when Xen Orchestra connects to the host and lists the VMs in scope with their names and disk layouts as expected.

  3. Start the warm migration replication

    The migration operator selects each VM in scope in the V2V tool in Xen Orchestra, part of the platform, and starts a warm migration. The tool replicates the disks while the source VM keeps running, so the service stays up during the copy. Start with one non-critical VM to see how the copy performs on your network and storage, and record what you observe before you move the rest. Done when the first full copy finishes, the source VM is still powered on, and the target record exists in Xen Orchestra.

  4. Shut down the source VM for final sync

    The change owner agrees the cutover window with the application owner, then shuts down the source VM in vCenter or on the ESXi host. Service downtime starts at this shutdown, so confirm the window before you begin. The tool then syncs only the blocks that changed since replication started, which is why the source must stop writing before this step. Done when the source VM is powered off, the final sync reports complete in Xen Orchestra, and no service still writes to that VM's disks.

  5. Boot and validate the guest on XCP-ng

    The platform engineer starts the migrated VM on XCP-ng and checks boot, disk and network mapping, time sync and the services the application needs. Confirm the guest drivers and tools your operating system requires on XCP-ng using the XCP-ng documentation, and record any change you make inside the guest. Done when the application owner signs off the checklist and the guest logs show no boot or device errors.

  6. Cut over and keep a rollback path

    The change owner points DNS, load balancers or client configuration at the migrated VM and confirms that traffic reaches it. Keep the source VM intact and powered off until the agreed review has passed. Once users write to the XCP-ng copy, returning to the source means reconciling that data, so write that procedure before cutover, not during an incident. Done when monitoring shows the service serving users from XCP-ng and the rollback procedure has been reviewed by the application owner.

  7. Test Docker and Kubernetes workloads separately

    Treat a VM that runs Docker or Kubernetes as a VM for the move, but plan and test the application cutover as its own exercise. The application owner checks container runtime startup, persistent volume attachment, node registration and cluster health, then runs the application test suite against the migrated node. Done when the workload passes its functional and recovery tests on XCP-ng, with results recorded separately from the VM move.

What buyers ask before choosing among XCP-ng deployment options

How much does XCP-ng cost without a Vates subscription?

Running XCP-ng and Xen Orchestra carries no license fee, since Vates describes both as open-source projects with no limits and no license fees. Your recurring costs are the hardware, storage, network, power and the staff hours to run them. Commercial support is optional and sold separately: Vates lists Essential at $2,000 per year and Essential+ at $4,000 per year for up to 3 hosts, Pro at $1,000 per host per year with a 3-host minimum, and Enterprise at $1,800 per host per year with a 4-host minimum and 24/7 support, per its pricing and support page. Ask Vates to confirm current prices and terms in writing, and ask for a fixed-scope quote for implementation, which is a separate line item.

What sets how long an XCP-ng deployment takes?

The written scope sets the timeline, and four factors move it most: host count, storage design, the number and type of workloads to move, and how many systems the deployment must integrate with, such as identity, backup, monitoring and logging. Storage is often the longest decision, because local disks, a shared storage backend and the XOSTOR add-on each change the design and the test plan. Vates sells XOSTOR at $800 to $1,200 per host per year, per its pricing page. Ask for a dated plan in the written scope with phases, acceptance tests and a named sign-off for each phase. DeployOpen agrees scope, deliverables and timelines in writing before work starts for most engagements, so you can check the plan against your own change calendar.

What does an XCP-ng deployment need from our internal team?

Plan for a team that already runs Linux, virtual networking and shared storage, plus one person who owns operating procedures after handover. The recurring work includes:

  • Host and pool administration, patching and upgrade windows
  • Storage and network changes, including multipath and VLAN design
  • Backup jobs, restore tests and capacity reviews
  • Identity, access control and audit logging for the management layer
  • Change control, runbooks and on-call response for host failures

A gap in any of these becomes the main risk after go-live, so name an owner for each one before you sign a scope.

Can our own team deploy XCP-ng without an outside partner?

Yes, an experienced in-house team can deploy XCP-ng, but the real test is whether that team has the hours and skills for a first deployment alongside its current work. Some organizations keep design and operations in-house and bring in outside help only for the build or the migration. DeployOpen plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted platforms inside your own infrastructure, so the design, build and runbooks can come from an outside team while operations stay in-house. Confirm three things before deciding: who runs the migration tests, who owns patch cycles after handover, and what support model applies in the first year. Request a written scope that lists deliverables, acceptance tests and the handover package.

Which XCP-ng LTS release should we choose?

Choose XCP-ng 8.3 LTS for a new deployment, since it was released on October 7, 2024 and is supported until November 30, 2028. XCP-ng 8.2 LTS support ended on September 16, 2025, so a new build on it would start on a release that no longer receives support. Check the release documentation for the current patch level before you install. Confirm with Vates how upgrades will move your pool forward before the November 30, 2028 end date, and confirm that your hardware, storage and backup integrations are supported on the release you pick. Plan the upgrade as its own project with a scope, a rollback plan and a maintenance window, even when the release is still in support.

Can Docker or Kubernetes run directly on an XCP-ng host?

The XCP-ng documentation describes guest virtual machines as the place workloads run, so the documented pattern is to run Docker or Kubernetes nodes inside VMs on the pool. Confirm with Vates before you install a container runtime into the control domain (dom0), because that layer sits outside the documented model and could affect host patching, security boundaries and support. The common layout uses Linux VMs as container hosts, sized for your workloads, with Kubernetes control plane and etcd placement decided during design. Put the question to Vates in writing and keep the answer in your design record before any build starts.

How do we move workloads off VMware to XCP-ng?

Xen Orchestra includes V2V, a migration tool that uses warm migration: data replicates while the source VM keeps running, then changed blocks sync after shutdown, so the outage is limited to that final sync. V2V needs only HTTP access to the ESXi API. Check your ESXi version first, because current Xen Orchestra versions do not support ESXi 6.x hosts for V2V. XCP-ng also documents imports from Hyper-V, KVM and VirtualBox. Read the migration guide and run a pilot on non-critical VMs, checking boot, drivers, network mapping and backup restore before the full wave. Ask for the migration plan, rollback steps and cutover window in the written scope.

How DeployOpen scopes and runs XCP-ng deployments

DeployOpen treats the choice between running workloads in Docker, Kubernetes or virtual machines on XCP-ng as a scoping decision, settled in writing before build work begins. We plan, implement, integrate, harden, back up, upgrade and document the self-hosted platform inside your own infrastructure, so your team can review every layer. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names which workloads run on Docker, Kubernetes or VMs, and why each one is placed there.
  • Host sizing, storage layout and network design are listed as deliverables, with the assumptions behind each sizing figure.
  • Confirm in the written scope whether the Vates support tier and Xen Orchestra are in or out.

How we build

  • XCP-ng hosts, Xen Orchestra and the agreed storage layout are installed and configured to the written design.
  • Docker, Kubernetes and VM workloads are customized, integrated with identity and hardened against the agreed baseline.
  • Backup, restore and upgrade procedures are built and tested before the platform carries production data.

How we hand over

  • Documentation covers the topology, runbooks for each workload type, and the upgrade path for XCP-ng and Xen Orchestra.
  • Security testing of the running setup can be scoped as a separate engagement with its own written deliverables.
  • Compliance evidence such as configuration records and backup logs is organized for your own auditors, who issue any attestation.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retainer scope should name which XCP-ng release lines, Xen Orchestra versions and workloads it covers.
  • Ask for the upgrade calendar and rollback plan in the quote so both teams know who runs each change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.