1. Install host system
2. Configure system files
Configure: /etc/rc.conf
hostname="HOSTNAME"
## this section is hardware/system
moused_enable="YES"
sshd_enable="YES"
zfs_enable="YES"
## this section is the aggregated network interfaces
ifconfig_em0="up"
ifconfig_em1="up"
ifconfig_em2="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto lacp laggport em0 laggport em1 laggport em2"
ipv4_addrs_lagg0="10.0.10.149/24"
defaultrouter="10.0.10.1"
## this section is NFS and file sharing
nfs_client_enable=YES
syslogd_flags="-ss"
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
## configure jails here
ezjail_enable="YES"
## first jail IP
ifconfig_lagg0_alias0="inet 10.0.10.148/32"
Configure DNS: /etc/resolv.conf
nameserver 8.8.8.8 ## 8.8.8.8 is google DNS, put yours or something that works here
3. Create ZFS pool and move selected folders from boot drive to ZFS array
# zpool create tank mirror ad8 ad12
# zfs create tank/src
# zfs create tank/obj
# zfs create tank/jails
# zfs create tank/ports
# zfs set mountpoint=/usr/src tank/src
# zfs set mountpoint=/usr/obj tank/obj
# zfs set mountpoint=/usr/jails tank/jails
# zfs set mountpoint=/usr/ports tank/ports
4. download source code and ports tree
# pkg_add -r cvsup-without-gui
# cp /usr/src/share/examples/cvsup/standard-supfile /root
# rehash
# vi /root/standard-supfile
############ change the CHANGETHIS line to something like:
*default host=cvsup3.us.FreeBSD.org
# cvsup /root/standard-supfile
# portsnap fetch extract
6. Make your server do stuff.
No comments:
Post a Comment