summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu/config.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2022-03-28 13:30:48 -0500
committerBrent Baude <bbaude@redhat.com>2022-03-28 14:54:19 -0500
commit6e0e1cbddd5e1c5dff51215ad2b41a99d890fad8 (patch)
treee862c158d4bf7f67efeedf841466a4951fc2a7db /pkg/machine/qemu/config.go
parent9cfa9695a0e0e9e5d358f789c4d450d1388589b3 (diff)
downloadpodman-6e0e1cbddd5e1c5dff51215ad2b41a99d890fad8.tar.gz
podman-6e0e1cbddd5e1c5dff51215ad2b41a99d890fad8.tar.bz2
podman-6e0e1cbddd5e1c5dff51215ad2b41a99d890fad8.zip
Migrate machine configs
If podman detects a Machinev1 config, it will automatically migrate it to the new format. Signed-off-by: Brent Baude <bbaude@redhat.com> [NO NEW TESTS NEEDED]
Diffstat (limited to 'pkg/machine/qemu/config.go')
-rw-r--r--pkg/machine/qemu/config.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/machine/qemu/config.go b/pkg/machine/qemu/config.go
index 408b33a33..05a1d74d3 100644
--- a/pkg/machine/qemu/config.go
+++ b/pkg/machine/qemu/config.go
@@ -49,7 +49,7 @@ type MachineVMV1 struct {
// SSH port for user networking
Port int
// QMPMonitor is the qemu monitor object for sending commands
- QMPMonitor Monitor
+ QMPMonitor Monitorv1
// RemoteUsername of the vm user
RemoteUsername string
// Whether this machine should run in a rootful or rootless manner
@@ -134,6 +134,15 @@ type Mount struct {
ReadOnly bool
}
+type Monitorv1 struct {
+ // Address portion of the qmp monitor (/tmp/tmp.sock)
+ Address string
+ // Network portion of the qmp monitor (unix)
+ Network string
+ // Timeout in seconds for qmp monitor transactions
+ Timeout time.Duration
+}
+
type Monitor struct {
// Address portion of the qmp monitor (/tmp/tmp.sock)
Address MachineFile