SlideShare una empresa de Scribd logo
1 de 24
Descargar para leer sin conexión
TrueOS and Warden: Easy
to Deploy FreeBSD Servers
Dru Lavigne
Director of Community Development, iXsystems
TxLF, June 1, 2013
Outline
Introduction
TrueOS Features
Automated Deployment
Warden Features
Additional Resources
Introduction
PC-BSD Project started as a graphical installer
and graphical utilities to make it easy to install and
use a FreeBSD desktop
Project did not simply port existing Linux utils due
to differences between Linux and BSD and to
provide one consistent look
Each graphical utility is a QT based front-end
based on a Bourne (sh) back-end, meaning that
the same functionality can be achieved on a
minimalist desktop or even a command-line only
system
Introduction
These utilities proved to also be useful for server
installation and administration
This presentation introduces the following utilities
which ease the deployment of servers:
TrueOS: a FreeBSD command line server plus
the CLI versions of PC-BSD utils and some extra
tools designed to ease the learning curve for
Linux sysadmins (e.g. bash, sudo, nano, rsync,
screen, smartmontools)
Introduction
pc-sysinstall: fully scriptable, CLI version of the
installer, specifically designed for customized
installations and automated deployments
thin client: script to easily create an installation
server for automated installs over PXE
Warden: utility for deploying and managing
FreeBSD and Linux jails (light-weight, virtualized
operating systems)
TrueOS Features
Easy to install, CLI-only FreeBSD server using
graphical installer or an automated script
Supports ZFS configuration during install: mirror,
RAIDZ, RAIDZ2, RAIDZ3, datasets, and
properties (e.g. compression, atime, exec,
canmount)
Installation sets the login user account, optionally
enables SSH, and sets root password (SSH root
logins are denied by default)
ZFS in GUI Installer
ZFS in GUI Installer
TrueOS Features
If install with ZFS, beadm(1) can be used to take
a snapshot of the boot environment before
performing an upgrade
If the upgrade fails, simply activate that snapshot
to boot into the previous boot environment
Upcoming Features
9.2 will include utilities to schedule automatic ZFS
scrubs, create and manage ZFS snapshots, and
create beadm snapshots--these can be performed
now using zfs(8) and beadm(1)
Once the necessary boot changes have been
made to FreeBSD, a utility will be created to make
it easy to select from beadm snapshots at system
boot
Automated Deployment
The backend to the graphical installer is a script
named pc-sysinstall. Its syntax is similar to
sysinstall(8), making it easy to convert existing
custom deployments
Adds directives to layout disks with ZFS
Examples can be found in
/usr/share/examples/pc-sysinstall/
The graphical installer saves its config to
/root/pc-sysinstall.cfg, making it easy to customize
a complex installation
Sample Config
Automated Deployment
To automatically rollout a custom configuration
over PXE, use the thinclient script to create an
installation server
This script installs and configures a DHCP server,
TFTP server, and NFS server
A sample installation script can be found in
/usr/home/thinclient/installscripts/pc-
sysinstall.example
Install clients automatically boot into a menu:
PXE Client Menu
Warden Features
Since 2000, FreeBSD has provided light-weight
OS virtualization using jail(8)
Ideally suited for deploying servers who host
network services as services are isolated from
both the host system and any other jails
Warden makes it easy to deploy and manage
jails, start/stop services within jails, and
install/upgrade software within jails
Warden Features
Warden supports 3 types of jails:
1.1. Ports Jail: used to safely install and use
ports/packages (software) without affecting
underlying OS and its software
2.
3.2. Traditional Jail: used to securely deploy
network services
4.
5.3. Linux Jail: used to securely deploy Linux
servers (currently Gentoo and Debian Squeeze)
Warden GUI
Warden Features
If the host's filesystem is ZFS, Warden can be
used to schedule and manage ZFS snapshots,
even for Linux jails
Snapshots can be deployed to another system
Jails can be exported (all of its software,
configuration, and files) and imported to another
jail or system
Managing Snapshots
in Warden
CLI Version of Warden
Upcoming Warden
Features
Ability to create named jails (not just IP)
IP addresses and aliases can be changed on the
fly
Templates allow you to select any version of
FreeBSD (from 4.1 to HEAD) to deploy
Vnet support provides each jail its own networking
stack, loopback address, IPsec, etc.
Additional Resources
Documentation: http://wiki.pcbsd.org
IRC: #pcbsd on Freenode
Automating the deployment of FreeBSD &
PC-BSD systems:
http://www.bsdcan.org/2013/schedule/attachment
s/248_bsdcan2013.pdf
Additional Resources
The Warden - FreeBSD and Linux Jail
Management:
http://www.youtube.com/watch?v=2WEX_W7nH3Y
Improvements to Jail Management via the
Warden:
http://bsdmag.org/magazine/1838-jails-firewall-
with-pf
(page 16-17)
Questions?
Contact:
dru@freebsd.org
URL to Slides:
http://slideshare.net/dlavigne/tlf2013

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

