Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 1cec03b

Browse files
committed
Merge pull request #43 from phase2/feature/xhyve-support
Support for xhyve
2 parents b66e555 + 3105166 commit 1cec03b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ curl -s https://raw.githubusercontent.com/adlogix/docker-machine-nfs/master/dock
2222
* Virtualbox
2323
* Paralells
2424
* VMware Fusion
25+
* xhyve
2526

2627
## Usage
2728

docker-machine-nfs.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,16 @@ lookupMandatoryProperties ()
261261
return
262262
fi
263263

264+
if [ "$prop_machine_driver" = "xhyve" ]; then
265+
prop_network_id="Shared"
266+
prop_nfshost_ip=$(ifconfig -m `route get $prop_machine_ip | awk '{if ($1 ~ /interface:/){print $2}}'` | awk 'sub(/inet /,""){print $1}')
267+
if [ "" = "${prop_nfshost_ip}" ]; then
268+
echoError "Could not find the xhyve net IP!"; exit 1
269+
fi
270+
echoSuccess "OK"
271+
return
272+
fi
273+
264274
if [ "$prop_machine_driver" = "parallels" ]; then
265275
prop_network_id="Shared"
266276
prop_nfshost_ip=$(prlsrvctl net info \
@@ -458,4 +468,4 @@ restartDockerMachine
458468

459469
verifyNFSMount
460470

461-
showFinish
471+
showFinish

0 commit comments

Comments
 (0)