Jamie Glendinning [email protected] ENGL Imaging Toolkit™ 6 Disconnected imaging using...

87
Jamie Glendinning [email protected] ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB

Transcript of Jamie Glendinning [email protected] ENGL Imaging Toolkit™ 6 Disconnected imaging using...

Page 1: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Jamie [email protected]

ENGL Imaging Toolkit™ 6Disconnected imaging using CDROM and USB

Page 2: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited2

Agenda

Introduction

Overview

Ziminst.pl

VMware environment

Semi-Disconnected Environment

Fully Disconnected Environment

Page 3: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited3

Introduction

Page 4: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited4

Introduction

Level Intermediate

Duration 30 minutes

Assumptions An understanding of the ENGL build process

Page 5: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited5

Overview

Page 6: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited6

Overview Imaging Toolkit 6

The standard method of delivering images to workstations in an ENGL /ZCM environment is to:

PXE boot the workstation against a ZCM server

The PXE client then boots the modified ZENworks imaging environment

Zim runs and identifies appropriate images which are then restored

This works perfectly well in most environments however there are occasions when a non-PXE method of imaging is required.

Page 7: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited7

Overview Bootcd.iso

ZENworks Configuration Management provides a bootcd.iso that can be used to boot to the ZENworks imaging environment.

This bootcd.iso presents a bash prompt to the user. This is identical to how a standard (not ENGL modified) PXE environment is configured.

However ENGL do not provide modified bootcd.iso files as downloads.

Page 8: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited8

Overview Ziminst.pl

ENGL provide the “Zim Installer” (ziminst.pl) utility to allow you to make a modified initrd, bootcd.iso or USB device that will allow you to load a modified ZENworks Imaging Environment.

The ziminst.pl file is a Perl script that can be run in a SLES 10/11 environment and will take the standard Novell Imaging files (initrd / bootcd.iso) and modify it to include appropriate ENGL hooks.

The ziminst.pl script can also modify the Linux splash screens, add drivers and add the list of device driver id’s that are loaded when the Linux kernel is booted (this functionality will not be covered in this techbite session)

Page 9: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited9

Overview Ziminst.pl

Ziminst.pl can be used to modify the bootcd.iso file to set up the following imaging scenarios

The steps involved in configuring each of these scenarios will be covered in this techbite session

Media Role

CD/DVD LAN connected using TFTP

CD/DVD Fully disconnected

USB LAN connected using TFTP

USB Fully disconnected

Page 10: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited10

Requirements

Page 11: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited11

Requirements Ziminst.pl

Linux workstation / server running the same version of SUSE Linux as used to compile the ZENworks kernel (if compiling drivers otherwise any SLES10/SLES11 environment is supported)

ZENworks Imaging bootable CD image (bootcd.iso)

Linux driver files (optional)

Zim.cfg file as created by Build Console Integration Wizard

Page 12: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited12

VMware Environment

Page 13: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited13

VMware environment

The following environment was used to prepare this techbite

VMware workstation v7.1.4

SLES 11.0 DVD 1 ISO

ENGL Imaging Toolkit v6.0.5 installed on host machine

Page 14: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited14

VMware environment

To configure an appropriate VMware server:

Open VMware workstation

Select File - New – Virtual Machine

Select Typical (recommended) option

Browse to SLES 11 DVD 1 ISO image file – “Easy install” should an option for the install

Enter appropriate details for username and password

Enter appropriate name and location for Virtual machine

Page 15: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited15

VMware environment Configuration steps

Accept default disk size (or configure 8Gb at a minimum)

Accept default Hardware configuration

Click finish

A SLES server scripted install should start when the machine is next powered on

Page 16: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited16

VMware environmentConfiguration steps

Once the virtual machine has been configured – set up a C:\ENGL folder on the host

Enable “shared folders” in the virtual machine settings – options menu

Add C:\ENGL as a shared folder.

Note: This folder will appear as /mnt/hgfs/ENGL/ within the virtual machine

The VMware environment is now ready for ziminst.pl

Page 17: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited17

VMware environmentConfiguration steps

Copy the ziminst.tar file from the ENGL Zim installation directory to the C:\ENGL folder

At the Linux console, login as root

Launch a console session

Extract the ziminst.tar file.

cd /mnt/hgfs/ENGL

tar xf ziminst.tar

ziminst.pl is now ready to be run

Page 18: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited18

VMware EnvironmentDemonstration

Page 19: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited19

VMware environmentConfiguration steps

Page 20: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited20

VMware environmentConfiguration steps

Page 21: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited21

Page 22: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited22

VMware environmentConfiguration

Copy ziminst.tar to C:\ENGL folder

Page 23: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited23

Page 24: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited24

ZiminstFolder structure

Ziminst is now ready for use

Source folder structureOutput folder Driver files

Images filesSplash filesZim files

Ziminst.pl script

Page 25: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited25

Semi-Disconnected Environment

Page 26: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited26

Semi-Disconnected Environment

This approach allows configuration files and executables to remain on the ZENworks imaging server which eases maintenance and upgrade and also allows all of the LDAP authentication and group membership abilities of PXE based imaging.

However, automated imaging / re-imaging is not possible as the workstation must be booted from CD/DVD/USB device therefore this approach is only recommended for workstations that do not have PXE capable network cards.

Page 27: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited27

Semi-Disconnected EnvironmentCD/DVD

Page 28: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited28

Semi-Disconnected EnvironmentCD/DVD

Requirements ENGL modified TFTP folder structure configured on ZCM

server (created by the Integration wizard)

Linux workstation/server running the same version of SUSE Linux as used to compile the ZENworks kernel (if compiling drivers otherwise any SLES10/SLES11 environment is supported)

ZENworks Imaging bootable CD image (bootcd.iso)

Linux driver files (optional)

Page 29: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited29

Semi-Disconnected EnvironmentCD/DVD

Copy the bootcd.iso file to the C:\ENGL\src directory on the host machine

Copy optional Linux network drivers (.ko) files to the C:\ENGL\src\drivers directory.

Copy optional Linux boot splash image (.jpg) to the C:\ENGL\src\splash directory and modify the C:\ENGL\src\splash\splash.cfg file as required.

Note: C:\ENGL\ on the host machine is seen as /mnt/hgfs/ENGL from within the

Linux VMware Machine

The boot splash image must be sized at 800 x 600 pixels with a 16bit colour depth.

Page 30: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited30

Semi-Disconnected EnvironmentCD/DVD

Run /mnt/hgfs/ENGL/ziminst.pl

Follow the on screen instructions confirming the default options or make any necessary changes and the new bootcd.iso file will be written to C:\ENGL\out

Note: When prompted for the PROXYADDR enter the IP address of the Imaging Proxy server

Burn a CDROM from the new bootcd.iso file

Boot from new bootcd.iso and confirm successful boot to the ENGL modified ZENworks Imaging Environment (Zim menu loads successfully)

Page 31: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited31

Semi-Disconnected EnvironmentCD/DVD Demonstration

Page 32: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited32

Page 33: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited33

Semi-Disconnected EnvironmentCD/DVD

A new bootcd.iso has now been created in

C:\ENGL\out

To test this bootcd – burn it to a disk and boot a physical machine or use a VMware workstation to boot from the ISO file

Page 34: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited34

Semi-Disconnected EnvironmentUSB

Page 35: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited35

Semi-Disconnected EnvironmentUSB

Requirements ENGL modified TFTP folder structure configured on ZCM

server (created by the Integration wizard)

A blank FAT32 formatted USB drive

Linux workstation/server running the same version of SUSE Linux as used to compile the ZENworks kernel (if compiling drivers otherwise any SLES10/SLES11 environment is supported)

ZENworks Imaging bootable CD image (bootcd.iso)

Linux driver files (optional)

Page 36: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited36

Semi-Disconnected EnvironmentUSB

Copy the bootcd.iso file to the C:\ENGL\src directory on the host machine

Copy optional Linux network drivers (.ko) files to the C:\ENGL\src\drivers directory.

Copy optional Linux boot splash image (.jpg) to the C:\ENGL\src\splash directory and modify the C:\ENGL\src\splash\splash.cfg file as required.

Note: C:\ENGL\ on the host machine is seen as /mnt/hgfs/ENGL from within the

Linux VMware Machine

The boot splash image must be sized at 800 x 600 pixels with a 16bit colour depth.

Page 37: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited37

Semi-Disconnected EnvironmentUSB

Run /mnt/hgfs/ENGL/ziminst.pl

Follow the on screen instructions confirming the default options or make any necessary changes, at the Imaging Media screen select USB

Acknowledge the message that states the USB device will be completely erased, then specify the path to the USB device e.g. /dev/sdb1

Note: Run cat /proc/partitions to list the disk devices in your machine.

When prompted for the PROXYADDR enter the IP address of the Imaging Proxy server

When the process has completed remove the USB device from the machine.

Page 38: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited38

Semi-Disconnected EnvironmentUSB Demonstration

Page 39: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited39

Semi-Disconnected EnvironmentUSB

Page 40: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited40

Semi-Disconnected EnvironmentUSB

Page 41: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited41

Semi-Disconnected Environment

USB

The USB device is /dev/sdb

The Harddisk is /dev/sda

This was identified earlier as /dev/sdb

Page 42: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited42

Semi-Disconnected EnvironmentUSB

The USB device will now contain modified structure that will boot to the ZENworks Imaging Environment

To test this USB device – Insert it into a physical machine then select the appropriate device from the boot process.

Page 43: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited43

Semi-Disconnected EnvironmentUSB

When booting from the USB device – select the local hard disk type: ide or sata

Page 44: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited44

Semi-Disconnected EnvironmentUSB

The ENGL modified ZENworks imaging

environment will load as normal

Page 45: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited45

Known issueUSB boot

Page 46: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited46

Known IssueUSB boot

When img is used to delete partitions on a machine it will delete ALL partitions that are not mounted

If you have a USB device inserted in the machine but not mounted it will be wiped!

To get round this – the zim.cfg file can be modified to check – then prompt if a USB device has been used to boot the machine

Page 47: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited47

zim.cfg file

Known IssueUSB boot

Dialog:Ask,"", "Warning! All hard disk data on this machine will be erased.\n \nContinue?","_YesNo",redIf:Var,_ask,eq,"_No"

Menu:ReturnEnd:

; Display dialog if USBBOOT=YES to ensure USB drive is not cleared.If:Var,USBBOOT,eq,"YES" Dialog:Ask,"", "Warning! \n Remove USB Drive prior to imaging \nContinue?","_OK",GreenEnd:

Dialog:Popup,"Restoring ENGL Smart Windows build process, please wait...",greenPause:3File:Run,"img %imgrestorecmd%%project_image_path%/%base_image%",verboseFile:Run,"img %imgrestorecmd%%project_image_path%/hotfixes.zmg",verbose

Page 48: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited48

Fully Disconnected Environment

Page 49: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited49

Fully Disconnected Environment

This approach places all configuration files and executables on the boot media and allows for simplified imaging without access to eDirectory/Active Directory or a ZENworks imaging server.

However, as all files are integrated this makes modification and updating a more cumbersome task and is only recommended for machines that have no physical network connection.

Page 50: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited50

Fully Disconnected EnvironmentCD/DVD

Page 51: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited51

Fully Disconnected EnvironmentCD/DVD

Requirements ENGL modified TFTP folder structure configured on ZCM

server (created by the Integration wizard)

Linux workstation/server running the same version of SUSE Linux as used to compile the ZENworks kernel (if compiling drivers otherwise any SLES10/SLES11 environment is supported)

ZENworks Imaging bootable CD image (bootcd.iso)

Linux driver files (optional)

ZENworks image files (.zmg in project folder structure)

Page 52: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited52

Fully Disconnected EnvironmentCD/DVD

Copy the bootcd.iso file to the C:\ENGL\src directory on the host machine

Copy optional Linux network drivers (.ko) files to the C:\ENGL\src\drivers directory.

Copy optional Linux boot splash image (.jpg) to the C:\ENGL\src\splash directory and modify the C:\ENGL\src\splash\splash.cfg file as required.

Copy ZENworks image (.zmg) files to the C:\ENGL\src\images directory.

Copy ENGL Zim files engl.lic, zim.cfg, zim.tgz, images.ini, projects.ini, ldapsdk.tar and libtv.tgz to the C:\ENGL\src\zim directory.

Page 53: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited53

Fully Disconnected EnvironmentCD/DVD

Note: Manual edits will be required in the zim.cfg file to ensure that the

Zim configuration will work in a totally disconnected environment

C:\ENGL\ on the host machine is seen as /mnt/hgfs/ENGL from within the Linux VMware Machine

The boot splash image must be sized at 800 x 600 pixels with a 16bit colour depth.

Page 54: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited54

Fully Disconnected EnvironmentCD/DVD

Run /mnt/hgfs/ENGL/ziminst.pl

Follow the on screen instructions and select Disconnected CDROM confirming the default options or make any necessary changes. The new bootcd.iso file will be written C:\ENGL\out

Note: The new bootcd.iso file will contain all appropriate image files and as such may be quite large

Burn a DVD from the new bootcd.iso file

Boot from new bootcd.iso and confirm successful boot to the ENGL modified ZENworks Imaging Environment (Zim menu loads successfully and restores run from the local CD/DVD)

Page 55: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited55

Fully Disconnected EnvironmentCD/DVD

C:\ENGL\src\images

The ..\src\images folder should mirror the content-repo\images folder structure and contents from the ZCM server for those projects that will be restored from the disconnected media

Page 56: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited56

Fully Disconnected EnvironmentCD/DVD

C:\ENGL\src\zim\

The files are identical to matching files in the ../tftp/zimfiles folder apart from the modified zim.cfg file

Page 57: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited57

Fully Disconnected EnvironmentCD/DVD – zim.cfg tweak

The zim.cfg file will require the following change to ensure the image files are restored from the correct location

Note: Modify the C:\ENGL\src\zim\zim.cfg file not the one on the server

Set:_menuexitmsg,""Set:_menucenter,"off"Set:_menushadows,"on"Set:_menushowpwd,"on"Set:_menunumbers,"on"Set:_menurows,"Auto"Set:_helptitle,"Help"Set:_help,"Help unavailable."Set:_zisdversion,"11"Set:_zisddevice,"/dev/%HDTYPE%"Set:imgrestorecmd,"-r -p "Set:imgmakecmd,"-m -p "Set:images_path,""

Set:_menuexitmsg,""Set:_menucenter,"off"Set:_menushadows,"on"Set:_menushowpwd,"on"Set:_menunumbers,"on"Set:_menurows,"Auto"Set:_helptitle,"Help"Set:_help,"Help unavailable."Set:_zisdversion,"11"Set:_zisddevice,"/dev/%HDTYPE%"Set:imgrestorecmd,"-r -l /mnt/cdrom/images/" Set:imgmakecmd,"-m -p "Set:images_path,""

Page 58: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited58

Fully Disconnected EnvironmentCD/DVD

C:\ENGL\src\zim\projects.ini

This file should only list the projects that will exist on the disconnected media

Page 59: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited59

Fully Disconnected EnvironmentCD/DVD Demonstration

Page 60: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited60

Page 61: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited61

Fully Disconnected EnvironmentCD/DVD

A new bootcd.iso has now been created in

C:\ENGL\out

Page 62: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited62

Fully Disconnected EnvironmentCD/DVD

Mounting the bootcd.iso we can see it contains the following file structure

Page 63: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited63

Fully Disconnected EnvironmentCD/DVD

Once you have a modified bootcd.iso file it is not always practical to use the ziminst.pl script to make each additional change and recreate the .iso file each time.

In this scenario it is possible to use an ISO editor like “UltraISO” to add or remove files from the ISO structure.

Page 64: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited64

Fully Disconnected EnvironmentUSB

Page 65: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited65

Fully Disconnected EnvironmentUSB

Requirements ENGL modified TFTP folder structure configured on ZCM

server (created by the Integration wizard)

A blank FAT32 formatted USB drive

Linux workstation/server running the same version of SUSE Linux as used to compile the ZENworks kernel (if compiling drivers otherwise any SLES10/SLES11 environment is supported)

ZENworks Imaging bootable CD image (bootcd.iso)

Linux driver files (optional)

ZENworks image files (.zmg in project folder structure)

Page 66: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited66

Fully Disconnected EnvironmentUSB

Copy the bootcd.iso file to the C:\ENGL\src directory on the host machine

Copy optional Linux network drivers (.ko) files to the C:\ENGL\src\drivers directory

Copy optional Linux boot splash image (.jpg) to the C:\ENGL\src\splash directory and modify the C:\ENGL\src\splash\splash.cfg file as required

Copy ZENworks image (.zmg) files to the C:\ENGL\src\images directory

Copy ENGL Zim files engl.lic, zim.cfg, zim.tgz, images.ini, projects.ini, ldapsdk.tar and libtv.tgz to the C:\ENGL\src\zim directory

Page 67: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited67

Fully Disconnected EnvironmentUSB

Note: Manual edits will be required in the zim.cfg file to ensure that the