BSD for Linux Users
BSD for Linux UsersBSD for Linux Users
BSD for Linux Users
 
Fsoss2011
Fsoss2011Fsoss2011
Fsoss2011
 
Asiabsdcon15
Asiabsdcon15Asiabsdcon15
Asiabsdcon15
 
Flourish11
Flourish11Flourish11
Flourish11
 
Posscon2013
Posscon2013Posscon2013
Posscon2013
 
Dru lavigne servers-tutorial
Dru lavigne servers-tutorialDru lavigne servers-tutorial
Dru lavigne servers-tutorial
 
BSD for Linux Users
BSD for Linux UsersBSD for Linux Users
BSD for Linux Users
 
Ilf2012
Ilf2012Ilf2012
Ilf2012
 
Olf2012
Olf2012Olf2012
Olf2012
 
Lavigne bsdmag-jan2012
Lavigne bsdmag-jan2012Lavigne bsdmag-jan2012
Lavigne bsdmag-jan2012
 
Nycbsdcon14
Nycbsdcon14Nycbsdcon14
Nycbsdcon14
 
Nelf2012
Nelf2012Nelf2012
Nelf2012
 
Fosscon2013
Fosscon2013Fosscon2013
Fosscon2013
 
Scale13
Scale13Scale13
Scale13
 
Scale9x sun
Scale9x sunScale9x sun
Scale9x sun
 
Lavigne bsdmag-jan13
Lavigne bsdmag-jan13Lavigne bsdmag-jan13
Lavigne bsdmag-jan13
 
SELF 2010: BSD For Linux Users
SELF 2010: BSD For Linux UsersSELF 2010: BSD For Linux Users
SELF 2010: BSD For Linux Users
 
Olf2013
Olf2013Olf2013
Olf2013
 
Lavigne aug11 bsdmag
Lavigne aug11 bsdmagLavigne aug11 bsdmag
Lavigne aug11 bsdmag
 
Article may11 bsdmag
Article may11 bsdmagArticle may11 bsdmag
Article may11 bsdmag
 

Similar a Tlf2013

WBH 4.0 Mod 6 - Server Purposing.ppt
WBH 4.0 Mod 6 - Server Purposing.pptWBH 4.0 Mod 6 - Server Purposing.ppt
WBH 4.0 Mod 6 - Server Purposing.pptwebhostingguy
 
Know thyubuntu
Know thyubuntuKnow thyubuntu
Know thyubuntuchkmao
 
Lavigne bsdmag june11
Lavigne bsdmag june11Lavigne bsdmag june11
Lavigne bsdmag june11Dru Lavigne
 
Using openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesUsing openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesKris Buytaert
 
Building Toward an Open and Extensible Autonomous Computing Platform Utilizi...
Building Toward an Open and Extensible  Autonomous Computing Platform Utilizi...Building Toward an Open and Extensible  Autonomous Computing Platform Utilizi...
Building Toward an Open and Extensible Autonomous Computing Platform Utilizi...Phil Cryer
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...NETWAYS
 
Oracle Solaris 11_Overview and Design Guide.pptx
Oracle Solaris 11_Overview and Design Guide.pptxOracle Solaris 11_Overview and Design Guide.pptx
Oracle Solaris 11_Overview and Design Guide.pptxSaeidVarmazyar
 
Cisco ios (1)
Cisco ios (1)Cisco ios (1)
Cisco ios (1)kashi4583
 
Operating system Definition Structures
Operating  system Definition  StructuresOperating  system Definition  Structures
Operating system Definition Structuresanair23
 
DevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentDevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentGerald Villorente
 

Similar a Tlf2013 (20)

Ilf2011
Ilf2011Ilf2011
Ilf2011
 
