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
- Run
sudo dnf install podman-machine
- 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,security_model=none
- Start the Podman machine:
- podman machine start
- SSH into the Podman machine:
- podman machine ssh
- Navigate to the mounted volume:
- cd /path/in/machine
- 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:
- The Podman machine initializes and starts successfully.
- The volume is accessible via SSH into the Podman machine.
- 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.