Use the YaST Product Creator for SUSE Linux Enterprise 10 SP1 products to create custom product images. The custom image preparation support was developed to integrate all existing tools for image creation and simplify deployment and distribution of all SUSE Linux Enterprise products.The YaST Product Creator is a unified graphical front-end for CD Creator, Add-On Creator, and KIWI. It was developed to provide image creation functionality in one place. All tools integrated in the YaST Product Creator are still available as separate YaST modules or applications.
Donwload PDF version of this document
The YaST Product Creator is suitable for creating the following types of images:
The YaST Product Creator has some limitations:
The YaST Product Creator provides configurations for all types of images. These configurations can be used as a good base for most situations. If you need a special configuration and are not familiar with the add-on configuration or editing and creating a KIWI configuration, see Creating Add-ons and en.opensuse.org/KIWI
Contents |
Before you can create images with the YaST Product Creator, install the package yast2-product-creator. These packages are needed for a fully functional instance of YaST Product Creator: kiwi, kiwi-desc-isoboot, kiwi-desc-wyse, kiwi-desc-netboot, kiwi-desc-xenboot, kiwi-pxeboot, kiwi-desc-xennetboot, kiwi-desc-vmxboot, kiwi-desc-livesystem, and kiwi-desc-usbboot.
Before you can create an image, prepare at least one product configuration. If you do not have a product configuration, the YaST Product Creator starts the project configuration wizard by default. You can create multiple configurations and create an image as a combination of any of them. To add a new product configuration, click Add to start the project configuration wizard.
| Note |
| Installation Sources
The YaST Product Creator uses installation sources added to the system with the YaST Installation Sources module. The only exception is add-on products sources. It is possible to create and add an add-on product source during a product configuration in the source selection step. |
Procedure: Creating a Product Configuration with the Wizard
A product configuration can be changed at any time. To adjust a configuration, select it from the table in the main window and click Edit. It opens the product configuration wizard. The steps are the same as during creation of a new product configuration.
To delete a product configuration, select a configuration from the table in the main menu and click Delete.
If you have prepared a complete bootable product configuration, you can quickly create an ISO image. To do so, select a product configuration from the table in the main window and click Create Image.
| Note |
| Do not use Create Image to create an ISO image from unbootable product configuration, such as an add-on image. For information about add-on ISO creation, see . |
With the YaST Product Creator, you can create a custom installation medium for your product. This medium can include only packages to install. Creating a custom installation medium saves space on your installation server or decreases the number of CDs you need to burn. Before you can create ISO image, you need a product configuration of custom installation medium. To create it, start the wizard by clicking Add in the YaST Product Creator Configuration Overview and proceed as follows:
Procedure: Creating a Product Configuration for a Custom Installation Medium
After successful ISO image creation, YaST Product Creator displays its main window. Find the created ISO image in the directory entered in the product configuration.
To create an add-on product, you can use the separate Add-On Creator YaST module instead of the YaST Product Creator. The ability of YaST Product Creator to create add-on products is especially useful when you want to create an add-on product that can be incorporated in another product. The add-on image creation in YaST Product Creator takes place during product configuration. If you are not familiar with add-on creation and structure, see http://developer.novell.com/wiki/index.php/Creating_Add-ons.
| Note |
| The YaST Product Creator can create only unbootable add-on products. |
To create the add-on image, proceed as follows:
Procedure: Creating of the Add-On Image
To make the add-on product selectable for other product configurations, finish a product configuration. To create an ISO image of the add-on product, select Create ISO Image during add-on configuration in the output step.
With the YaST Product Creator, you can create a custom live ISO image of your product with only the software needed for your daily work. If you select a product configuration before you start the live ISO creation, the live image uses the software selection from the product configuration as the base of the live ISO image.
Procedure: Creating a Live ISO Image
You can find the live ISO image in the directory defined in your system configuration. To create a live CD or DVD from the image, use any burning tool, such as K3b.
You can also create a USB stick with a live version of your product. The procedure is similar to creation of a live ISO image.
To create a USB stick image, select Create Image with KIWI+USB Stick in the main menu. The creation of a live USB stick uses the same configuration dialog as described in . To add files to the USB stick image, add them to Directory with System Configuration on the Directories tab. During first run of the USB stick image creation, a template directory common for USB, live CD or DVD, and virtual disks is used. Changes to the image configuration are saved in /usr/share/kiwi/image/kwusb-YaST-name_of_your_project_configuration and used for your next USB stick.
To start creation of the image, click Create USB Stick Image. To confirm creation, click Yes.
You can find the created USB stick image in the directory defined in your product configuration. To write a prepared image to a USB stick, use the following command in the directory with the created image:
kiwi --bootstick initrd*.gz\
--bootstick-system '''systemImage'''\
--bootstick-device '''your_usb_device'''
Replace systemImage with the filename of the created system image and your_usb_device with the device name of your USB stick. For example, to write an image created called custom3-localdir in /dev/sdb, YaST Product Creator creates the following files in the project directory:
custom3-localdir.x86_64-1.1.2 initrd-usbboot-suse-10.2.x86_64-2.1.1.gz initrd-usbboot-suse-10.2.x86_64-2.1.1.kernel.2.6.18.2-34-default custom3-localdir.x86_64-1.1.2.md5 initrd-usbboot-suse-10.2.x86_64-2.1.1.kernel initrd-usbboot-suse-10.2.x86_64-2.1.1.md5
To write the image to the USB stick, enter the command:
kiwi --bootstick initrd-usbboot-suse-10.2.x86_64-2.1.1.gz \
--bootstick-system '''custom3-localdir.x86_64-1.1.2''' \
--bootstick-device '''/dev/sdb'''
The YaST Product Creator provides an easy way to create a Xen image of your product. To create a Xen image, select Create Image with KIWI+Xen Image in the main menu. Xen image creation uses the same configuration dialog as described in . Adjust a virtual image configuration. To add preconfigured files to the image, use the Directories tab. During the first run of the virtual image creation, a template directory common for USB, live CD or DVD, and virtual disks is used. Changes to the image configuration are saved in /usr/share/kiwi/image/kwxen-YaST-name_of_your_project_configuration and used for your next Xen image.
To start creation, click Create Xen Image. To confirm creation, click Yes.
The YaST Product Creator creates Xen configuration files and images. To activate the Xen image, enter the command:
xm create -c your_project_name.xenconfig
For example, if you use a product configuration with the name livedvd, the YaST Product Creator creates the following files:
initrd-xenboot-suse-10.2.x86_64-2.1.1.gz initrd-xenboot-suse-10.2.x86_64-2.1.1.kernel initrd-xenboot-suse-10.2.x86_64-2.1.1.kernel-xen.2.6.18.2-34-xen.gz initrd-xenboot-suse-10.2.x86_64-2.1.1.kernel.2.6.18.2-34-xen initrd-xenboot-suse-10.2.x86_64-2.1.1.md5 livedvd.x86_64-1.2.10 livedvd.x86_64-1.2.10.md5 livedvd.x86_64-1.2.10.xenconfig
To activate your image, enter:
xm create -c livedvd.x86_64-1.2.10.xenconfig
| Tip |
| For more information about Xen configuration, see your product guides and http://en.opensuse.org/Installing_Xen3. |
With the YaST Product Creator you can create a virtual boot disk image for the virtualization systems QEMU or VMware.
To create a virtual disk boot image, select Create Image with KIWI+Virtual Disk Image in the main menu. The virtual disk creation has same configuration dialog as described in . Change the image configuration are saved in the directory /usr/share/kiwi/image/kwvmx-YaST-name_of_your_project_configuration and used for your next virtual disk boot image.
To start creation, click Create Virtual Disk Image. To confirm creation, click Yes. The virtual disk *.vmdk, where * is a project name, is stored in the directory configured in the product configuration selected for the virtual image creation. You can use the resulting image for both QEMU and VMware.
| Tip |
To start your virtual boot disk image in QEMU, enter:
qemu *.vmdk in the directory with the image
|
Find more information about creating system images and related topics in the following documents:
© 2009 Novell, Inc. All Rights Reserved.