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
 
Android memory analysis Debug slides.pdf
Android memory analysis Debug slides.pdfAndroid memory analysis Debug slides.pdf
Android memory analysis Debug slides.pdfVishalKumarJha10
 
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...
 
Android memory analysis Debug slides.pdf
Android memory analysis Debug slides.pdfAndroid memory analysis Debug slides.pdf
Android memory analysis Debug slides.pdf
 
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
 

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
 
Scale2015
Scale2015Scale2015
Scale2015
 
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
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxFIDO Alliance
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringWSO2
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewDianaGray10
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxFIDO Alliance
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Paige Cruz
 

Último (20)

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 

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)