From Fedora Project Wiki

Description

This test case ensures that Virtiofs volumes are accessible and fully functional in Podman machine.

Setup

Install the pre-release version of Fedora with Podman 5.2 on a bare metal system. Install the podman-machine subpackage.

How to test

  1. Run sudo dnf install podman-machine
  2. Create a dir of your choice, I named mine myvm
  3. Initialize a Podman machine with a volume added:
    1. podman machine init -v $HOME/myvm:$HOME/myvm:rw,security_model=none
  4. Start the Podman machine:
    1. podman machine start
  5. SSH into the Podman machine:
    1. podman machine ssh
  6. Navigate to the mounted volume:
    1. cd /path/in/machine
  7. Perform file operations within the volume:
 touch testfile
 echo "test content" > testfile
 cat testfile
 rm testfile

Expected Results

The following must be true to consider this a successful test run:

  1. The Podman machine initializes and starts successfully.
  2. The volume is accessible via SSH into the Podman machine.
  3. File operations (create, edit, delete) within the volume are successful without any errors.

Optional

Optionally, test with multiple volumes and perform complex file operations to ensure stability and performance.