Presentation is loading. Please wait.

Presentation is loading. Please wait.

Jamie Glendinning ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB.

Similar presentations


Presentation on theme: "Jamie Glendinning ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB."— Presentation transcript:

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

2 Copyright © Expert Networking Group Limited 2 Agenda Introduction Overview Ziminst.pl VMware environment Semi-Disconnected Environment Fully Disconnected Environment

3 Copyright © Expert Networking Group Limited 3 Introduction

4 Copyright © Expert Networking Group Limited 4 Introduction Level  Intermediate Duration  30 minutes Assumptions  An understanding of the ENGL build process

5 Copyright © Expert Networking Group Limited 5 Overview

6 Copyright © Expert Networking Group Limited 6 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.

7 Copyright © Expert Networking Group Limited 7 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.

8 Copyright © Expert Networking Group Limited 8 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)

9 Copyright © Expert Networking Group Limited 9 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 MediaRole CD/DVDLAN connected using TFTP CD/DVDFully disconnected USBLAN connected using TFTP USBFully disconnected

10 Copyright © Expert Networking Group Limited 10 Requirements

11 Copyright © Expert Networking Group Limited 11 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

12 Copyright © Expert Networking Group Limited 12 VMware Environment

13 Copyright © Expert Networking Group Limited 13 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

14 Copyright © Expert Networking Group Limited 14 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

15 Copyright © Expert Networking Group Limited 15 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

16 Copyright © Expert Networking Group Limited 16 VMware environment Configuration 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

17 Copyright © Expert Networking Group Limited 17 VMware environment Configuration 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

18 Copyright © Expert Networking Group Limited 18 VMware Environment Demonstration

19 Copyright © Expert Networking Group Limited 19 VMware environment Configuration steps

20 Copyright © Expert Networking Group Limited 20 VMware environment Configuration steps

21 Copyright © Expert Networking Group Limited 21

22 Copyright © Expert Networking Group Limited 22 VMware environment Configuration Copy ziminst.tar to C:\ENGL folder

23 Copyright © Expert Networking Group Limited 23

24 Copyright © Expert Networking Group Limited 24 Ziminst Folder structure Ziminst is now ready for use Source folder structure Output folder Driver files Images files Splash files Zim files Ziminst.pl script

25 Copyright © Expert Networking Group Limited 25 Semi-Disconnected Environment

26 Copyright © Expert Networking Group Limited 26 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.

27 Copyright © Expert Networking Group Limited 27 Semi-Disconnected Environment CD/DVD

28 Copyright © Expert Networking Group Limited 28 Semi-Disconnected Environment CD/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)

29 Copyright © Expert Networking Group Limited 29 Semi-Disconnected Environment CD/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.

30 Copyright © Expert Networking Group Limited 30 Semi-Disconnected Environment CD/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)

31 Copyright © Expert Networking Group Limited 31 Semi-Disconnected Environment CD/DVD Demonstration

32 Copyright © Expert Networking Group Limited 32

33 Copyright © Expert Networking Group Limited 33 Semi-Disconnected Environment CD/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

34 Copyright © Expert Networking Group Limited 34 Semi-Disconnected Environment USB

35 Copyright © Expert Networking Group Limited 35 Semi-Disconnected Environment USB 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)

36 Copyright © Expert Networking Group Limited 36 Semi-Disconnected Environment USB  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.

37 Copyright © Expert Networking Group Limited 37 Semi-Disconnected Environment USB  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.

38 Copyright © Expert Networking Group Limited 38 Semi-Disconnected Environment USB Demonstration

39 Copyright © Expert Networking Group Limited 39 Semi-Disconnected Environment USB

40 Copyright © Expert Networking Group Limited 40 Semi-Disconnected Environment USB

41 Copyright © Expert Networking Group Limited 41 Semi-Disconnected Environment USB The USB device is /dev/sdb The Harddisk is /dev/sda This was identified earlier as /dev/sdb

42 Copyright © Expert Networking Group Limited 42 Semi-Disconnected Environment USB 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.

43 Copyright © Expert Networking Group Limited 43 Semi-Disconnected Environment USB When booting from the USB device – select the local hard disk type: ide or sata

44 Copyright © Expert Networking Group Limited 44 Semi-Disconnected Environment USB The ENGL modified ZENworks imaging environment will load as normal

45 Copyright © Expert Networking Group Limited 45 Known issue USB boot

46 Copyright © Expert Networking Group Limited 46 Known Issue USB 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

47 Copyright © Expert Networking Group Limited 47 zim.cfg file Known Issue USB boot Dialog:Ask,"", "Warning! All hard disk data on this machine will be erased.\n \nContinue?","_YesNo",red If:Var,_ask,eq,"_No" Menu:Return End: ; 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",Green End: Dialog:Popup,"Restoring ENGL Smart Windows build process, please wait...",green Pause:3 File:Run,"img %imgrestorecmd%project_image_path%/%base_image%",verbose File:Run,"img %imgrestorecmd%project_image_path%/hotfixes.zmg",verbose

48 Copyright © Expert Networking Group Limited 48 Fully Disconnected Environment

49 Copyright © Expert Networking Group Limited 49 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.

50 Copyright © Expert Networking Group Limited 50 Fully Disconnected Environment CD/DVD

51 Copyright © Expert Networking Group Limited 51 Fully Disconnected Environment CD/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)

52 Copyright © Expert Networking Group Limited 52 Fully Disconnected Environment CD/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.

53 Copyright © Expert Networking Group Limited 53 Fully Disconnected Environment CD/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.

54 Copyright © Expert Networking Group Limited 54 Fully Disconnected Environment CD/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)

55 Copyright © Expert Networking Group Limited 55 Fully Disconnected Environment CD/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

56 Copyright © Expert Networking Group Limited 56 Fully Disconnected Environment CD/DVD C:\ENGL\src\zim\ The files are identical to matching files in the../tftp/zimfiles folder apart from the modified zim.cfg file

57 Copyright © Expert Networking Group Limited 57 Fully Disconnected Environment CD/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,""

58 Copyright © Expert Networking Group Limited 58 Fully Disconnected Environment CD/DVD C:\ENGL\src\zim\projects.ini This file should only list the projects that will exist on the disconnected media

59 Copyright © Expert Networking Group Limited 59 Fully Disconnected Environment CD/DVD Demonstration

60 Copyright © Expert Networking Group Limited 60

61 Copyright © Expert Networking Group Limited 61 Fully Disconnected Environment CD/DVD A new bootcd.iso has now been created in C:\ENGL\out

62 Copyright © Expert Networking Group Limited 62 Fully Disconnected Environment CD/DVD Mounting the bootcd.iso we can see it contains the following file structure

63 Copyright © Expert Networking Group Limited 63 Fully Disconnected Environment CD/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.

64 Copyright © Expert Networking Group Limited 64 Fully Disconnected Environment USB

65 Copyright © Expert Networking Group Limited 65 Fully Disconnected Environment USB 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)

66 Copyright © Expert Networking Group Limited 66 Fully Disconnected Environment USB  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

67 Copyright © Expert Networking Group Limited 67 Fully Disconnected Environment USB 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.

68 Copyright © Expert Networking Group Limited 68 Fully Disconnected Environment USB  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.

69 Copyright © Expert Networking Group Limited 69 Fully Disconnected Environment USB 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

70 Copyright © Expert Networking Group Limited 70 Fully Disconnected Environment USB C:\ENGL\src\zim\ The files are identical to matching files in the../tftp/zimfiles folder apart from the modified zim.cfg file

71 Copyright © Expert Networking Group Limited 71 Fully Disconnected Environment USB – 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,""

72 Copyright © Expert Networking Group Limited 72 Fully Disconnected Environment CD/DVD C:\ENGL\src\zim\projects.ini This file should only list the projects that will exist on the disconnected media

73 Copyright © Expert Networking Group Limited 73 Fully Disconnected Environment USB Demonstration

74 Copyright © Expert Networking Group Limited 74 Semi-Disconnected Environment USB

75 Copyright © Expert Networking Group Limited 75 Semi-Disconnected Environment USB

76 Copyright © Expert Networking Group Limited 76 Semi-Disconnected Environment USB The USB device is /dev/sdb The Harddisk is /dev/sda This was identified earlier as /dev/sdb

77 Copyright © Expert Networking Group Limited 77 Fully Disconnected Environment USB 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

78 Copyright © Expert Networking Group Limited 78 Semi-Disconnected Environment USB When booting from the USB device – select the local hard disk type: ide or sata

79 Copyright © Expert Networking Group Limited 79 Semi-Disconnected Environment USB The ENGL modified ZENworks imaging environment will load as normal

80 Copyright © Expert Networking Group Limited 80 Summary

81 Copyright © Expert Networking Group Limited 81 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

82 Copyright © Expert Networking Group Limited 82 Issues

83 Copyright © Expert Networking Group Limited 83 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 support@engl.co.uk

84 Copyright © Expert Networking Group Limited 84 More information

85 Copyright © Expert Networking Group Limited 85 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

86 Copyright © Expert Networking Group Limited 86 More Information Future Events  Tech Bite sessions  Brainshare www.engl.co.uk/events

87 www.engl.co.uk


Download ppt "Jamie Glendinning ENGL Imaging Toolkit™ 6 Disconnected imaging using CDROM and USB."

Similar presentations


Ads by Google