# FlashEnclave — complete technical reference > FlashEnclave splits one bare-metal machine into sealed enclaves, each with its own CPU cores, memory and operating system, out of reach of the host and its administrators. This file is the whole How it works and Use cases sections of https://flashenclave.com in one document. The index is https://flashenclave.com/llms.txt. > FlashEnclave is proprietary software by Wovoro LLC, available through early access. Full license: https://flashenclave.com/legal/license --- # How FlashEnclave works > A small hypervisor, the FlashEnclave Hypervisor, starts before the operating system and splits the machine into enclaves. The FlashEnclave Manager, on the host, is where you create and manage them. Each page explains one mechanism. Source: https://flashenclave.com/how-it-works · How FlashEnclave works: the FlashEnclave Hypervisor under the host, the FlashEnclave Manager, enclaves with dedicated cores and memory, encrypted disks, networking and TPM attestation. ## Architecture [**Architecture overview**Hardware, then the Hypervisor, then the host and the enclaves side by side.](https://flashenclave.com/how-it-works/overview)[**FlashEnclave Hypervisor**A small hypervisor that starts before the operating system.](https://flashenclave.com/how-it-works/hypervisor)[**FlashEnclave Manager**Where you create and manage enclaves, on the host.](https://flashenclave.com/how-it-works/manager) ## Isolation [**Enclaves**A separate, private computer inside your machine.](https://flashenclave.com/how-it-works/enclaves)[**Dedicated cores and memory**Whole cores and fixed memory, never shared.](https://flashenclave.com/how-it-works/dedicated-cores)[**Memory isolation**The host can't read an enclave's memory, and memory is wiped both ways.](https://flashenclave.com/how-it-works/memory-isolation) ## Trust [**Encrypted disks**A disk per enclave, encrypted with a key only the tenant holds.](https://flashenclave.com/how-it-works/encrypted-disk)[**Measured boot and attestation**The TPM records what started; anyone can check it remotely.](https://flashenclave.com/how-it-works/attestation) ## Running enclaves [**Enclave kinds**ubuntu, flashvmm and linux images, ready to use.](https://flashenclave.com/how-it-works/enclave-kinds)[**Networking and ports**Every enclave reaches out; only the ports you publish reach in.](https://flashenclave.com/how-it-works/networking)[**FlashVMM inside an enclave**Fast VMs, snapshots and fork, inside the sealed boundary.](https://flashenclave.com/how-it-works/flashvmm-inside) ## Reference [**Why not just VMs?**What enclaves add over ordinary virtual machines.](https://flashenclave.com/how-it-works/why-not-just-vms)[**Facts and figures**Every number on this site, with where it was measured.](https://flashenclave.com/how-it-works/facts) --- # Architecture overview > Hardware, then the Hypervisor, then the host and the enclaves side by side. Source: https://flashenclave.com/how-it-works/overview · How FlashEnclave is built: the FlashEnclave Hypervisor starts before the OS and splits the machine; the host OS and enclaves run side by side on top; the FlashEnclave Manager on the host manages enclaves. FlashEnclave is a layered design: a small hypervisor, the FlashEnclave Hypervisor, underneath everything, and the machine's normal operating system and the enclaves side by side on top of it. The host OS keeps running as usual on whatever the Hypervisor hasn't given to an enclave. The FlashEnclave Manager, which runs on the host, is where you create and manage enclaves. ## The layers Host OSUbuntu + ManagerREST OF THE MACHINESEALEDEnclave 1Linux + FlashVMMCORESMEMORYEnclave 2Ubuntu · encrypted diskCORESMEMORYFlashEnclave Hypervisor · starts before the OSHardware · CPU cores · memory · devices · TPM ## Key facts | Today | AMD x86-64 · Ubuntu 22.04 and 24.04 · Secure Boot off | | --- | --- | | Direction | Any x86 or ARM bare-metal machine | | Interfaces | CLI`fe`· MCP`flashenclave-mcp`· HTTP API on a local socket | --- # FlashEnclave Hypervisor > A small hypervisor that starts before the operating system. Source: https://flashenclave.com/how-it-works/hypervisor · The FlashEnclave Hypervisor is a small hypervisor that starts before the OS, sits underneath it, and owns the CPU cores, memory and devices it gives to enclaves. The FlashEnclave Hypervisor is the hypervisor at the bottom of the stack. It starts from the firmware before the operating system, then boots the machine's normal OS on top of itself, unchanged. The Hypervisor owns the resources it gives to enclaves: their cores, their memory and any device passed through. The host OS can't reach them, because the Hypervisor never maps them for it. ## How it boots After the one-time install and a single reboot, the Hypervisor starts by itself on every boot. If the Hypervisor ever fails to start, the machine falls back to plain Ubuntu on its own. ``` sudo fe host check ``` --- # FlashEnclave Manager > Where you create and manage enclaves, on the host. Source: https://flashenclave.com/how-it-works/manager · The FlashEnclave Manager runs on the host OS and is where enclaves are created and managed, through the fe CLI, an MCP server for AI agents, and an HTTP API. The FlashEnclave Manager is the management layer. It runs on the host OS as a daemon with an HTTP API on a local socket. One API, three clients: the`fe`CLI,`flashenclave-mcp`(so AI agents can manage enclaves), and the API itself. None has a side door. ## Everyday commands ``` sudo fe enclave list sudo fe enclave get myserver sudo fe enclave delete myserver sudo fe self-update ``` --- # Enclaves > A separate, private computer inside your machine. Source: https://flashenclave.com/how-it-works/enclaves · A FlashEnclave enclave is a sealed section of a machine with its own CPU cores, memory and operating system that the host and other enclaves can't read. An enclave is a sealed section of the machine: its own CPU cores, its own memory, its own kernel and operating system. The machine's main operating system can't see inside it, and neither can its administrator or another enclave. Each enclave gets an SSH port on the machine, kept across restarts. ## Create one ``` sudo fe enclave create myserver --image ubuntu --cores 4 --memory 4096 --disk-gib 8 --ssh-key ~/.ssh/id_ed25519.pub --port 8080:80 ``` ## After a restart Every enclave that was running starts again by itself, with the same settings and SSH port. An Ubuntu enclave's disk stays locked until its owner unlocks it. --- # Enclave kinds > ubuntu, flashvmm and linux images, ready to use. Source: https://flashenclave.com/how-it-works/enclave-kinds · FlashEnclave ships three enclave kinds: ubuntu (a full Ubuntu server), flashvmm (Linux with FlashVMM for fast VMs) and linux (a small in-memory Linux with crun). An enclave is created from an image. Three come with FlashEnclave. | Kind | What you get | | --- | --- | | `ubuntu` | A normal Ubuntu 24.04 server on an encrypted disk. Install anything with`apt`; Podman and Docker work. | | `flashvmm` | A small Linux with FlashVMM built in, for running FlashVMs. | | `linux` | A small Linux that runs from memory, with`crun`for containers. | --- # Dedicated cores and memory > Whole cores and fixed memory, never shared. Source: https://flashenclave.com/how-it-works/dedicated-cores · Each FlashEnclave enclave gets whole physical CPU cores that are never shared and memory set aside at boot that the host never uses. An enclave gets whole physical cores, never shared, and a fixed amount of memory from a pool set aside at boot, so the host OS never uses it. There are no fixed size limits: an enclave can use any free cores and as much of the enclave memory as is free. --- # Memory isolation > The host can't read an enclave's memory, and memory is wiped both ways. Source: https://flashenclave.com/how-it-works/memory-isolation · FlashEnclave keeps the host OS, its devices and other enclaves out of an enclave's memory, and zeroes enclave memory on create and on delete. The Hypervisor never maps an enclave's memory for the host OS, and the IOMMU keeps devices from reaching it. - **Zeroed on create.**An enclave starts with empty memory. - **Zeroed on delete.**Its memory is wiped before going back to the host. - **Devices fenced too.**A device passed through to an enclave can only reach that enclave's memory. --- # Encrypted disks > A disk per enclave, encrypted with a key only the tenant holds. Source: https://flashenclave.com/how-it-works/encrypted-disk · Each FlashEnclave enclave's disk is encrypted and authenticated inside the enclave with the tenant's own key; the host stores only ciphertext. An enclave's disk is encrypted and authenticated inside the enclave, with a key the tenant makes and keeps. The host stores only ciphertext, and a block it changes can't be read. The disk survives deleting and re-creating the enclave. After a machine restart the tenant unlocks it again. ``` ssh -p 2201 root@HOST fe-disk unlock < disk.key ssh -p 2201 root@HOST fe-ubuntu boot ``` --- # Measured boot and attestation > The TPM records what started; anyone can check it remotely. Source: https://flashenclave.com/how-it-works/attestation · The FlashEnclave Hypervisor measures itself and every enclave into the TPM; fe-verify gets a signed TPM quote and checks the Hypervisor, host software and enclave images against published hashes. Measured boot records each piece of software in the TPM as it starts. Remote attestation lets someone elsewhere ask the TPM for a signed quote of those records and check them. `fe-verify`runs on the verifier's machine. Nothing the host sends is trusted until it checks out against the host's TPM. Every live enclave must verify. ``` fe-verify manifest fe-verify enroll --via "ssh HOST sudo fe attest" fe-verify check --via "ssh HOST sudo fe attest" ``` --- # Networking and ports > Every enclave reaches out; only the ports you publish reach in. Source: https://flashenclave.com/how-it-works/networking · Every FlashEnclave enclave reaches the internet through the host; enclaves can't reach each other or the host's services, and only published ports reach in. Every enclave gets an IP address and reaches the internet through the host. Enclaves can't reach each other, the host's services or the operator's LAN. Nothing reaches in unless you publish it.`--port 8080:80`sends the machine's port 8080 to the enclave's port 80. Inside an enclave,`fe-vmnet`gives VMs, containers and namespaces their own network. ``` sudo fe enclave create web --image ubuntu --cores 2 --memory 2048 --disk-gib 8 --ssh-key ~/.ssh/id_ed25519.pub --port 8080:80 --port 8443:443 ``` --- # FlashVMM inside an enclave > Fast VMs, snapshots and fork, inside the sealed boundary. Source: https://flashenclave.com/how-it-works/flashvmm-inside · FlashVMM runs unchanged inside a FlashEnclave enclave: fast-booting VMs with snapshots, restore, checkpoints and fork, sealed from the host and other tenants. FlashVMM, a separate product for fast, lightweight VMs, runs unchanged inside an enclave. On our AMD test machine a FlashVM boots in 70 ms inside an enclave, against 86 ms on the same machine without FlashEnclave (median of 50 boots each). See[FlashVMM](https://flashvmm.com). --- # Why not just VMs? > What enclaves add over ordinary virtual machines. Source: https://flashenclave.com/how-it-works/why-not-just-vms · Why FlashEnclave enclaves instead of ordinary VMs or CPU memory encryption: dedicated cores, a host kept out of memory, attestation, and any bare-metal CPU. An ordinary hypervisor runs inside, or as, the host: the host and its administrator can read every VM's memory, and VMs share cores. - **The host is outside the boundary.**The Hypervisor sits underneath the host and keeps it out. - **Cores aren't shared.**Each enclave has its own. - **No special CPU needed.**CPU memory-encryption features only exist on particular processors and slow fast-starting VMs. FlashEnclave works without them, and plans to use them where present as an extra layer. - **Checkable.**Attestation shows what runs. --- # Facts and figures > Every number on this site, with where it was measured. Source: https://flashenclave.com/how-it-works/facts · FlashEnclave facts and figures: supported platforms, measured boot times and limits, each with the hardware it was measured on. Every figure on this site lives here, with where it holds. FlashEnclave 0.1.25 ## Platforms | Fact | Value | Where | | --- | --- | --- | | Processors supported today | **AMD x86-64** | Intel and ARM planned | | Host operating system | **Ubuntu 22.04 and 24.04** | Secure Boot off | | Restarts needed to install | **1** | Any supported machine | ## Performance | Fact | Value | Where | | --- | --- | --- | | FlashVM boot inside an enclave | **70 ms** | AMD Ryzen AI 9 HX 470, median of 50 (86 ms without FlashEnclave) | | First Ubuntu boot in an enclave (unlock, install, boot) | **about 1 s** | AMD Ryzen AI 9 HX 470, 0.96–1.07 s on five fresh disks; nothing downloaded | | Later Ubuntu boot, from create until SSH answers | **1.4 s** | AMD Ryzen AI 9 HX 470, 1.34–1.41 s over three runs | ## Limits | Fact | Value | Where | | --- | --- | --- | | SSH ports for enclaves | **2201–2450** | One per enclave, kept across restarts | | Free memory to install Ubuntu | **about 230 MiB** | Once, on the first boot; a smaller enclave is told how much it needs | --- # What FlashEnclave is for > Turn any machine into sealed enclaves for keys, private data and AI: each with its own cores and memory, out of reach of the host and its administrators. Pick a use case to see what it is, why it matters, how it works and what you get. Source: https://flashenclave.com/use-cases · What FlashEnclave is for: selling isolated slices of a server, keeping secrets from the host, predictable performance, proving what runs, and many fast VMs per tenant. ## Sensitive data [**Protect private keys**Sign, decrypt and hold keys where the machine's own admins can't reach them.](https://flashenclave.com/use-cases/private-keys)[**Process sensitive data**Personal, health and financial data, processed out of the host's reach.](https://flashenclave.com/use-cases/sensitive-data)[**Confidential AI**Run models on private prompts and data, with weights the host can't copy.](https://flashenclave.com/use-cases/confidential-ai) ## Tenants [**Sell slices of a server**Give each tenant an enclave of their own on one bare-metal machine.](https://flashenclave.com/use-cases/sell-slices)[**Predictable performance**An enclave's cores are its own: no noisy neighbours.](https://flashenclave.com/use-cases/noisy-neighbours) ## Security & trust [**Keep secrets from the host**Run code that handles keys, customer data or models where the host can't read it.](https://flashenclave.com/use-cases/keep-secrets-from-host)[**Prove what runs**Show a tenant or auditor exactly which software is running, backed by the TPM.](https://flashenclave.com/use-cases/prove-what-runs) ## Workloads [**Many fast VMs per tenant**Run FlashVMM inside an enclave for fast-starting VMs, still sealed off.](https://flashenclave.com/use-cases/many-fast-vms) --- # Protect private keys > Sign, decrypt and hold keys where the machine's own admins can't reach them. Source: https://flashenclave.com/use-cases/private-keys · Keep private keys, certificates and signing operations in a FlashEnclave enclave: the host OS, its administrators and its software can't read the enclave's memory. ## What it is A vault for keys inside an ordinary machine. Run your signing service, key manager or certificate authority in an enclave. The keys live in the enclave's memory and on its encrypted disk, and the host it runs on has no way to read either. ## Why it matters A key is only as safe as the most privileged account on the machine that uses it. Most leaks come from the host: a compromised admin account, a debugger, a memory dump, a backup. - **Root on the host isn't enough.**The hypervisor underneath the host keeps it out of enclave memory. - **Prove it before you load a key.**Attestation shows exactly which software is running, from your own machine. - **No special hardware.**Any supported PC or server becomes the vault. ## How it works Create an enclave for the key service, set up its disk with your own key, check it with attestation, then load your keys. ``` sudo fe enclave create signer --image ubuntu --cores 2 --memory 2048 --disk-gib 4 --ssh-key ~/.ssh/id_ed25519.pub fe-verify check --via "ssh HOST sudo fe attest" ``` ## The result Keys that stay secret even from the people who run the machine. --- # Process sensitive data > Personal, health and financial data, processed out of the host's reach. Source: https://flashenclave.com/use-cases/sensitive-data · Process personal data, health records and financial data in a FlashEnclave enclave, shielded while in use from the host OS, its users and its administrators. ## What it is Data protected while it is being used, not only at rest and in transit. Encryption protects data on disk and on the wire, but it has to be decrypted to be processed, and on an ordinary server the host can see it then. In an enclave it is decrypted only in memory the host can't read. ## Why it matters Regulated data (personal information, health records, card and banking data) puts everyone with access to the server in scope. Taking the host and its operators out of reach shrinks who can see it. - **Fewer people in scope.**Host admins and host software can't read enclave memory. - **Disk is ciphertext to the host.**Each enclave's disk is encrypted with a key only you hold. - **Memory wiped both ways.**Zeroed when an enclave is created and again when it is deleted. ## How it works Run the processing service in an enclave and publish only the port it serves on: ``` sudo fe enclave create records --image ubuntu --cores 8 --memory 16384 --disk-gib 64 --ssh-key ~/.ssh/id_ed25519.pub --port 8443:443 ``` ## The result Sensitive data processed on shared or rented machines, without trusting their operators. --- # Confidential AI > Run models on private prompts and data, with weights the host can't copy. Source: https://flashenclave.com/use-cases/confidential-ai · Run AI inference in a FlashEnclave enclave: prompts, customer data and model weights stay out of reach of the host OS and its administrators. ## What it is Inference where neither the prompts nor the model leave the enclave. Load a model into an enclave and serve it from there. Customer prompts and data are decrypted only inside it, and the weights sit in memory and on a disk the host can't read. ## Why it matters Customers hesitate to send private data to a model, and model owners hesitate to put weights on someone else's machine. An enclave answers both, and attestation lets each side check what is running. - **Private inputs.**Prompts and data are only ever readable inside the enclave. - **Protected weights.**The host can't copy the model out of memory or disk. - **Dedicated cores.**Inference speed doesn't depend on the neighbours. ## How it works Create an enclave sized for the model and serve it on a published port: ``` sudo fe enclave create inference --image ubuntu --cores 16 --memory 65536 --disk-gib 128 --ssh-key ~/.ssh/id_ed25519.pub --port 8080:8080 ``` ## The result AI on private data, on hardware you or your provider own, without trusting the host. --- # Sell slices of a server > Give each tenant an enclave of their own on one bare-metal machine. Source: https://flashenclave.com/use-cases/sell-slices · Sell isolated slices of one bare-metal server: each tenant gets a FlashEnclave enclave with its own cores, memory, encrypted disk and SSH login, sealed from the host. ## What it is One physical machine, many tenants, each in a sealed enclave. FlashEnclave splits a bare-metal server into enclaves. Each customer, the tenant, gets one: its own CPU cores, its own memory, its own operating system and an encrypted disk only they hold the key to. They log in over SSH like any server. ## Why it matters On an ordinary shared server, the host and whoever runs it can read every tenant's memory, and tenants compete for the same cores. A break-in on the host exposes everyone. - **Tenants can't see each other.**Memory, cores and network are separated by the hypervisor underneath the host. - **The operator can't see in either.**The host OS has no access to an enclave's memory. - **Any bare-metal machine.**No special cloud hardware: a server in your rack, or a rented bare-metal machine. ## How it works Install FlashEnclave on the machine once, then create an enclave per tenant. ``` sudo fe enclave create tenant-a --image ubuntu --cores 4 --memory 4096 --disk-gib 8 --ssh-key tenant-a.pub --port 8080:80 ``` The command prints the SSH login for that tenant. They format and unlock the encrypted disk with their own key, and boot Ubuntu. ## The result Several tenants on one machine, none of whom can read the others or be read by you. --- # Predictable performance > An enclave's cores are its own: no noisy neighbours. Source: https://flashenclave.com/use-cases/noisy-neighbours · FlashEnclave gives each enclave whole, dedicated physical CPU cores and fixed memory, so other tenants and the host can't slow it down. ## What it is Whole physical cores and fixed memory, reserved for one enclave. An enclave is given whole cores, never shared with the host or another enclave, and a fixed amount of memory set aside at boot. ## Why it matters Shared cores mean one busy tenant slows everyone else. With dedicated cores, a tenant's performance doesn't depend on who else is on the machine. - **No time-slicing with strangers.**The host scheduler never runs anything else on an enclave's cores. - **Memory that stays put.**An enclave's memory is set aside for it and is never reclaimed by the host while it runs. ## How it works Choose the shape when you create the enclave: ``` sudo fe enclave create db --image ubuntu --cores 8 --memory 16384 --disk-gib 64 --ssh-key db.pub ``` FlashEnclave refuses a shape the machine can't give, rather than overcommitting. ## The result The same performance at 3 a.m. and at peak, whoever else is on the box. --- # Keep secrets from the host > Run code that handles keys, customer data or models where the host can't read it. Source: https://flashenclave.com/use-cases/keep-secrets-from-host · Run sensitive workloads in a FlashEnclave enclave: the host operating system and its administrators can't read the enclave's memory, and its disk is encrypted with your key. ## What it is A place on the machine that the machine's own operating system can't look into. Code in an enclave runs on memory the host OS has no access to. Its disk is encrypted and authenticated inside the enclave with a key only you hold, so the host stores only ciphertext. ## Why it matters Keys, customer records and model weights are only as safe as the least trusted person with root on the host. FlashEnclave takes the host out of that list. - **Root on the host isn't enough.**The hypervisor underneath the host keeps it out of enclave memory. - **Disk at rest is ciphertext.**The host never sees your disk key. - **Memory wiped both ways.**An enclave starts with zeroed memory and is zeroed again when deleted. ## How it works Create the enclave, then set up its disk with a key you keep: ``` openssl rand -hex 32 > disk.key ssh -p 2201 root@HOST fe-disk format --yes < disk.key ssh -p 2201 root@HOST fe-disk unlock < disk.key ``` ## The result Your data and code on someone else's machine, without trusting that machine's administrators. --- # Prove what runs > Show a tenant or auditor exactly which software is running, backed by the TPM. Source: https://flashenclave.com/use-cases/prove-what-runs · FlashEnclave measures itself and every enclave into the machine's TPM, so anyone can check remotely and cryptographically which exact software is running before they trust it. ## What it is A cryptographic answer to "what is actually running on that machine?" The FlashEnclave Hypervisor records itself and every enclave it starts in the machine's TPM. A tenant or auditor runs`fe-verify`from their own computer to get a signed TPM quote and check it against published versions. ## Why it matters Promises about isolation are only worth as much as your ability to check them. Attestation turns "trust us" into something a tenant verifies themselves. - **Checked from outside.**The verifier runs on the tenant's machine, not the host. - **Rooted in hardware.**The quote is signed by the machine's TPM. - **Every enclave counts.**A check fails if any live enclave doesn't match. ## How it works Enroll the host once while it is known to be good, then check whenever you like: ``` fe-verify enroll --via "ssh HOST sudo fe attest" fe-verify check --via "ssh HOST sudo fe attest" ``` ## The result A tenant can confirm what is running before they send it a single secret. --- # Many fast VMs per tenant > Run FlashVMM inside an enclave for fast-starting VMs, still sealed off. Source: https://flashenclave.com/use-cases/many-fast-vms · Run FlashVMM inside a FlashEnclave enclave to give each tenant many fast-starting VMs with snapshots and fork, sealed from the host and from other tenants. ## What it is An enclave that runs lightweight VMs of its own. The`flashvmm`enclave kind comes with FlashVMM built in. FlashVMM runs unchanged inside the enclave: fast-booting VMs, snapshots and restore, checkpoints, fork, sleep and wake. ## Why it matters A tenant often wants many small machines, not one big one. Each tenant gets their own VM fleet, and the fleet as a whole stays sealed inside their enclave. - **Fast inside the enclave too.**On our AMD test machine a FlashVM boots in 70 ms inside an enclave. - **Also your own VMs.**`/dev/kvm`is in every enclave, so QEMU with KVM works as well. ## How it works ``` sudo fe enclave create myvms --image flashvmm --cores 4 --memory 8192 --ssh-key ~/.ssh/id_ed25519.pub ``` Log in, then start a FlashVM: ``` flash run --id vm1 --bundle /fv/bundle --vcpus 1 --mem-mib 256 --entry "uname -sr" ``` ## The result A private VM platform per tenant, on shared hardware.