summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnders F Björklund <anders.f.bjorklund@gmail.com>2021-09-05 22:16:59 +0200
committerAnders F Björklund <anders.f.bjorklund@gmail.com>2021-12-30 13:36:56 +0100
commit8e7eeaa4dd14621bda15e396fcd7b9187bc500c5 (patch)
tree48c47ce64edb0ac5288fbe2e1a74a7c2ace28fb8 /docs
parent807f7cfed3df770abcb7609e9b281d666a110b27 (diff)
downloadpodman-8e7eeaa4dd14621bda15e396fcd7b9187bc500c5.tar.gz
podman-8e7eeaa4dd14621bda15e396fcd7b9187bc500c5.tar.bz2
podman-8e7eeaa4dd14621bda15e396fcd7b9187bc500c5.zip
Implement virtfs volumes for podman machine
Allow using the built-in 9pfs feature of qemu, mounting host directories into vm mountpoints. The volumes are generic, the mounts are specific. Wait for the machine to be "running", otherwise the SSH function might throw an error instead. Increase the default msize from 8 KiB to 128 KiB [NO NEW TESTS NEEDED] Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/source/markdown/podman-machine-init.1.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-machine-init.1.md b/docs/source/markdown/podman-machine-init.1.md
index aead6c695..b936447fb 100644
--- a/docs/source/markdown/podman-machine-init.1.md
+++ b/docs/source/markdown/podman-machine-init.1.md
@@ -61,6 +61,16 @@ Set the timezone for the machine and containers. Valid values are `local` or
a `timezone` such as `America/Chicago`. A value of `local`, which is the default,
means to use the timezone of the machine host.
+#### **--volume**, **-v**=*source:target*
+
+Mounts a volume from source to target.
+
+Create a mount. If /host-dir:/machine-dir is specified as the `*source:target*`,
+Podman mounts _host-dir_ in the host to _machine-dir_ in the Podman machine.
+
+The root filesystem is mounted read-only in the default operating system,
+so mounts must be created under the /mnt directory.
+
#### **--help**
Print usage statement.
@@ -72,6 +82,7 @@ $ podman machine init
$ podman machine init myvm
$ podman machine init --disk-size 50
$ podman machine init --memory=1024 myvm
+$ podman machine init -v /Users:/mnt/Users
```
## SEE ALSO