diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-09-05 22:16:59 +0200 |
---|---|---|
committer | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-12-30 13:36:56 +0100 |
commit | 8e7eeaa4dd14621bda15e396fcd7b9187bc500c5 (patch) | |
tree | 48c47ce64edb0ac5288fbe2e1a74a7c2ace28fb8 /pkg/machine/qemu/config.go | |
parent | 807f7cfed3df770abcb7609e9b281d666a110b27 (diff) | |
download | podman-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 'pkg/machine/qemu/config.go')
-rw-r--r-- | pkg/machine/qemu/config.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/machine/qemu/config.go b/pkg/machine/qemu/config.go index 8404079a2..177487953 100644 --- a/pkg/machine/qemu/config.go +++ b/pkg/machine/qemu/config.go @@ -11,6 +11,8 @@ type MachineVM struct { CPUs uint64 // The command line representation of the qemu command CmdLine []string + // Mounts is the list of remote filesystems to mount + Mounts []Mount // IdentityPath is the fq path to the ssh priv key IdentityPath string // IgnitionFilePath is the fq path to the .ign file @@ -33,6 +35,13 @@ type MachineVM struct { RemoteUsername string } +type Mount struct { + Type string + Tag string + Source string + Target string +} + type Monitor struct { // Address portion of the qmp monitor (/tmp/tmp.sock) Address string |