From Fedora Project Wiki

Revision as of 05:30, 24 July 2024 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |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. |actions= # Run <code> sudo dnf install podman-machine </code> # Create a dir of your choice, I named mine ``myvm`` # Initialize a Podman machine with a volume added: ## podman machine init -v $HOME/myvm:$HOME/myvm:rw...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.