From d825c0237857732b75d2c07c93a37abecb8d5052 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 14 Mar 2025 06:55:30 +0100 Subject: [PATCH] Update readme.md --- readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/readme.md b/readme.md index 6d8a204..ec463a3 100644 --- a/readme.md +++ b/readme.md @@ -276,6 +276,23 @@ kubectl apply -f https://raw.githubusercontent.com/qemus/qemu-arm/refs/heads/mas - /dev/bus/usb ``` +### How do I share files with the host? + + To share files with the host, first ensure that your guest OS has `9pfs` support compiled in or available as a kernel module. If so, add the following volume to your compose file: + + ```yaml + volumes: + - ./example:/shared + ``` + + Then start the container and execute the following command in the guest: + + ```shell + mount -t 9p -o trans=virtio shared /mnt/example + ``` + + Now the `./example` directory on the host will be available as `/mnt/example` in the guest. + ### How can I provide custom arguments to QEMU? You can create the `ARGUMENTS` environment variable to provide additional arguments to QEMU at runtime: