|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * virt/virtual_machines/virtual_disks/virt-creating-and-using-boot-sources.adoc |
| 4 | + |
| 5 | +[id="virt-creating-a-custom-disk-image-boot-source-web_{context}"] |
| 6 | += Creating a custom boot source |
| 7 | + |
| 8 | +You can prepare a custom disk image, based on an existing disk image, for use as a boot source. |
| 9 | + |
| 10 | +Use this procedure to complete the following tasks: |
| 11 | + |
| 12 | +* Preparing a custom disk image |
| 13 | +* Creating a boot source from the custom disk image |
| 14 | +* Attaching the boot source to a custom template |
| 15 | + |
| 16 | +.Procedure |
| 17 | +. In the {VirtProductName} console, click *Workloads* > *Virtualization* from the side menu. |
| 18 | +. Click the *Templates* tab. |
| 19 | +. Click the link in the *Source provider* column for the template you want to customize. A window displays, indicating that the template currently has a *defined* source. |
| 20 | +. In the window, click the *Customize source* link. |
| 21 | +. Click *Continue* in the *About boot source customization* window to proceed with customization after reading the information provided about the boot source customization process. |
| 22 | +. On the *Prepare boot source customization* page, in the *Define new template* section: |
| 23 | +.. Select the *New template namespace* field and then choose a project. |
| 24 | +.. Enter the name of the custom template in the *New template name* field. |
| 25 | +.. Enter the name of the template provider in the *New template provider* field. |
| 26 | +.. Select the *New template support* field and then choose the appropriate value, indicating support contacts for the custom template you create. |
| 27 | +.. Select the *New template flavor* field and then choose the appropriate CPU and memory values for the custom image you create. |
| 28 | +. In the *Prepare boot source for customization* section, customize the `cloud-init` YAML script, if needed, to define login credentials. Otherwise, the script generates default credentials for you. |
| 29 | +. Click *Start Customization*. The customization process begins and the *Preparing boot source customization* page displays, followed by the *Customize boot source* page. The *Customize boot source* page displays the output of the running script. When the script completes, your custom image is available. |
| 30 | +. In the *VNC console*, click *show password* in the *Guest login credentials* section. Your login credentials display. |
| 31 | +. When the image is ready for login, sign in with the *VNC Console* by providing the user name and password displayed in the *Guest login credentials* section. |
| 32 | +. Verify the custom image works as expected. If it does, click *Make this boot source available*. |
| 33 | +. In the *Finish customization and make template available* window, select |
| 34 | +*I have sealed the boot source so it can be used as a template* and then click *Apply*. |
| 35 | +. On the *Finishing boot source customization* page, wait for the template creation process to complete. Click *Navigate to template details* or *Navigate to template list* to view your customized template, created from your custom boot source. |
0 commit comments