Bug 1655862 - Option to include username or custom settings in the blueprint
Summary: Option to include username or custom settings in the blueprint
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-composer
Version: 8.1
Hardware: x86_64
OS: Linux
Target Milestone: rc
: 8.1
Assignee: Martin Pitt
QA Contact: Release Test Team
Eliane Ramos Pereira
Depends On:
TreeView+ depends on / blocked
Reported: 2018-12-04 06:19 UTC by Ranjith Rajaram
Modified: 2020-11-14 12:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-11-05 20:43:35 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:3333 0 None None None 2019-11-05 20:43:38 UTC

Description Ranjith Rajaram 2018-12-04 06:19:55 UTC
Description of problem:

As per RHEL8 documentation [1], we prefer composer-gui over cli. When using composer-gui, qcow2 image creation is successful. VM boots successfully using the custom image but unfortunately no detail in documentation or an option in the composer-gui to include a username or add any custom settings.

Adding an option directly in qcow2.ks( /usr/share/lorax/composer/qcow2.ks) is reflected but this will affect all the builds

Example output

composer-cli blueprints show podman
name = "podman"
description = "demo test"
version = "0.0.2"
modules = []
groups = []

name = "podman"
version = ""

As per the uptream doc, user's can be included in the blueprint

currently composer-gui only allows to select packages and build images. We need options to customize blueprints to include additional information

Version-Release number of selected component (if applicable):
[root@localhost ~]# 

How reproducible:

Steps to Reproduce:
1. Attempt to create a blueprint and to add a user

Actual results:

If you are creating a qcow2 image via composer-gui, there are no option to mention the custom username or configure sudo access for the user. Resulting qcow2 image cannot be used.

Expected results:

Option to include custom information like username, partition etc

Additional info:

[1] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8-beta/html/installing_and_deploying_rhel/building-custom-system-images-with-composer_graphical-installation

Comment 1 Ranjith Rajaram 2018-12-04 08:49:28 UTC
It seems to be possible from command line. Below worked. 


name = "admin"
description = "Administrator account"
password = "redhat"

to an blueprint file and use the below command

Example blueprint

name = "rhel8testcustomusername"
description = "test qcow2"
version = "0.0.2"
modules = []
groups = []

name = "findutils"
version = "4.6.0"

name = "admin"
description = "Administrator account"
password = "redhat"

Execute the command

composer-cli blueprints push /root/blueprint.toml

USe this blueprint to create custom images. 

final-kickstart.ks file will have

user --name admin --plaintext --password "redhat" --gecos "Administrator account"

You can now login to the VM created using the blueprint.

Comment 2 Ranjith Rajaram 2018-12-04 08:55:24 UTC
Allowing images created via composer api server to be further customized using cloud-init would be a good thing. 

Is there any documentation in this regard ?

Comment 3 Martin Pitt 2019-04-01 12:47:04 UTC
This landed in upstream release 0.2.0.

Comment 5 Xiaofeng Wang 2019-06-07 13:18:12 UTC
Verified on cockpit-composer-1-1.el8

Comment 7 errata-xmlrpc 2019-11-05 20:43:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.