Skip to content

Reference

Ryan Goodfellow edited this page Jan 10, 2022 · 20 revisions

P9 file system mounts

Falcon supports mounting files from the host into guest VMs. Currently, mounts are read-only; writes from the guest back to the host are not supported.

let violin = d.node("violin", "helios", 2, gb(2));
d.mount("./cargo-bay", "/opt/cargo-bay", violin)?;

This example will create a P9 filesystem device on the violin VM that provides access to the host's local folder cargo-bay with the p9fs tag /opt/cargo-bay in the guest.

Helios guests

Helios does not yet have p9fs filesystem support. However, a helios guest can access these files as follows.

mkdir /opt/cargo-bay
cd /opt/cargo-bay
p9kp pull

Which will run a user-space program that pulls the mounted files to the /opt/cargo-bay location. This is not an active guest mount, so if the files in the host change, another p9kp pull must be run.

Linux guests

To mount the filesystem in Linux

mount -t 9p -o ro /opt/cargo-bay /opt/cargo-bay

Clone this wiki locally