ATT8231: Creating a Customized USB Thumb Drive for ZCM Imaging Methods for creating a customized bootable USB Thumb Drive



Similar documents
NI Real-Time Hypervisor for Windows

Operating System Installation Guidelines

Dual-boot Windows 10 alongside Windows 8

Make a Bootable USB Flash Drive from the Restored Edition of Hiren s Boot CD

DriveClone Server. Users Manual

Tutorial How to upgrade firmware on Phison S8 controller MyDigitalSSD using a Windows PE environment

Intel Data Migration Software

II. Installing Debian Linux:

Novell Identity Manager Resource Kit

DriveClone 10. Users Manual

Bare Metal Recovery Quick Start Guide

Installing the Operating System or Hypervisor

Moxa Device Manager 2.3 User s Manual

UltraBac Documentation. UBDR Gold. Administrator Guide UBDR Gold v8.0

for the VaultDR Online Plugin for Linux-based Operating Systems

Updates Click to check for a newer version of the CD Press next and confirm the disc burner selection before pressing finish.

Katana: Portable Multi-Boot Security Suite. JP Dunning DefCon Shadow Cave LLC

Intel NUC. Installing Microsoft Windows* 7 from USB Flash Drives onto USB 3.0 Computers

NetVault : Backup. User s Guide for the VaultDR System Plugins

Quick Start Guide. Version R91. English

Moxa Device Manager 2.0 User s Guide

What this document covers: Physical to Virtual Migration with Portlock Storage Manager

Plexxi Control Installation Guide Release 2.1.0

Acronis Disk Director 11 Advanced Server. Quick Start Guide

Windows 8 UEFI BIOS Update (Step-by-Step Guide)

ZENworks 11 Support Pack 4 Full Disk Encryption Agent Reference. May 2016

M a r k B o o k C Y, M a r k B o o k A M, v e r s i o n, e d i t i o n. MarkBook for Windows on a Mac 1

IBM Rapid Restore PC powered by Xpoint - v2.02 (build 6015a)

Marvell SATA3 RAID Installation Guide

LSN 10 Linux Overview

vsphere Web Access Administrator's Guide

AlienVault. Unified Security Management x Offline Update and Software Restoration Procedures

How to Install Microsoft Windows Server 2008 R2 in VMware ESXi

USB Bare Metal Restore: Getting Started

Full Disk Encryption Agent Reference

Introduction. This white paper provides technical information on how to approach these steps with Symantec Antivirus Corporate edition.

EXPLORING LINUX KERNEL: THE EASY WAY!

The BackTrack Successor

RESCUE CD. User s Guide

Installing a Second Operating System

Getting Started with ESXi Embedded

Cloning Utility for Rockwell Automation Industrial Computers

Required Virtual Interface Maps to... mgmt0. bridge network interface = mgmt0 wan0. bridge network interface = wan0 mgmt1

PGP Portable Quick Start Guide Version 10.2

Acronis Backup & Recovery 11

Ocster Backup - Rescue System

Intel Rapid Start Technology (FFS) Guide

Installing Windows 98 in Windows Virtual PC 7 (Windows Virtual PC)

Puppy Linux Installation To a USB Flash Drive How to install Puppy Linux lupu Lucid to a Flash Drive

How To Manage Your Volume On Linux (Evms) On A Windows Box (Amd64) On A Raspberry Powerbook (Amd32) On An Ubuntu Box (Aes) On Linux

EHCI Removal from 6 th Generation Intel Core Processor Family Platform Controller Hub (PCH)

Create a virtual machine at your assigned virtual server. Use the following specs

Intel Data Migration Software

Windows 7 and USB 3.0 driver installation for 100 Series and Braswell platform

ThinkServer RD540 and RD640 Operating System Installation Guide

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

IBM Security QRadar Version Installing QRadar with a Bootable USB Flash-drive Technical Note

SSD Guru. Installation and User Guide. Software Version 1.4

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Parallels Cloud Server 6.0

Installing Operating Systems

