diff --git a/pkg/machine/applehv/machine.go b/pkg/machine/applehv/machine.go index 518eb18d6d..78593f5c3b 100644 --- a/pkg/machine/applehv/machine.go +++ b/pkg/machine/applehv/machine.go @@ -572,12 +572,6 @@ func (m *MacMachine) Start(name string, opts machine.StartOptions) error { return machine.ErrVMAlreadyRunning } - ioEater, err := os.OpenFile(os.DevNull, os.O_WRONLY, 0755) - if err != nil { - return err - } - defer ioEater.Close() - // TODO handle returns from startHostNetworking forwardSock, forwardState, err := m.startHostNetworking() if err != nil { @@ -641,8 +635,6 @@ func (m *MacMachine) Start(name string, opts machine.StartOptions) error { cmd.Args = append(cmd.Args, "--gui") // add command line switch to pop the gui open } - cmd.ExtraFiles = []*os.File{ioEater, ioEater, ioEater} - readSocketBaseDir := filepath.Dir(m.ReadySocket.GetPath()) if err := os.MkdirAll(readSocketBaseDir, 0755); err != nil { return err @@ -1039,7 +1031,8 @@ func (m *MacMachine) setupAPIForwarding(cmd gvproxy.GvproxyCommand) (gvproxy.Gvp } } - return cmd, "", machine.MachineLocal + return cmd, socket.GetPath(), machine.MachineLocal + } func (m *MacMachine) dockerSock() (string, error) {