> ## Documentation Index
> Fetch the complete documentation index at: https://phalanetwork.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Full Dstack Deployment Guide

> Originally Authored, by Kevin Wang edited by Dylan Kawalec from Phala Network

<div className="flex justify-center my-8">
  <img src="https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/images/full-deployment-imgs/deployment-guide-tdx-pro.png?fit=max&auto=format&n=EDH2CSxg-w7_HARR&q=85&s=f7ce03f12ca2101f290c070ab072e27b" alt="dstack advanced deployment architecture" className="rounded-lg shadow-lg max-w-full h-auto" style={{ maxWidth: '100%', height: 'auto' }} width={900} height={500} loading="eager" data-path="docs/images/full-deployment-imgs/deployment-guide-tdx-pro.png" />
</div>

<div className="bg-blue-50 border-l-4 border-blue-400 p-4 my-6">
  <div className="flex">
    <div className="ml-3">
      <p className="text-sm text-blue-700">
        This document describes the deployment of DStack components on bare metal TDX hosts.
        It contains steps to deploy dstack-kms and dstack-gateway into CVMs.
      </p>
    </div>
  </div>
</div>

## Prerequisites

<div className="grid grid-cols-1 md:grid-cols-2 gap-4 my-6">
  <div className="bg-gray-50 p-4 rounded-lg">
    <h3 className="font-semibold mb-2">Hardware Requirements</h3>
    <p>Follow the <a href="https://github.com/canonical/tdx" className="text-blue-600 hover:underline">TDX setup guide</a> to setup the TDX host.</p>
  </div>

  <div className="bg-gray-50 p-4 rounded-lg">
    <h3 className="font-semibold mb-2">Software Requirements</h3>
    <p>Install <code className="bg-gray-200 px-1 rounded">cargo</code> and <code className="bg-gray-200 px-1 rounded">rustc</code></p>
  </div>
</div>
