Install SLES 16.0 Minimal VM as guest on SLES 16.0 system #21142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New module
tests/virt_autotest/prepare_non_transactional_server.pm
to perform all necessary or potential operations on non-transactional system before doing actual work like virtual machine installation. These operations may involve extra packages installation, product and extension registration, grub modification and many others.New subroutine
is_reboot_needed
inlib/utils.pm
to determine whether system reboot is needed after changes being made. It uses setting NEEDS_REBOOTING or returned code ofzypper needs-rebooting
to judge whether reboot is really needed.New guest profile
data/virt_autotest/guest_params_xml_files/sles_16_64_kvm_hvm_x86_64_qcow_ignition+combustion.xml
to represent SLES 16.0 Minimal VM for x86_64.New combustion script
data/virt_autotest/guest_unattended_installation_files/combustion_script_all_round
to perform all necessary tasks, including adding user, setting passwords, adding ssh public keys, starting services, doing registration and etc, in order to have a fully up and running system. This is useful especially when ignition does not work very well.Introduce new test suite level setting
UNIFIED_GUEST_BUILDS
for unified guest installation because SLES 16.0 Minimal VM may have different build than agama installer.Update virtualization server patterns for SLES 16.0.
Use
##Authorized-Keys##
and##FQDN##
in combustion_script_all_round.New subroutine
install_extra_packages
inlib/utils.pm
to wrap up already existing similar functionality in multiple modules, for example,tests/virt_autotest/prepare_non_transactional_server.pm
andtests/virt_autotest/prepare_transactional_server.pm
.Verification Runs: