From 7472bdb161d3bee9da12e5e2aebcbbb47313f206 Mon Sep 17 00:00:00 2001 From: kaorihinata Date: Wed, 17 Jan 2024 22:56:03 -0500 Subject: [PATCH] Ensure podman temp directory is created on Start as well. `getRuntimeDir()` (which is also responsible for creating TMPDIR if it doesn't exist) was being called on `Init()` but not on `Start()` which meant that after the host was restarted and TMPDIR was wiped, `startHostNetworking()` would try to start gvproxy and immediately bail. Signed-off-by: kaorihinata --- pkg/machine/applehv/machine.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/machine/applehv/machine.go b/pkg/machine/applehv/machine.go index 78593f5c3b..83c0121478 100644 --- a/pkg/machine/applehv/machine.go +++ b/pkg/machine/applehv/machine.go @@ -572,6 +572,10 @@ func (m *MacMachine) Start(name string, opts machine.StartOptions) error { return machine.ErrVMAlreadyRunning } + if _, err := m.getRuntimeDir(); err != nil { + return err + } + // TODO handle returns from startHostNetworking forwardSock, forwardState, err := m.startHostNetworking() if err != nil {