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

# Virtual machines

> Install the virt module, then create a virtual machine from an ISO or a disk image, open its console in the browser, share folders and take snapshots.

Virtual machines come with the optional `virt` module: install it from the [Modules](https://docs.recasaos.org/modules/modules.md) window, or with `sudo casaos module install virt`. The **Virtual Machines** card then appears in the app grid. The machine needs libvirt and QEMU; without hardware acceleration (KVM) virtual machines run, but slowly.

## Create a virtual machine

1. In **Virtual Machines**, click **+** at the top (*New virtual machine*).
2. **Installation image**: **Browse…** an ISO or a disk image under `/DATA` (put them in `/DATA/VM/iso` with Files), **Upload an image**, or the download icon (*Download from a URL*, with its SHA-256 if the site gives one). Or none, for an empty disk.
3. **General**: **Name**, **Operating system**, **CPU cores**, **Memory (GB)**, **Firmware** (UEFI or BIOS). **Storage & CD**: disk size and where it is saved. **Network**.
4. **Start it once it is created**, and **Start it when this machine starts** if it must come back after a power cut. Then **Create**.

Each virtual machine gets a tile in the app grid, with its state. Click it to open its **Console** in the browser.

## Manage it

Open it in **Virtual Machines**: **Start**, **Shut down**, **Restart**, **Force off**, and the tabs **General**, **Storage & CD**, **Network & ports**, **USB**, **Shared folders** and **Snapshots**. Processor and memory changes take effect the next time it starts.

* **Shared folders** (when the module offers it): folders of the box the virtual machine mounts by a tag, as it would a disk. **Share a folder…** adds one; the window gives the line for the VM's `/etc/fstab`. Without `virtiofsd` on the box, the tab says how to install it.
* **Snapshots**: **Take snapshot** keeps the disks and firmware settings as they are, even with the VM running (it pauses for an instant); memory is not kept. **Go back** and **Delete** need the VM off.
* **Network & ports**: port forwards need a fixed address (.2 to .99).

> [!WARNING]
>
> **Force off** cuts the virtual machine like a power cut: what it has not saved is lost, and its disk can be damaged. **Delete** removes the disk and everything on it, unless you choose to keep the disk.

Removing the module, or uninstalling ReCasaOS, leaves the virtual machines' data in `/DATA/VM`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.