Last active
August 29, 2015 14:27
-
-
Save michalskalski/5cc56ac700f307976a3b to your computer and use it in GitHub Desktop.
Fuel 7.0 on Mac OS X 10.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Dowload Fuel main repository | |
$ wget https://github.com/stackforge/fuel-main/archive/master.zip | |
2. Unpack and go to virtualbox directory | |
$ unzip master.zip && cd fuel-main-master/virtualbox | |
3. Put ISO image inside iso directory | |
4. As a root edit your packet control configuration to create NAT for admin network | |
$ sudo vim /etc/pf.conf | |
scrub-anchor "com.apple/*" | |
nat-anchor "com.apple/*" | |
# en0 is my wifi network interface | |
nat on en0 from 10.20.0.0/24 -> (en0) | |
rdr-anchor "com.apple/*" | |
dummynet-anchor "com.apple/*" | |
anchor "com.apple/*" | |
load anchor "com.apple" from "/etc/pf.anchors/com.apple" | |
5. Load new pf configuration | |
$ sudo pfctl -f /etc/pf.conf | |
6. Enable pf | |
$ sudo pfctl -e | |
7. Enable pf on boot | |
$ sudo defaults write /System/Library/LaunchDaemons/com.apple.pfctl ProgramArguments '(pfctl, -f, /etc/pf.conf, -e)' | |
$ sudo chmod 644 /System/Library/LaunchDaemons/com.apple.pfctl.plist | |
$ sudo plutil -convert xml1 /System/Library/LaunchDaemons/com.apple.pfctl.plist | |
8. Enable IP forwarding | |
$ sudo sysctl -w net.inet.ip.forwarding=1 | |
9. Make packet forwarding persist between reboots | |
$ sudo vim /Library/LaunchDaemons/sysctl.plist | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>sysctl</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/sbin/sysctl</string> | |
<string>-w</string> | |
<string>net.inet.ip.forwarding=1</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> | |
10. Launch fuel installation from virtualbox catalog | |
$ ./launch.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment