Automating the deployment of FreeBSD & PC-BSD systems. BSDCan 2013. Kris Moore PC-BSD / ixsystems kris@pcbsd.org



Similar documents
Deploying BitDefender Client Security and BitDefender Windows Server Solutions

1. Installation Overview

Maintaining the Content Server

Installation Overview

PARALLELS SERVER 4 BARE METAL README

How to Use? SKALICLOUD DEMO

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

EZblue BusinessServer The All - In - One Server For Your Home And Business

TimeIPS Server. IPS256T Virtual Machine. Installation Guide

NetBoot Fundamentals and Customizations

EZblue BusinessServer The All - In - One Server For Your Home And Business

Amahi Instruction Manual

The safer, easier way to help you pass any IT exams. Exam : Installing and Configuring Windows Server 2012 R2.

Paul McFedries. Home Server 2011 LEASHE. Third Edition. 800 East 96th Street, Indianapolis, Indiana USA

NOC PS manual. Copyright Maxnet All rights reserved. Page 1/45 NOC-PS Manuel EN version 1.3

Parallels Cloud Server 6.0

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

PCI Express SATA / esata 6Gb/s RAID Card User Manual

Enterprise Erase LAN

ITA Mail Archive Setup Guide

Windows Server 2008 R2 Essentials

Cloning Utility for Rockwell Automation Industrial Computers

SysPatrol - Server Security Monitor

DeployStudio Server Quick Install

FileCruiser. VA2600 SR1 Quick Configuration Guide

Course Outline: 6433 _ Planning and Implementing Windows Server 2008 Clustering

CommandCenter Secure Gateway

ManageEngine EventLog Analyzer. Best Practices Document

SSL VPN. Virtual Appliance Installation Guide. Virtual Private Networks

Dell Flexible Computing Solutions: Deploying On-Demand Desktop Streaming

ADFS 2.0 Application Director Blueprint Deployment Guide

Virtuozzo 7 Technical Preview - Virtual Machines Getting Started Guide

II. Installing Debian Linux:

Pearl Echo Installation Checklist

Allworx Installation Course

PARALLELS SERVER BARE METAL 5.0 README

Remote Backup Software

Bitrix Site Manager. VMBitrix Virtual Machine. Quick Start And Usage Guide

ManageEngine EventLog Analyzer. Best Practices Document

Active Directory Integration for Greentree

LANDesk White Paper. LANDesk Management Suite for Lenovo Secure Managed Client

IN STA LLIN G A VA LA N C HE REMOTE C O N TROL 4. 1

Windows Server 2008 Essentials. Installation, Deployment and Management

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

Professional Xen Visualization

Using Red Hat Enterprise Linux with Georgia Tech's RHN Satellite Server Installing Red Hat Enterprise Linux

RSA Security Analytics Virtual Appliance Setup Guide

Upgrading Cisco UCS Central

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

3.5 EXTERNAL NETWORK HDD. User s Manual

ServerPronto Cloud User Guide

Polar Help Desk Installation Guide

EaseUS Todo Backup user guide. EaseUS Todo Backup. Central Management Console. User guide - 1 -

Equalizer VLB Beta I. Copyright 2008 Equalizer VLB Beta I 1 Coyote Point Systems Inc.

Installing Ubuntu LTS with full disk encryption

Configuration Manager Error Messages

BF2CC Daemon Linux Installation Guide

Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive

Oracle VM Server Recovery Guide. Version 8.2

MCTS Guide to Microsoft Windows 7. Chapter 13 Enterprise Computing

Remote Unix Lab Environment (RULE)

dbx SN Azure Setup Guide

EXPRESSCLUSTER X for Windows Quick Start Guide for Microsoft SQL Server Version 1

FOG Guide. IPBRICK International. July 17, 2013

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

Network Setup Guide. 1 Glossary. 2 Operation. 1.1 Static IP. 1.2 Point-to-Point Protocol over Ethernet (PPPoE)

How to Install Microsoft Windows Server 2008 R2 in VMware ESXi

Options in Open Source Virtualization and Cloud Computing. Andrew Hadinyoto Republic Polytechnic

CANON FAX L360 SOFTWARE MANUAL

Copyright by Parallels Holdings, Ltd. All rights reserved.

Transferring AIS to a different computer

Delivering SDS simplicity and extreme performance

Marvell SATA3 RAID Installation Guide

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

4cast Client Specification and Installation

Access Instructions for United Stationers ECDB (ecommerce Database) 2.0

Week Overview. Installing Linux Linux on your Desktop Virtualization Basic Linux system administration

Parallels Cloud Server 6.0

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

NSave Table of Contents

Getting Started in Red Hat Linux An Overview of Red Hat Linux p. 3 Introducing Red Hat Linux p. 4 What Is Linux? p. 5 Linux's Roots in UNIX p.

Getting Started with Database Provisioning

How To Install Acronis Backup And Recovery 10 On A Computer Or Network With A Hard Drive (For A Non-Profit)

Program: Systems Engineering Certificate. Prerequisite: None. Hardware/Software required:

4cast Server Specification and Installation

StarWind Virtual SAN Installation and Configuration of Hyper-Converged 2 Nodes with Hyper-V Cluster

