# Prepare a site

Make a cluster ready to receive your tenants' VDCs.

A **site** is a Proxmox VE cluster, or an XCP-ng pool run by Xen Orchestra, that your collector already collects. You bootstrap it **once**: afterwards, each VDC is created there without an administrator account.

## Before the bootstrap: the certificate

The administrator account never goes to a hypervisor whose certificate is not verified. Install the authority that signed the cluster's certificate on the collector's machine, restart the collector, tick TLS verification on the source, then run a collection again.

## The steps

1. Open **Cloud services › Sites**, then **Bootstrap a site**.
2. **1. Collection target**: choose the collected cluster, then **Check this target**.
3. **2. Preflight**: each check is **Ready** or **Blocking**. Covered platform, isolation capability, healthy collection, verified certificate, up-to-date collector: fix everything that blocks before going on.
4. **3. Site, tier storages and one-time administrator account**:
   - the site name;
   - the network that carries your tenants' VLANs: a bridge on Proxmox VE, a physical interface on Xen Orchestra;
   - the **tier storages**, where your tenants will create their disks;
   - if needed, the catalog's shared storages: ISO images, and seed images for cloud-init;
   - a hypervisor administrator account.
5. Click **Start the bootstrap**, and follow the operation.
6. On the site's page, declare the **VLAN pools**: the ranges reserved for your tenants.
7. Click **Open portal writes on this site**.

## The administrator account is used once

It is encrypted, used for the bootstrap, then erased, whether the operation succeeds or not. It is never shown again nor written to a log. On Proxmox VE, the bootstrap uses it to create an onboarding account, `naoshift-tenancy@pve`, limited to the portal's subtree, then checks its rights with that account.

## Your tenants' VLANs

Tag the pools' VLANs on the trunks of the switches that carry each node. Naoshift does not see your switches: a VLAN missing from a trunk would link the machines of one node, never those of two nodes, and would break migration and high availability. On Proxmox VE 9, **VXLAN** networks avoid the trunks for a tenant's internal networks.

## The emergency stop

**Close portal writes on this site** is always allowed: your tenants keep read access, and no more writes leave for the site.

### A preflight check stays blocking

A check that cannot be proven blocks. Most often: unverified certificate, or collector not up to date. Fix it, run a collection again, then **Check this target** again.

### The bootstrap fails on missing privileges

The site's page names them (*Missing privileges*). Fix them on the hypervisor, then run the bootstrap again.

### A storage is not offered as a tier

A storage that holds ISO images or container templates cannot be a tier: plan dedicated storages.
