os-autoinst-distri-opensuse
os-autoinst-distri-opensuse copied to clipboard
Install SLES 16.0 Minimal VM as guest on SLES 16.0 system
-
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 settingNEEDS_REBOOTING
or returned code ofzypper needs-rebooting
to judge whether reboot is really needed. -
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
. -
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. -
Use
##Authorized-Keys##
and##FQDN##
indata/virt_autotest/guest_unattended_installation_files/combustion_script_all_round
. -
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.
-
Exclude
127.0.0.0/8
subnet from being scanned indata/virt_autotest/virt_logs_collector.sh
anddata/virt_autotest/fetch_logs_from_guest.sh
. -
Add logs saving in emergency shell when guest fails to boot up and enters into emergency mode.
-
Verification Runs:
- sle micro on sle micro
- sles on sle micro
- uefi sles15sp7 on sles12sp5 kvm
- uefi sles15sp7 on sles12sp5 xen
- uefi sles12sp5 on sles15sp7 xen
- sles 16 Minimal VM on sles 16 with metal firstboot provision
- sles 16 Minimal VM on sles 16 with qemu firstboot provision
- sles 16 Minimal VM fails to boot up
- sles15sp7 on sles15sp7 xen
- sles15sp7 on sles15sp6 kvm