Dell NetVault Bare Metal Recovery User s Guide

Getting Started User s Guide

Acronis Disk Director Server User s guide

Administering Windows-based HP Thin Clients with System Center 2012 R2 Configuration Manager SP1

Acronis Backup & Recovery 11.5

installing UEFi-based Microsoft Windows Vista SP1 (x64) on HP EliteBook and Compaq Notebook PCs

Using the IPMI interface

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

Getting Started with Paragon Recovery CD. Quick Guide

A+ Guide to Software: Managing, Maintaining, and Troubleshooting, 5e. Chapter 3 Installing Windows

Dell DR4000 Disk Backup System. Introduction to the Dell DR4000 Restore Manager A primer for creating and using a Restore Manager USB flash drive

LOCKSS on LINUX. Installation Manual and the OpenBSD Transition 02/17/2011

Managing Remote Access

integration tools setup guide SIM 3 Remote Guide to controlling a SIM 3 Audio Analyzer remotely over a network connection from a laptop

Advanced SUSE Linux Enterprise Server Administration (Course 3038) Chapter 5 Manage Backup and Recovery

WinClon 6 User Guide. With Screenshots. A Windows Embedded Partner

NetWare 4.11 Virtualization

LSI Software RAID Configuration Utility

CA arcserve Unified Data Protection Agent for Linux

XenClient Enterprise Upgrade Guide

Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the

Fiery Clone Tool For Embedded Servers User Guide

Series 4 and Series 5 Hardware Appliance Imaging Guide

Tutorial How to upgrade firmware on Phison S5 controller MyDigitalSSD

Acronis Backup & Recovery 10 Server for Linux. Command Line Reference

PARALLELS SERVER 4 BARE METAL README

The Tor VM Project. Installing the Build Environment & Building Tor VM. Copyright The Tor Project, Inc. Authors: Martin Peck and Kyle Williams

Acer erecovery Management

Backtrack 4 Bootable USB Thumb Drive with Full Disk Encryption

StarWind iscsi SAN Software: Using with Citrix XenServer

User Guide. Laplink Software, Inc. Laplink DiskImage 7 Professional. User Guide. UG-DiskImagePro-EN-7 (REV. 5/2013)

Acronis Backup & Recovery 10 Server for Windows. Installation Guide

INSTALLING "PUPPY LINUX" AS THE ONLY OPERATING SYSTEM

BLACK BOX. Quick Start Guide. Virtual Central Management System (VCMS) Works with LES Series Console Servers. LES-VCMS. Customer Support Information

Navigating the Rescue Mode for Linux

