Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement VirtIO 9P binds #82

Closed
yaroslav-gwit opened this issue Nov 13, 2023 · 1 comment
Closed

Implement VirtIO 9P binds #82

yaroslav-gwit opened this issue Nov 13, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@yaroslav-gwit
Copy link
Owner

VirtIO 9P binds will allow us to automate VM deployments even further, due to the fact that any kind of scripts: shell, Nim, Go, Python, etc etc can be mounted in a specific folder, and executed on boot.

On the bhyve side it's as simple as adding this line: sharename=/path/to/share[,9p-device-options]. For example:

-s 9,virtio-9p,sharename=/mnt

Then, on the VM side it can be mounted like so:

mount -t 9p -o trans=virtio,version=9p2000.L,rw sharename /mnt
@yaroslav-gwit yaroslav-gwit added the enhancement New feature or request label Nov 13, 2023
@yaroslav-gwit yaroslav-gwit self-assigned this Nov 13, 2023
@yaroslav-gwit
Copy link
Owner Author

The change has been implemented. You can now add your shares like so:

"9p_shares": [
    { "share_name": "temp", "read_only": false, "share_location": "/tmp/" },
    { "share_name": "root", "read_only": true, "share_location": "/root/" }
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant