60.2 Manually Putting an Image on a Workstation

The section explains how to put an image on the workstation by booting from an imaging method and entering a particular imaging command. The image is retrieved from your ZENworks Imaging server.

Make sure that the workstation receiving a new image has enough disk space for the image. Otherwise, you receive a “Failed to write to proxy” error.

60.2.1 Using the Bash Prompt to Manually Put an Image on a Workstation

  1. If you haven’t already done so, create the image to put on the workstation, as instructed in Section 60.1, Manually Taking an Image of a Workstation.

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

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

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

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

  3. Boot the workstation using one of the following methods:

  4. Enter manual at the boot prompt.

  5. (Optional) At the bash prompt, type img dump, then press Enter to display 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.

  6. Enter a command at the bash prompt using one of the following formats:

    • To restore an image from the ZENworks Imaging server and put it down on a workstation, enter:

      img restorep serverIPaddr_or_DNSname //uncpath/newimg.zmg
      

      The restorep parameter stands for “restore from proxy,” or in other words, retrieve an image from the Imaging (proxy) server and put it on this workstation. The IP address or DNS name should be that of your ZENworks Imaging server, and the UNC path specifies the location and filename where the image is to be retrieved from.

      For example:

      img restorep 137.65.95.127 //xyz_srv/sys/imgs/cpqnt.zmg
      
    • To retrieve an image from a local device and put it down on a workstation:

      img restorel filepath
      

      The restorel parameter stands for “restore from local,” or in other words, retrieve an image from a local device and put it on this workstation. filepath represents the filename of the image to retrieve, including the .zmg extension (case-sensitive) and the complete path from the root of the partition.

    IMPORTANT:Make sure to use forward slashes in the UNC path as shown above. Backslashes aren’t recognized by Linux. Alternatively, you can use backslashes and enclose the entire UNC path in quotes. The server portion of the path must be the name of your ZENworks Imaging server.

    If you want to manually restore an image from a directory that uses extended or double-byte characters in its name, you should perform an automatic image restoration using Novell® ConsoleOne®. For more information, see Section 59.5, Performing an Automatic Imaging Creation or Restoration.

    For more information on the parameters you can use and usage examples, see Section 64.4, Restore Mode (img restore).

    Depending on the size of the image, it might take several minutes to put the image down. Images actually take slightly longer to put 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.)

  7. (Optional) After the image is put down and the bash prompt is displayed, type img dump, then press Enter.

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

  8. At the bash prompt, type grub.s, then press Enter.

  9. Remove any CD or DVD from the drive and reboot the workstation and verify that it boots to the operating system that was installed by the new image.

60.2.2 Using the ZENworks Imaging Engine Menu to Manually Put an Image on a Workstation

  1. If you haven’t already done so, create the image to put on the workstation, as instructed in Section 60.1, Manually Taking an Image of a Workstation.

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

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

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

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

  3. Boot the workstation using one of the following methods:

  4. Enter manual at the boot prompt.

    or

    Select Start ZENworks Imaging in Maintenance Mode from the PXE menu.

  5. Enter img to display the ZENworks Imaging Engine menu.

  6. (Optional) Click System Information, then click Drive Information to display 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.

  7. Click Imaging, then click Restore Image.

  8. In the Restore Image Wizard window, specify the source location of the image (Local or Server), then click Next.

  9. Browse to and specify the path to the image archive.

  10. (Optional) Specify a file set.

  11. (Optional) Specify any advanced options, such as sfileset or apartition:ppartition.

    For details on this and other related img command parameters, see Section 64.0, ZENworks Imaging Engine Commands.

  12. Click Next.

    Depending on the size of the image, it might take several minutes to put the image down. Images actually take slightly longer to put 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.)

  13. (Optional) Click System Information, then click Drive Information to display a list of the partition slots on the workstation.

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

  14. Exit the ZENworks Imaging Engine menu.

  15. Run grub.s from the bash prompt.

  16. Remove any CD or DVD from the drive and reboot the workstation. Verify that it boots to the operating system that was installed by the new image.