Skip to content

Commit

Permalink
Merge pull request kubernetes#17656 from spowelljr/fixHyperKit
Browse files Browse the repository at this point in the history
CI: Fix HyperKit failing to start
  • Loading branch information
medyagh authored Nov 21, 2023
2 parents 7a90bd1 + 88aba20 commit ec8a4c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hack/jenkins/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ function cleanup_procs() {
fi

if [[ "${DRIVER}" == "hyperkit" ]]; then
# even though Internet Sharing is disabled in the UI settings, it's still preventing HyperKit from starting
# the error is "Could not create vmnet interface, permission denied or no entitlement?"
# I've discovered that if you kill the "InternetSharing" process that this resolves the error and HyperKit starts normally
sudo pkill InternetSharing
if [[ -e out/docker-machine-driver-hyperkit ]]; then
sudo chown root:wheel out/docker-machine-driver-hyperkit || true
sudo chmod u+s out/docker-machine-driver-hyperkit || true
Expand Down

0 comments on commit ec8a4c0

Please sign in to comment.