virtiofsd -socket-path=/tmp/vhostqemu -o source=$TESTDIR -o cache=always If it contains a file that you can check from inside the guest we assume that $TESTDIR Now also build the virtiofsd included in the qemu source:Ī shared directory for testing is needed, this can initially be empty, but it's useful configure -prefix=$PWD -target-list=x86_64-softmmu Inside the checkout create a build directory, and from inside that build directory: On the host, download the virtiofs QEMU tree by: Note: An alternative is to build the kernel on the host and pass the kernel on the QEMU command line Īlthough this can take some work to get initrd's to work right. Make -j 8 & make -j 8 modules & make -j 8 modules_install & make -j 8 installīoot the guest and ensure it boots normally. The following config options are selected:īuild and install the kernel in the guest, on most distros this can be most However if you want access to development features, download the virtiofs kernelĬonfigure, build and install this kernel inside your guest VM, ensuring that Image to run under QEMU and a Linux host on which you can build and runĪn appropriately configured Linux 5.4 or later can be used for virtiofs, The instructions assume that you already have available a Linux guest The example virtiofs daemon (virtiofsd).In general it's easier to debug basic issues in this environment than inside Kata Containers. Allow remote login on macOS host: System Preferences > Sharing > Remote login.This document describes how to setup the virtiofs components for standalone testing with QEMU and without Kata Containers.As of July 2021, 9pfs and virtfs are not available in QEMU on macOS.Īn alternate method to share folders with read-write access from a macOS host to a Linux VM is to use sshfs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |