os-autoinst-distri-opensuse icon indicating copy to clipboard operation
os-autoinst-distri-opensuse copied to clipboard

Install SLES 16.0 Minimal VM as guest on SLES 16.0 system

Open waynechen55 opened this issue 3 weeks ago • 4 comments

  • 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 in lib/utils.pm to determine whether system reboot is needed after changes being made. It uses setting NEEDS_REBOOTING or returned code of zypper needs-rebooting to judge whether reboot is really needed.

  • New subroutine install_extra_packages in lib/utils.pm to wrap up already existing similar functionality in multiple modules, for example, tests/virt_autotest/prepare_non_transactional_server.pm and tests/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## in data/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 in data/virt_autotest/virt_logs_collector.sh and data/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:

waynechen55 avatar Feb 07 '25 10:02 waynechen55