Zim configuration will work in a totally disconnected environment

C:\ENGL\ on the host machine is seen as /mnt/hgfs/ENGL from within the Linux VMware Machine

The boot splash image must be sized at 800 x 600 pixels with a 16bit colour depth.

Page 68: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited68

Fully Disconnected EnvironmentUSB

Run /mnt/hgfs/ENGL/ziminst.pl

Follow the on screen instructions confirming the default options or make any necessary changes, at the Imaging Media screen select USB

Acknowledge the message that states the USB device will be completely erased, then specify the path to the USB device e.g. /dev/sdb1

Note: Run cat /proc/partitions to list the disk devices in your machine.

When the process has completed remove the USB device from the machine.

Page 69: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited69

Fully Disconnected EnvironmentUSB

C:\ENGL\src\images

The ..\src\images folder should mirror the content-repo\images folder structure and contents from the ZCM server for those projects that will be restored from the disconnected media

Page 70: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited70

Fully Disconnected EnvironmentUSB

C:\ENGL\src\zim\

The files are identical to matching files in the ../tftp/zimfiles folder apart from the modified zim.cfg file

Page 71: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited71

Fully Disconnected EnvironmentUSB – zim.cfg tweak

The zim.cfg file will require the following change to ensure the image files are restored from the correct location

Note: Modify the C:\ENGL\src\zim\zim.cfg file not the one on the server

Set:_menuexitmsg,""Set:_menucenter,"off"Set:_menushadows,"on"Set:_menushowpwd,"on"Set:_menunumbers,"on"Set:_menurows,"Auto"Set:_helptitle,"Help"Set:_help,"Help unavailable."Set:_zisdversion,"11"Set:_zisddevice,"/dev/%HDTYPE%"Set:imgrestorecmd,"-r -p "Set:imgmakecmd,"-m -p "Set:images_path,""

Set:_menuexitmsg,""Set:_menucenter,"off"Set:_menushadows,"on"Set:_menushowpwd,"on"Set:_menunumbers,"on"Set:_menurows,"Auto"Set:_helptitle,"Help"Set:_help,"Help unavailable."Set:_zisdversion,"11"Set:_zisddevice,"/dev/%HDTYPE%"Set:imgrestorecmd,"-r -l /mnt/usb/images/" Set:imgmakecmd,"-m -p "Set:images_path,""

Page 72: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited72

Fully Disconnected EnvironmentCD/DVD

C:\ENGL\src\zim\projects.ini

This file should only list the projects that will exist on the disconnected media

Page 73: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited73

Fully Disconnected EnvironmentUSB Demonstration

Page 74: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited74

Semi-Disconnected EnvironmentUSB

Page 75: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited75

Semi-Disconnected EnvironmentUSB

Page 76: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited76

Semi-Disconnected Environment

USB

The USB device is /dev/sdb

The Harddisk is /dev/sda

This was identified earlier as /dev/sdb

Page 77: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited77

Fully Disconnected EnvironmentUSB

The USB device will now contain a modified structure that will boot to the ZENworks Imaging Environment

This structure also contains the images and zimbin folders

Page 78: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited78

Semi-Disconnected EnvironmentUSB

When booting from the USB device – select the local hard disk type: ide or sata

Page 79: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited79

Semi-Disconnected EnvironmentUSB

The ENGL modified ZENworks imaging

environment will load as normal

Page 80: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited80

Summary

Page 81: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited81

Summary

ziminst.pl can be used to modify the Novell provided bootcd.iso file to incorporate the hooks required for Zim to run

ziminst.pl can also set up disconnected imaging on USB and CD/DVD media

Page 82: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited82

Issues

Page 83: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited83

Issues

If you have any issues with ziminst.pl let us know!

• Log an incident on englnet

https://englnet.engl.co.uk/nps

• Report an issue via support forum - engl.support.imagingtoolkit6.imaging

• Email [email protected]

Page 84: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited84

More information

Page 85: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited85

More Information

Useful links Product information and Downloads

www.engl.co.uk/products/imagingtoolkit

Success Stories

www.engl.co.uk/company/success

Partners

www.engl.co.uk/partners

Page 86: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Copyright © Expert Networking Group Limited86

More Information

Future Events Tech Bite sessions

Brainshare

www.engl.co.uk/events

Page 87: Jamie Glendinning Jamie_Glendinning@engl.co.uk ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

www.engl.co.uk