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

hypervisor: support user space mounts #48

Merged
merged 1 commit into from
Apr 18, 2023
Merged

hypervisor: support user space mounts #48

merged 1 commit into from
Apr 18, 2023

Conversation

cvengler
Copy link
Member

This depends on #43

This commit introduces the ability to mount custom files and folders
from the host operating system onto a partition.

The hypervisor configuration is adjusted as follows at partition layer:

mounts:
  - [ "/dev/urandom", "/dev/urandom"]
  - [ "/dev/urandom", "/dev/random"]
  - [ "/a/file/on/the/host", "/guest" ]

Future features could additionally include the ability to mount things
read-only, etc.

Fixes #42

cc @wucke13

hypervisor/src/hypervisor/partition.rs Outdated Show resolved Hide resolved
This commit introduces the ability to mount custom files and folders
from the host operating system onto a partition.

The hypervisor configuration is adjusted as follows at partition layer:
```yaml
mounts:
  - [ "/dev/urandom", "/dev/urandom"]
  - [ "/dev/urandom", "/dev/random"]
  - [ "/a/file/on/the/host", "/guest" ]
```

Future features could additionally include the ability to mount things
read-only, etc.

Fixes #42
@cvengler
Copy link
Member Author

Rebased

@wucke13
Copy link
Contributor

wucke13 commented Apr 18, 2023

@emilengler Thank you!

@wucke13 wucke13 dismissed sevenautumns’s stale review April 18, 2023 20:11

Both issues can be addressed later.

@wucke13 wucke13 merged commit 31a7765 into main Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add a possibility to make device files from /dev available in partitions if explicitly configured
3 participants