Self2013
Self2013Self2013
Self2013
 
Tlf2012
Tlf2012Tlf2012
Tlf2012
 
Slim Server Theory
Slim Server TheorySlim Server Theory
Slim Server Theory
 
Ilf2013
Ilf2013Ilf2013
Ilf2013
 
Introduction to OpenSolaris 2008.11
Introduction to OpenSolaris 2008.11Introduction to OpenSolaris 2008.11
Introduction to OpenSolaris 2008.11
 
OpenQrm
OpenQrmOpenQrm
OpenQrm
 
WBH 4.0 Mod 6 - Server Purposing.ppt
WBH 4.0 Mod 6 - Server Purposing.pptWBH 4.0 Mod 6 - Server Purposing.ppt
WBH 4.0 Mod 6 - Server Purposing.ppt
 
Know thyubuntu
Know thyubuntuKnow thyubuntu
Know thyubuntu
 
Lavigne bsdmag june11
Lavigne bsdmag june11Lavigne bsdmag june11
Lavigne bsdmag june11
 
Using openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesUsing openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual Machines
 
Building Toward an Open and Extensible Autonomous Computing Platform Utilizi...
Building Toward an Open and Extensible  Autonomous Computing Platform Utilizi...Building Toward an Open and Extensible  Autonomous Computing Platform Utilizi...
Building Toward an Open and Extensible Autonomous Computing Platform Utilizi...
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
 
Oracle Solaris 11_Overview and Design Guide.pptx
Oracle Solaris 11_Overview and Design Guide.pptxOracle Solaris 11_Overview and Design Guide.pptx
Oracle Solaris 11_Overview and Design Guide.pptx
 
.ppt
.ppt.ppt
.ppt
 
Cisco ios (1)
Cisco ios (1)Cisco ios (1)
Cisco ios (1)
 
ZCM 3rd Party Imaging
ZCM 3rd Party ImagingZCM 3rd Party Imaging
ZCM 3rd Party Imaging
 
Operating system Definition Structures
Operating  system Definition  StructuresOperating  system Definition  Structures
Operating system Definition Structures
 
DevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal DeploymentDevOps: Cooking Drupal Deployment
DevOps: Cooking Drupal Deployment
 
Scale2015
Scale2015Scale2015
Scale2015
 

Más de Dru Lavigne (20)

Olf2018
Olf2018Olf2018
Olf2018
 
Olf2017
Olf2017Olf2017
Olf2017
 
FreeBSD System Administration Using SysAdm
FreeBSD System Administration Using SysAdmFreeBSD System Administration Using SysAdm
FreeBSD System Administration Using SysAdm
 
Asiabsdcon2017
Asiabsdcon2017Asiabsdcon2017
Asiabsdcon2017
 
Olf2016
Olf2016Olf2016
Olf2016
 
Tlf2016
Tlf2016Tlf2016
Tlf2016
 
Knoxbug2016
Knoxbug2016Knoxbug2016
Knoxbug2016
 
Lfnw2016
Lfnw2016Lfnw2016
Lfnw2016
 
Flourish16
Flourish16Flourish16
Flourish16
 
Scale2016
Scale2016Scale2016
Scale2016
 
Fossetcon15
Fossetcon15Fossetcon15
Fossetcon15
 
Lfnw15
Lfnw15Lfnw15
Lfnw15
 
Olf2014
Olf2014Olf2014
Olf2014
 
Ghc14
Ghc14Ghc14
Ghc14
 
Fossetcon14
Fossetcon14Fossetcon14
Fossetcon14
 
Tlf2014
Tlf2014Tlf2014
Tlf2014
 
Asiabsdcon14 lavigne
Asiabsdcon14 lavigneAsiabsdcon14 lavigne
Asiabsdcon14 lavigne
 
Asiabsdcon14
Asiabsdcon14Asiabsdcon14
Asiabsdcon14
 
Scale2014
Scale2014Scale2014
Scale2014
 
Dru lavigne oss-sysadmin
Dru lavigne oss-sysadminDru lavigne oss-sysadmin
Dru lavigne oss-sysadmin
 