Installation and Deployment

Virtual Appliance for VMware Server. Getting Started Guide. Revision Warning and Disclaimer

4PSA Total Backup User's Guide. for Plesk and newer versions

Using the IPMI interface

HP Compaq Thin Client Imaging Tool HP Compaq Thin Client t5000 Series

Quick Deployment Step-by-step instructions to deploy Oracle Big Data Lite Virtual Machine

Table of Contents. Safety Warnings..3. Introduction.. 4. Host-side Remote Desktop Connection.. 5. Setting Date and Time... 7

What Is Ad-Aware Update Server?

WinClon CC. Network-based System Deployment and Management Tool. A Windows Embedded Partner

Preface Introduction... 1 High Availability... 2 Users... 4 Other Resources... 5 Conventions... 5

AFACT Cloud Computing Working Group. Chia Hung Kao Institute for Information Industry

Tips for getting started! with! Virtual Data Center!

Transcription:

Automating the deployment of FreeBSD & PC-BSD systems BSDCan 2013 Kris Moore PC-BSD / ixsystems kris@pcbsd.org

The problem: You want to (quickly) deploy multiple FreeBSD or PC-BSD systems. You like what you hear about this whole ZFS thing

There are currently two ways to accomplish this:

Solution #1 Write your own installation scripts Configure network booting by hand Maintain as necessary

When to consider Solution #1: You have a very unique installation You are a FreeBSD God Congrats!

When to not consider Solution #1: Manual disk partitioning isn't your thing You work for a living

Solution #2 Use the pc-thinclient utility included with PC-BSD & TrueOS

When to consider Solution #2: You don't enjoy disk partitioning You want to have a weekend

What you will need: A system with a network interface (2)? Running PC-BSD 9.1 / TrueOS 9.1 A few GB of disk space

Getting Started First, checkout a FreeBSD ports tree On TrueOS # portsnap fetch extract update

On PC-BSD Control panel System Manager Tasks Fetch Ports

Getting Started

Getting Started

Getting Started Install server Or desktop Thin-Client server

Short Detour

What is Remote Desktop? The thin-client utility can operate both install server or desktop server Allows diskless clients to boot via PXE Brings up GDM login on client

Why would you run Remote Desktop? You have a bunch of low-end clients You want to simplify backup, security and management

Why should you not run Remote Desktop? You don't have a server with horsepower You need sound support on the clients

Back to your previously scheduled presentation

Getting Started Will run DHCPD Be careful which cable is used

Getting Started

Getting started You may now connect a client system To PXE boot, you may need to check BIOS on client first

Its Demo time!

Customizing the install Of course you will want your own installation options / archives, etc It is possible to adjust entirely on server side

The two key directories: /home/thinclient/installscripts /home/thinclient/installarchive /installscripts /installarchive Client mounted as:

pc-sysinstall.example can be used as a template for other installations Example #1 Changing to ZFS

Example disk layout: disk0-part=ufs+suj 1000 / disk0-part=swap 2000 none disk0-part=ufs+suj 0 /usr commitdisklabel Converted to ZFS becomes: disk0-part=zfs 0 /,/root,/tmp,/usr,/var commitdisklabel

Example #2 Changing installation archive

Example install archive: installmedium=local localpath=/installarchive packagetype=tar installfile=fbsd-release.txz Changed to custom archive: installmedium=local localpath=/installarchive packagetype=tar installfile=fbsd-8.4-amd64.txz

Example #3 User Management

# Root Password rootpass=root # User Setup username=kris usercomment=kris Moore userpass=kris usershell=/bin/csh userhome=/home/kris usergroups=wheel,operator commituser

Example #4 Advanced Commands

# Run command inside installed system runcommand=sh /root/initme.sh # Run command outside installed system runextcommand=mount -t devfs devfs ${FSMNT}/dev

Example #5 Packages, oh my!

installpackages=apache22 mysql55-server Can use short package names, or full versions.

PKGNG support Checks package format before install Will boot-strap PKGNG if necessary

Example #6 FreeBSD dist files

# Install from vanilla FreeBSD dist files installmedium=local localpath=/distfiles/9.1-release/amd64/dist packagetype=dist distfiles=base doc games kernel lib32

Putting the Automated in Fully Automated File: /home/thinclient/installscripts/unattended.cfg If config exists, the client will boot and begin installation after 30 seconds. System will shutdown when finished USE WITH CAUTION!!

Scalability All CPU instructions are run on the client Server is in essence a large File Server Will be mostly disk IO / network speed dependent

Scalability Default DHCP server is configured for 99 clients To adjust edit the file: /usr/local/etc/dhcpd.conf range 192.168.2.100 192.168.2.199;

Tips and Tricks The PC-BSD GUI installer is your friend Every install is a scripted install After installation a copy of the pc- sysinstall.cfg file is saved to: /root/pc-sysinstallcfg

Tips and Tricks To greatly speed up installations, use ZFS mirrored drives, SSD, or even TMPFS

What's next? Improvements to pc-sysinstall Faster setup of initial thin-client environment

Questions? Comments? wiki.pcbsd.org lists.pcbsd.org forums.pcbsd.org

Thank you! www.slideshare.net/krispcbsd/bsdcan2013