From c81e808e98023d1901dd6cd50ecd3c9293740414 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 3 Dec 2019 12:37:30 -0800 Subject: [PATCH] docs: Update instructions regarding virtiofsd The documentation was out of date since the URL to download virtiofsd binary was not valid anymore. Instead, the updated documentation now describe how to build virtiofsd from source. Fixes #491 Signed-off-by: Sebastien Boeuf --- docs/fs.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/fs.md b/docs/fs.md index 54fc817ba..fcc2ebee8 100644 --- a/docs/fs.md +++ b/docs/fs.md @@ -10,11 +10,12 @@ __virtio-fs__, also known as __vhost-user-fs__ is a virtual device defined by th This virtual device relies on the _vhost-user_ protocol, which assumes the backend (device emulation) is handled by a dedicated process running on the host. This daemon is called __virtiofsd__ and needs to be present on the host. -_Install virtiofsd_ +_Build virtiofsd_ ```bash -VIRTIOFSD_URL="$(curl --silent https://api.github.com/repos/cloud-hypervisor/nemu/releases/latest | grep "browser_download_url" | grep "virtiofsd-x86_64" | grep -o 'https://.*[^ "]')" -wget --quiet $VIRTIOFSD_URL -O "virtiofsd" -chmod +x "virtiofsd" +git clone --depth 1 "https://github.com/sboeuf/qemu.git" -b "virtio-fs" $VIRTIOFSD_DIR +cd $VIRTIOFSD_DIR +./configure --prefix=$PWD --target-list=x86_64-softmmu +make virtiofsd -j `nproc` sudo setcap cap_sys_admin+epi "virtiofsd" ``` _Create shared directory_