summaryrefslogtreecommitdiff
path: root/pkg/machine/qemu
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-12 19:23:50 +0000
committerGitHub <noreply@github.com>2021-08-12 19:23:50 +0000
commit50ef8c1798d0eb2bd192ccd348a538714dc92bc2 (patch)
treef28d4cf354c6b92433b2cd75e536c5cb7d6ac65c /pkg/machine/qemu
parent63269b60fe7f928c29439357177ab56242723258 (diff)
parent1acbdf9402b9cd37600e43818efd5293cb107b7d (diff)
downloadpodman-50ef8c1798d0eb2bd192ccd348a538714dc92bc2.tar.gz
podman-50ef8c1798d0eb2bd192ccd348a538714dc92bc2.tar.bz2
podman-50ef8c1798d0eb2bd192ccd348a538714dc92bc2.zip
Merge pull request #11215 from baude/v3.3gvproxy
Set gvproxy path to /usr/libexec/podman/gvproxy
Diffstat (limited to 'pkg/machine/qemu')
-rw-r--r--pkg/machine/qemu/machine.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 9cb04ff0a..a92892957 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -605,10 +605,12 @@ func CheckActiveVM() (bool, string, error) {
// startHostNetworking runs a binary on the host system that allows users
// to setup port forwarding to the podman virtual machine
func (v *MachineVM) startHostNetworking() error {
- binary, err := exec.LookPath(machine.ForwarderBinaryName)
- if err != nil {
+ // TODO we may wish to configure the directory in containers common
+ binary := filepath.Join("/usr/libexec/podman/", machine.ForwarderBinaryName)
+ if _, err := os.Stat(binary); err != nil {
return err
}
+
// Listen on all at port 7777 for setting up and tearing
// down forwarding
listenSocket := "tcp://0.0.0.0:7777"