How To Use Portlock Storage Manager Client On A Netware System (Netware) With A Virtual Disk (Veeam) On A Windows (Vheeam) Or Veeam Veea (Vfree

Acronis Backup & Recovery 10 Server for Linux. Update 5. Installation Guide

ZENworks Virtual Appliance Deployment and Administration Reference

Transcription:

ATT8231: Creating a Customized USB Thumb Drive for ZCM Imaging Methods for creating a customized bootable USB Thumb Drive Rich Hanley Senior ATT Engineer rhanley@novell.com

Objectives Understanding ZCM 11 SP3 USB Imaging Support Using the ZENUsbcreator Utility Creating a Custom USB Thumb Drive for ZCM Imaging 2

Understanding ZCM 11 SP3 USB Imaging Support

Understanding ZCM 11 SP3 USB Imaging Support Previous versions of ZCM never officially supported booting the ZCM Imaging Distro from USB Thumb Drive Could be done but involved using Open Source unsupported code, such as: Unetbootin, the Syslinux Project s ISOLINUX ZCM 11 SP3 offers a supported way to generate a bootable USB Thumb Drive for the ZCM Imaging Distro Any thumb drive supported by the SLES 11 SP3 kernel is supported Requires that you only use a Novell supported utility to generate the bootable USB Thumb Drive 4

Understanding ZCM 11 SP3 USB Imaging Support (continued) Process to build a default version of the ZCM Imaging Distro on a USB Thumb Drive is very straightforward! Burn either the bootcd.iso or bootcd_tntfs.iso to a CD / DVD Boot up a machine using that CD / DVD Select Manual Mode to get to the bash prompt Insert your USB Thumb Drive into the machine Run ZENUsbcreator Case is significant for the command name! And that s all it takes! 5

Understanding ZCM 11 SP3 USB Imaging Support (continued) ZENUsbcreator must be run from the CD-based ZCM Imaging Distro Burn bootcd.iso or bootcd_tntfs.iso to a CD / DVD ISOs can be found - On Linux Primary: /opt/novell/zenworks/preboot/bin/winutils On Windows Primary: c:\program Files (x86)\novell\zenworks\bin\preboot Remember that: bootcd.iso contains only the Legacy NTFS File System Driver You must use the bootcd_tntfs.iso if you want to use the Tuxera NTFS High Performance File System Driver on your USB Thumb Drive Injecting the Tuxera Driver into the ZCM Imaging Distro using the ZCC creates bootcd_tntfs.iso 6

Using the ZENUsbcreator Utility

Using the ZENUsbcreator Utility Running ZENUsbcreator Understanding ZENUsbcreator Processing 8

Using the ZENUsbcreator Utility Running ZENUsbcreator Purpose: Create a USB Thumb Drive that can boot the ZCM Imaging Distro on a BIOS or UEFI-based machines Remove all the existing partitions on a thumb drive Upgrade a bootable USB drive Can only be launched from CD / DVD ZENUsbcreator throws an error if its not launched while booted up from the CD / DVD Located in the /bin directory on the CD / DVD ZENUsbcreator is a wrapper program that calls a bash script named ZEN-usb-creator 9

Using the ZENUsbcreator Utility Running ZENUsbcreator Syntax: ZENUsbcreator [--help] 10

Using the ZENUsbcreator Utility Running ZENUsbcreator After choosing one of the previous four options, the available thumb drives to act upon are shown next: 11

Using the ZENUsbcreator Utility Understanding ZENUsbcreator Processing After selecting the thumb drive, you re given a final sanity check : 12

Using the ZENUsbcreator Utility Understanding ZENUsbcreator Processing ZENUsbcreator will create a second partition on the USB Thumb Drive Its an NTFS partition Could be used to store zmg image files on the thumb drive 13

Using the ZENUsbcreator Utility Understanding ZENUsbcreator Processing This is what happens behind the scenes: Initialize the MBR Launch ZENUsbcreator Call the ZEN-usb-creator script Formatting for BIOS or UEFI? BIOS Create a 160MB ext2 Partition 1 NO Booted from CD? Throw An Error YES Get input from user on Operation to perform Detect and Display USB Linux Device Names Get input from user on Linux Device to use UEFI 4 Initialize the GPT Create a 160MB FAT32 Partition Create a NTFS partition on remainder of drive Copy required files to the EFI FAT32 boot partition Create a NTFS partition on remainder of drive Copy required files to ext2 boot partition Create the grub config file 3 2 EXIT ZEN-usb-creator NO Sanity Check: Format Drive? YES Create the grub config file Install grub boot loader Display Success Message 14

Using the ZENUsbcreator Utility Understanding ZENUsbcreator Processing This is what happens behind the scenes: 1 If the variable CDBOOT equals YEScd then the machine is booted up using the ZCM CD-based Imaging Distro 2 Copies contents of boot, addfiles, & dev directories from the CD to USB drive at root. The settings.txt file from CD is copied to USB drive. 3 Creates the menu.lst file under the boot/grub directory. This file does such things as specifying the Initial RAM Drive, root file system, and kernel name. 4 UEFI requires FAT32 support for the EFI System Partition 15

Creating a Custom USB Thumb Drive for ZCM Imaging

Creating a Custom USB Thumb Drive for ZCM Imaging Overview of the process Customizing using the Addfiles Method Customizing by Modifying the CD s System Resource Files (initrd and root) 17

Creating a Custom Thumb Drive for ZCM Imaging Overview Since ZENUsbcreator must be launched when booted from the CD-based version of the ZCM Imaging Distro: Changes made to bootcd.iso or bootcd_tntfs.iso get imparted to USB Thumb Drive when ZENUsbcreator is run from that iso Important: So don t mess with ZENUsbcreator or ZEN-usb-creator (the script) on the modified iso! Methods you can employ to modify the CD-based ZCM Imaging Distro apply equally to USB-based distro Using the Addfiles Method is the easiest Can also modify the CD s System Resource Files (initrd & root) However there is no code in ZENUsbcreator for dealing with a driverupdate file system driverupdate is a CRAMFS file system with a particular directory structure driverupdate can be used to get modifications into the CD-based distro 18

Creating a Custom Thumb Drive for ZCM Imaging Overview of CD boot process you ll modify for USB Thumb Drive creation Control to: zenworks.s script ABCD EFGH ASDF IJKLM A What can be modified on CD for USB Thumb Drive 19

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Addfiles Easiest method to modify bootcd.iso / bootcd_tntfs.iso: Uses the original contents of ISO then your custom content is placed into a special directory. Then you create a new iso. Special directory is named: addfiles Is an empty directory on the original iso files During CD boot process: content of addfiles is added to the RAM drive 20

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Addfiles The addfiles method is the preferred method Great for getting the following in the Imaging Distro: Bash scripts Binary executables Implementing some types of changes to the settings.txt file Not the method to use to add new content into the Imaging distro that must be available during the boot process when the kernel or the init process is in control Example: new device drivers 21

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Addfiles (continued) See Section F.4.1 of the doc available on our web site at: https://www.novell.com/documentation/zenworks113/zen11_cm_preboot_imaging/data/bookinfo.html 1. Mount the desired boot CD iso to a /mnt/bootcd directory 2. Created a working directory under root s home called isolinux 3.Copied all of what s in /mnt/bootcd to the isolinux directory 4. Modified the settings.txt file in the isolinux directory to set: the IP Address for the PROXYADDR variable The value of the IMGCMD variable to the name of a custom script that you copied to the isolinux/addfiles/bin directory If required change netsetup, HostIP, netmask, and gateway for static IP addressing 22

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Addfiles (continued) From Section F.4.1 of the zen11_cm_preboot_imaging.pdf: 5.Use chmod command to make sure settings.txt and your custom scripts are executable 6. Use the mkisofs command to create a new iso file from the source tree in the isolinux directory 23

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Modify System Resource Files This method is the most time consuming Needs to be used when the content you want to add must be available: Right after the kernel mounts the initial RAM drive (initrd) When init is processing When the zenworks.s script itself has control Example use cases Typically used to add custom menu programs Add LAN drivers Requires modifying the initrd file system Customize zenworks.s or the scripts it calls Requires modifying the root file system 24

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Modify System Resource Files From Section F.4.2 of zen11_cm_preboot_imaging.pdf: Modifying the initrd file system: 1. Create a mount and a couple working directories (/work-iso and /work-initrd and /mod-initrd for instance) 2. Mount bootcd or bootcd_tntfs iso to the /work-iso mount point 3. Copy /work-iso/boot/i386/loader/initrd to the /work-initrd directory 4. Rename initrd in /work-initrd to initrd.gz 5. gunzip initrd.gz 6. Change directory to /mod-initrd 7. cpio idmuv < /work-initrd/initrd (/mod-initrd now contains the content of the original initrd file system.) 25

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Modify System Resource Files Modifying the initrd file system (continued): 8. Copy the content you want in the new initrd to the appropriate directories under the /mod-initrd directory (such as bin, usr, or var) 9. rm /work-initrd/initrd (Deletes the original initrd) 10. find. cpio o H newc > /work-initrd/initrd (This pipeline creates the new initrd with your content and puts it in the /work-initrd directory.) 11. Change into the /work-initrd directory 12. gzip v9c initrd > initrd.gz (Creates a new archive of the initrd containing your changes.) 13. Rename initrd.gz to initrd. 26

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Modify System Resource Files Modifying the initrd file system (continued): 14. Copy initrd from the /work-initrd directory into the /workiso/boot/i386/loader directory 15. Use mkisofs to create a new iso file containing your modified initrd file system using the /work-iso directory as the source tree. 27

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Modify System Resource Files Modifying the root file system: 1. Create a mount point (/work-iso) and a working directory under root s home directory (/root/modroot for instance) 2. Mount bootcd or bootcd_tntfs iso to the /work-iso mount point 3. Copy /work-iso/boot/i386/root to root s home directory 4. Change directory to root s home directory (/root) 5. Rename root in root s home directory (/root) to root.gz 6. gunzip root.gz 7. mount o loop root mod-root (Now the modroot in root s home directory has the original contents of root in extracted form.) 28

Creating a Custom Thumb Drive for ZCM Imaging Customization Method: Modify System Resource Files Modifying the root file system (continued): 8. Copy your content to the appropriate directories under the modroot directory 9. umount modroot 10. gzip v9c root > root.gz 11. Rename root.gz to root 12. Copy root in root s home directory to the /workiso/boot/i386/ directory 13. Use the mkisofs command using the /work-iso directory as the source tree to create a new boot CD iso whose root file system contains your changes. 29

Exercises Let s Play!

Important VMware Controls Give focus to a VM by clicking in it When a VMware virtual machine has focus it owns the real keyboard and mouse of the Host machine All keystrokes and cursor movements affect the virtual machine Release focus from a VM by pressing Ctrl+Alt This allows you to switch focus to another VM or launch a program from the Host desktop Use the VMware Toolbar to navigate between VM s or use a particular VM Quick Switch button makes it easy to move from VM to VM Full Screen button resizes VM to full screen Ctrl+Alt exits full screen mode 31

Exercise 1 Task Overview Task To familiarize yourself with the ZENUsbcreator utility. Boot W7-64-WS2 VM up using bootcd_tntfs.iso Boot W7-64-WS2 VM using the Plop Boot Manager Notes Will create a bootable USB Thumb Drive that can boot up the ZCM Imaging Distro: Will use the default bootcd_tntfs.iso file Will use ZENUsbcreator to create a bootable USB Thumb Drive for the ZCM Imaging Distro on the provided USB Thumb Drive. This boot manager (plpbt.iso) will be attached to the VM s Virtual CD and will then allow the VM to be booted from your thumb drive 32

Exercise 2 Task Overview Task Notes Create a modified version of a ZCM Imaging USB Thumb Drive Create new ISO file (usblab2.iso) Boot WS-64-WS2 VM using new usb-lab2.iso file Boot WS-64-WS2 VM using the Plop Boot Manager Will modify bootcd_tntfs.iso file to create a new iso (usb-lab2.iso) used to run ZENUsbcreator. usb-lab2.iso will contain: The zusbc.s script. This script can perform several different types of imaging operations including restoring the DA NSI Standard Base Image from the USB drive The parted, nano, hexedit, and unix2dos utilities that are not native to the ZCM Imaging Distro Will modify the settings.txt file to automatically launch zusbc.s. After booting your modified CD-based version of the ZCM Imaging Distro you ll run ZENUsbcreator to create a bootable thumb drive containing those modifications. Testing new USB Thumb Drive modifications. Plop will allow you to boot up your VM using the thumb drive. Should see the menu displayed by zusbc.s 33

Corporate Headquarters 1800 South, Novell Place Provo, Utah 84606 801.861.7000 (Worldwide) 800.453.1267 (Toll-free) Join us on: www.novell.com 34

This document could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein. These changes may be incorporated in new editions of this document. Novell, Inc. may make improvements in or changes to the software described in this document at any time. Copyright 2014 Novell, Inc. All rights reserved. All Novell marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States. All third-party trademarks are the property of their respective owners.