summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-04 15:43:58 +0000
committerGitHub <noreply@github.com>2021-08-04 15:43:58 +0000
commit77f8c6549ab1df393f613cc13e93e8dcec859614 (patch)
tree800c2b006daece10d9fe6e233525f9e65c0ea320
parent6ff19643007303a35fcc0f7b7aa611ffcc1c5d5c (diff)
parent4acc1d685066faa1dc102532ba76a81d3ec6bdc0 (diff)
downloadpodman-77f8c6549ab1df393f613cc13e93e8dcec859614.tar.gz
podman-77f8c6549ab1df393f613cc13e93e8dcec859614.tar.bz2
podman-77f8c6549ab1df393f613cc13e93e8dcec859614.zip
Merge pull request #11096 from baude/gvproxystaticpath
Use static path for gvproxy
-rw-r--r--pkg/machine/qemu/machine.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/machine/qemu/machine.go b/pkg/machine/qemu/machine.go
index 42ae23c43..0740a2b2c 100644
--- a/pkg/machine/qemu/machine.go
+++ b/pkg/machine/qemu/machine.go
@@ -603,9 +603,9 @@ 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 {
- return err
+ binary := filepath.Join("/usr/lib/podman/", machine.ForwarderBinaryName)
+ if _, err := os.Stat(binary); os.IsNotExist(err) {
+ return errors.Errorf("unable to find %s", binary)
}
// Listen on all at port 7777 for setting up and tearing
// down forwarding