Skip to content

Commit

Permalink
doc: config: Start examples section
Browse files Browse the repository at this point in the history
Sometimes toml can be a bit obtuse. Examples help a lot.
  • Loading branch information
danobi committed Aug 15, 2024
1 parent 0a63dce commit 5c08c6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,16 @@ The Mount struct for defining additional host mounts into the VM.
* Optional field
* Whether this mount is writable in the VM.
* Default: false

# Examples

Mount host tmpfs inside guest with read/write permissions:

```toml
[[target]]
name = "test"
kernel = "/home/dlxu/scratch/bzImage-v6.6-empty"
command = "ls -l /tmp/hosttmp"
[target.vm.mounts]
"/tmp/hosttmp" = { host_path = "/tmp", writable = true }
```

0 comments on commit 5c08c6f

Please sign in to comment.