Último

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Último (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

Tlf2013

  • 1. TrueOS and Warden: Easy to Deploy FreeBSD Servers Dru Lavigne Director of Community Development, iXsystems TxLF, June 1, 2013
  • 3. Introduction PC-BSD Project started as a graphical installer and graphical utilities to make it easy to install and use a FreeBSD desktop Project did not simply port existing Linux utils due to differences between Linux and BSD and to provide one consistent look Each graphical utility is a QT based front-end based on a Bourne (sh) back-end, meaning that the same functionality can be achieved on a minimalist desktop or even a command-line only system
  • 4. Introduction These utilities proved to also be useful for server installation and administration This presentation introduces the following utilities which ease the deployment of servers: TrueOS: a FreeBSD command line server plus the CLI versions of PC-BSD utils and some extra tools designed to ease the learning curve for Linux sysadmins (e.g. bash, sudo, nano, rsync, screen, smartmontools)
  • 5. Introduction pc-sysinstall: fully scriptable, CLI version of the installer, specifically designed for customized installations and automated deployments thin client: script to easily create an installation server for automated installs over PXE Warden: utility for deploying and managing FreeBSD and Linux jails (light-weight, virtualized operating systems)
  • 6. TrueOS Features Easy to install, CLI-only FreeBSD server using graphical installer or an automated script Supports ZFS configuration during install: mirror, RAIDZ, RAIDZ2, RAIDZ3, datasets, and properties (e.g. compression, atime, exec, canmount) Installation sets the login user account, optionally enables SSH, and sets root password (SSH root logins are denied by default)
  • 7. ZFS in GUI Installer
  • 8. ZFS in GUI Installer
  • 9. TrueOS Features If install with ZFS, beadm(1) can be used to take a snapshot of the boot environment before performing an upgrade If the upgrade fails, simply activate that snapshot to boot into the previous boot environment
  • 10. Upcoming Features 9.2 will include utilities to schedule automatic ZFS scrubs, create and manage ZFS snapshots, and create beadm snapshots--these can be performed now using zfs(8) and beadm(1) Once the necessary boot changes have been made to FreeBSD, a utility will be created to make it easy to select from beadm snapshots at system boot
  • 11. Automated Deployment The backend to the graphical installer is a script named pc-sysinstall. Its syntax is similar to sysinstall(8), making it easy to convert existing custom deployments Adds directives to layout disks with ZFS Examples can be found in /usr/share/examples/pc-sysinstall/ The graphical installer saves its config to /root/pc-sysinstall.cfg, making it easy to customize a complex installation
  • 13. Automated Deployment To automatically rollout a custom configuration over PXE, use the thinclient script to create an installation server This script installs and configures a DHCP server, TFTP server, and NFS server A sample installation script can be found in /usr/home/thinclient/installscripts/pc- sysinstall.example Install clients automatically boot into a menu:
  • 15. Warden Features Since 2000, FreeBSD has provided light-weight OS virtualization using jail(8) Ideally suited for deploying servers who host network services as services are isolated from both the host system and any other jails Warden makes it easy to deploy and manage jails, start/stop services within jails, and install/upgrade software within jails
  • 16. Warden Features Warden supports 3 types of jails: 1.1. Ports Jail: used to safely install and use ports/packages (software) without affecting underlying OS and its software 2. 3.2. Traditional Jail: used to securely deploy network services 4. 5.3. Linux Jail: used to securely deploy Linux servers (currently Gentoo and Debian Squeeze)
  • 18. Warden Features If the host's filesystem is ZFS, Warden can be used to schedule and manage ZFS snapshots, even for Linux jails Snapshots can be deployed to another system Jails can be exported (all of its software, configuration, and files) and imported to another jail or system
  • 20. CLI Version of Warden
  • 21. Upcoming Warden Features Ability to create named jails (not just IP) IP addresses and aliases can be changed on the fly Templates allow you to select any version of FreeBSD (from 4.1 to HEAD) to deploy Vnet support provides each jail its own networking stack, loopback address, IPsec, etc.
  • 22. Additional Resources Documentation: http://wiki.pcbsd.org IRC: #pcbsd on Freenode Automating the deployment of FreeBSD & PC-BSD systems: http://www.bsdcan.org/2013/schedule/attachment s/248_bsdcan2013.pdf
  • 23. Additional Resources The Warden - FreeBSD and Linux Jail Management: http://www.youtube.com/watch?v=2WEX_W7nH3Y Improvements to Jail Management via the Warden: http://bsdmag.org/magazine/1838-jails-firewall- with-pf (page 16-17)