Testing Basic Imaging Operations

Once you have completed the preparations outlined in the previous section, you can begin testing the basic imaging operations listed below. We recommend that you conduct the tests in the order listed.

Test What It Is What It Involves

1

Manually Taking an Image of a Workstation

Taking an image of the workstation by booting from the imaging diskettes and entering a particular imaging command. The image will be stored on your imaging server.

2

Manually Putting an Image on a Workstation

Putting an image on the workstation by booting from the imaging diskettes and entering a particular imaging command. The image will be retrieved from your imaging server.

3

Enabling a Workstation for Unattended Imaging Operations

Registering the workstation as an object in your NDS tree, installing a ZfD imaging agent on the workstation, and installing a permanent ZfD imaging partition on the hard disk. The imaging agent stores certain unique data about the workstation, such as its NETBIOS name and its NDS distinguished name, in a safe place on the hard disk so it can be restored when the workstation is reimaged.

4

Triggering an Unattended Imaging Operation

Setting a flag in the Workstation object that says to take or put an image on the workstation the next time it is booted, and then verifying that the imaging operation occurs as expected.

5

Defining a Workstation Policy for Unattended Imaging Operations

Creating a Workstation Imaging Policy object (within a Workstation Policy Package) that specifies which image to put on a workstation during an unattended imaging operation, based on factors such as the workstation's chipset type, hard drive type, and so on.


Manually Taking an Image of a Workstation

  1. Insert the first imaging diskette and reboot the workstation.

  2. At the boot prompt, type manual > press Enter.

  3. When prompted, insert the second diskette > press Enter.

  4. When prompted, insert the third diskette > press Enter.

  5. If you are prompted for a language diskette, insert it > press Enter.

  6. (Optional) At the bash prompt, type img dump > press Enter.

    This displays a list of the partition slots on the workstation. For your reference, note the number and type of partitions and which one is active.

    or

    Type img to display a menu > select Dump > No Geometry.

  7. To take an image of the workstation, you have two choices:

    For details on this and other related img command parameters, see Imaging Engine (img: Command Line and Menu) in Imaging Utilities and Options in ZENworks for Desktops 3.2 Administration Guide.

    Depending on the amount of data on the hard disk, the image might take several minutes to create. If the screen goes blank, just press any key. (Linux enters a screen-saving mode after a few minutes.)

  8. When the image has been created and the bash prompt reappears, remove any diskettes from the drive and reboot the workstation.

  9. (Optional) Verify that the image file was created on your imaging server. You might also want to check its size.


Manually Putting an Image on a Workstation

  1. If you haven't already done so, create the image that you will put on the workstation, as instructed in Manually Taking an Image of a Workstation.

    Make sure the image is of the same type of workstation (same hardware configuration) and is stored on your imaging server. You can use a previous image of the same workstation.

    IMPORTANT:  If you are putting an image on a workstation without a Linux imaging partition, make sure the image was made on a workstation without a Linux imaging partition. Otherwise, the wrong MBR (Master Boot Record) is restored, and the workstation will fail to boot.

  2. (Optional) Boot the workstation from a Windows startup disk and run FDISK to remove all partitions from the hard disk.

    HINT:  Running FDISK is not required, but it is recommended for purposes of comparing the workstation's partitions before and after the imaging operation.

  3. Insert the first imaging diskette and reboot the workstation.

  4. At the boot prompt, type manual > press Enter.

  5. When prompted, insert the second diskette > press Enter.

  6. When prompted, insert the third diskette > press Enter.

  7. If you are prompted for a language diskette, insert it > press Enter.

  8. (Optional) At the bash prompt, type img dump > press Enter.

    This displays a list of the partition slots on the workstation. For your reference, note the number and type of partitions and which one is active. If you removed all partitions using FDISK, each slot should be empty and none should be active.

    or

    Type img to display a menu > select Dump > No Geometry.

  9. To put the new image on the workstation, you have two choices:

    Depending on the size of the image, it might take several minutes to lay down. Images actually take slightly longer to lay down than they do to take. If the screen goes blank, just press any key. (Linux enters a screen-saving mode after a few minutes.)

  10. (Optional) When the image has been laid down and the bash prompt reappears, type img dump > press Enter.

    or

    Type img to display a menu > select Dump > No Geometry.

    As before, this displays a list of the partition slots on the workstation. You should now see information about the new partitions that were created and activated by the image that you just laid down.

  11. At the bash prompt, type lilo.s > press Enter.

  12. Remove any diskettes from the drive and reboot the workstation. Verify that it boots to the operating system that was installed by the new image.


Enabling a Workstation for Unattended Imaging Operations

If you have enabled PXE on the workstation and have installed PXE support on your imaging server, this procedure is not a prerequisite to performing unattended imaging operations. When a PXE-enabled workstation is booted, it looks for the server where PXE is installed. Using a DHCP request, it checks the server to see if there is any imaging work to do. If there is imaging work to do, it downloads the files LINUX.1, LINUX.2, and LOADLIN.EXE so that the workstation can be booted to Linux. Then the image is downloaded to (or taken of) the workstation.

Follow this procedure if you are not using PXE. This procedure needs to be performed only once on your test workstation, prior to performing the unattended imaging operations covered in the next two sections. It is not a prerequisite to performing manual imaging operations or other automated imaging operations that you might want to perform in a production environment. For more information, see Other Things You Can Do.

  1. If you haven't already done so, install the Novell® ClientTM required by ZfD on the workstation. For instructions, see Overall Software Requirements.

  2. If you haven't already done so, register the workstation as an object in your NDS tree. For instructions, see Automatic Workstation Import.

    You don't need to complete all the tasks mentioned in the instructions. Just create a server policy package that contains a minimal workstation import policy (use the defaults for naming, groups, and limits), and then associate the server package with the container where you want the Workstation object to be created. Then, configure the workstation to communicate with the import service on the imaging server, and reboot the workstation. Before proceeding with the next step, check your NDS tree to make sure the Workstation object was created.

  3. Install the ZfD imaging agent on the workstation.

    NOTE:  The ZfD imaging agent has already been installed on the workstation if in Step 1 you did a custom Novell client installation and chose the Imaging Services option. If this is the case, skip to Step 4. Otherwise, proceed with Step 3.a to install the ZfD imaging agent.

    1. Browse to the ZENWORKS\IMAGING folder in your ZfD installation (on the imaging server).

    2. Complete the steps that correspond to the type of workstation:

      Workstation Type Steps

      Windows 95 or 98

      1. Copy ZISWIN.EXE, ZISLIB16.DLL, and ZISLIB32.DLL to the NOVELL\ZENIS folder.
      2. Run ZISWIN.EXE from the NOVELL\ZENIS folder.
      3. Run REGEDIT.EXE and browse to HKEY_LOCAL_MACHINE > Software > Microsoft > Windows > CurrentVersion > RunServices.
      4. Add the string value ZENwork Imaging Service and set it to the filename and path of the ZISWIN.EXE file. For example, c:\novell\zenis\ziswin.exe
      5. Save the changes and close REGEDIT.

      Windows NT or 2000

      1. Copy ZISWIN.EXE and ZISWINR.DLL (in the NLS\ENGLISH subfolder or the appropriate language subfolder) to your WINNT\SYSTEM32 folder.
      2. From a command prompt, change to your WINNT\SYSTEM32 folder > type ziswin -install > press Enter.
    3. Reboot the workstation.

  4. Take an image of the workstation again as instructed in Manually Taking an Image of a Workstation.

    IMPORTANT:  Do this even if you have taken an image of the workstation previously. This ensures that the new image captures the changes you made in the preceding steps.

  5. When the image has been created, reboot the workstation with the first imaging diskette > type install at the boot prompt > press Enter.

    This starts the process of creating the ZfD imaging (Linux) partition in the first partition slot. It also destroys all existing partitions, even if slot 1 is empty and available. By default, the ZfD partition size will be 15 MB.

    HINT:  If the ZfD imaging partition already exists, it will be upgraded, and your existing Windows partitions will be left intact. For more information on installing or upgrading the ZfD imaging partition, see Setting Up Workstations for Imaging in Workstation Imaging in Deployment.

  6. When prompted, reinsert the first imaging diskette > press Enter.

  7. (Optional) When the ZfD imaging partition has been created and the bash prompt reappears, type img dump > press Enter.

    This displays a list of the partition slots on the workstation. Unless you were upgrading your ZfD imaging partition, each partition slot should be empty and none should be active. The ZfD imaging partition is hidden from the list, so the number of partition slots in the list should be one less than before.

    or

    Type img to display a menu > select Dump > No Geometry.

  8. At the bash prompt, restore the image you took in Step 4. Use the img restorep command or select Restore an Image > Proxy Image from the menu as instructed in Step 9 of Manually Putting an Image on a Workstation.

  9. (Optional) When the image has been restored and the bash prompt reappears, use the img dump command to redisplay the list of the partition slots on the workstation.

    or

    Type img to display a menu > select Dump > No Geometry.

    You should now see information about the Windows partitions that were restored and activated. There should still be one less partition slot than before because the Linux partition is still hidden (and will continue to be).

  10. At the bash prompt, type lilo.s > press Enter.

  11. When the bash prompt reappears, remove the diskette and reboot the workstation.

    The workstation should boot to Windows. If the bash prompt reappears, enter the lilo.s command again and reboot a second time.

From this point on, whenever the workstation is rebooted, the imaging engine will gain control and check the imaging server to see if an imaging operation should be performed. If you have not configured the Workstation object (in NDS) to trigger an unattended imaging operation, the imaging engine will simply exit and automatically reboot the workstation to Windows.


Triggering an Unattended Imaging Operation

  1. If the imaging operation that you want to trigger is to put an image on the workstation, do the following. Otherwise, skip this step.

    1. If you haven't already done so, create the image to be put on the workstation. Make sure to store it on your imaging server. For instructions, see Manually Taking an Image of a Workstation.

    2. In ConsoleOne, create a Workstation Image object in your NDS tree. Configure the object to point to the image file that is to be put on the workstation. For details on pointing to the image file, click Help in the Image File Location dialog box.

  2. In ConsoleOne, right-click the Workstation object > click Properties.

  3. On the ZENworks Imaging Configuration page, do either of the following:

  4. Click OK to save the imaging configuration settings.

    HINT:  Once the imaging operation has been performed on the workstation, ZfD will clear these imaging configuration settings automatically so that the imaging operation won't keep recurring.

  5. Verify that the imaging operation occurs as expected when you reboot the workstation.


Defining a Workstation Policy for Unattended Imaging Operations

  1. In ConsoleOne, right-click the container that holds the Workstation objects that you want to create the policy for > click New > Policy Package.

  2. Click Workstation Package > Workstation Imaging Policy > Next.

  3. Enter a name for the policy package (such as Workstation Policies for This Container) > click Next.

  4. Select Define Additional Properties > click Finish.

  5. Enable the Workstation Imaging Policy > click Properties.

  6. On the Image Selection Rules page, click Add > select a Workstation Image object > use the drop-down fields and operators to specify the conditions under which the selected image should be used (click Help for details) > click OK.

    Repeat this step as many times as needed to specify the particular images that should be used under different conditions.

    HINT:  These rules will be used by your imaging server to determine which image to put on workstations during unattended imaging operations. The various hardware configuration data specified in the rules are compared against the actual hardware configuration data detected by the ZfD imaging engine on the workstation. To see this data for a particular workstation, boot it with the ZfD imaging diskettes in manual mode and issue the img info command or type img > select Information from the menu.

  7. Click OK to save the policy.

  8. On the Associations page of the policy package, add the container that holds the Workstation objects that you want the policy to apply to > click OK.

  9. Test the policy by configuring the Workstation object to receive an image on its next boot as instructed in Triggering an Unattended Imaging Operation. Be sure to choose the option to use the effective policy image.

  10. Verify that the imaging policy selects the correct image when the unattended imaging operation is triggered on the workstation (the next time it boots).