diff --git a/data/yam/autoyast/create_hdd_textmode_xen_hvm.xml b/data/yam/autoyast/create_hdd_textmode_xen_hvm.xml new file mode 100644 index 000000000000..d6f1c0a634aa --- /dev/null +++ b/data/yam/autoyast/create_hdd_textmode_xen_hvm.xml @@ -0,0 +1,325 @@ + + + + + + auto + auto + false + false + true + gfxterm + 30 + false + true + vga=gfx-1024x768x16 + + grub2 + + + public + true + off + true + + + For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted. + + eth0 + + false + public + + + + dhcpv6-client + + Public + default + + + + + + false + + + + + 100 + users + + + + + + + AUTO + + + true + prg2e-d74 + auto + + + + dhcp + eth0 + auto + public + + + true + true + false + + + eth0 + ATTR{address} + 00:16:3e:ea:05:7c + + + + false + false + + + + auto + + +
2.suse.pool.ntp.org
+ true + false +
+
+ manual +
+ + + /dev/xvdb + gpt + true + + + true + false + 263 + 1 + false + 8388608 + + + true + true + btrfs + true + / + uuid + 131 + 2 + true + false + 40791703552 + + + false + var + + + true + usr/local + + + true + tmp + + + true + srv + + + true + root + + + true + opt + + + true + home + + + true + boot/grub2/x86_64-efi + + + true + boot/grub2/i386-pc + + + @ + + + true + swap + true + swap + uuid + 130 + 3 + false + 2148515328 + + + CT_DISK + all + + + + false + + + multi-user + + + firewalld + wickedd-auto4 + wickedd-dhcp4 + wickedd-dhcp6 + wickedd-nanny + kdump + kdump-early + kdump-notify + wicked + sshd + systemd-remount-fs + + + + + true + + + xen-tools-domU + wicked + snapper + sle-module-server-applications-release + sle-module-python3-release + sle-module-basesystem-release + openssh + numactl + kexec-tools + kdump + irqbalance + grub2 + glibc + firewalld + e2fsprogs + btrfsprogs + autoyast2 + + + apparmor + base + basic_desktop + enhanced_base + minimal_base + x11 + x11_yast + yast2_basis + + + SLES + + + + false + false + + + + + {{ARCH}} + sle-module-python3 + + nil + {{VERSION}} + + + {{ARCH}} + sle-module-server-applications + + nil + {{VERSION}} + + + {{ARCH}} + sle-module-basesystem + + nil + {{VERSION}} + + + true + + false + {{SCC_REGCODE}} + {{SCC_URL}} + false + + + America/New_York + + + + 100 + /home + -1 + /bin/bash + 022 + + + + + true + bernhard + 100 + /home/bernhard + false + + + + + 99999 + 0 + 7 + + /bin/bash + 1000 + $6$qpIpjatdD34jSUuu$NOrHITODtulUgtPeo4yC2E1w0i3SG0rn6bkmSgleiL5wYERnJvX658hjE0RxTjj226A/5DGMZXe2fZHLTr0.f. + bernhard + + + + true + root + 0 + /root + false + + + + + + + + + /bin/bash + 0 + $6$iatorw/Md8iG5Zyo$Xwv8pG4TLcVDSEfOVYvQMlmIQufNHBis72m/vmg5I9mRExkWaJ8Sp4YGVSKoNsET9ScKEX1AQHsHkUr3KpFnR1 + root + + +
diff --git a/tests/autoyast/installation.pm b/tests/autoyast/installation.pm index 11a95e8f395f..bbe9072a1674 100644 --- a/tests/autoyast/installation.pm +++ b/tests/autoyast/installation.pm @@ -37,6 +37,7 @@ use scheduler 'get_test_suite_data'; use autoyast 'test_ayp_url'; use y2_logs_helper qw(upload_autoyast_profile upload_autoyast_schema); use validate_encrypt_utils "validate_encrypted_volume_activation"; +use power_action_utils 'power_action'; my $confirmed_licenses = 0; my $stage = 'stage1'; @@ -127,7 +128,7 @@ sub run { push @needles, 'autoyast-error' unless get_var('AUTOYAST_EXPECT_ERRORS'); # Autoyast reboot automatically without confirmation, usually assert 'bios-boot' that is not existing on zVM # So push a needle to check upcoming reboot on zVM that is a way to indicate the stage done - push @needles, 'autoyast-stage1-reboot-upcoming' if is_s390x || (is_pvm && !is_upgrade); + push @needles, 'autoyast-stage1-reboot-upcoming' if is_s390x || (is_pvm && !is_upgrade) || (check_var('VIRSH_VMM_FAMILY', 'xen') && check_var('VIRSH_VMM_TYPE', 'hvm')); # Similar situation over IPMI backend, we can check against PXE menu push @needles, qw(prague-pxe-menu qa-net-selection) if is_ipmi and !get_var('IPXE'); # Import untrusted certification for SMT @@ -320,6 +321,12 @@ sub run { } } + # For xen, need set hard-disk as the boot device, then reboot and connect to existing VNC. + if (check_var('VIRSH_VMM_FAMILY', 'xen') && check_var('VIRSH_VMM_TYPE', 'hvm')) { + my $svirt = console('svirt'); + $svirt->change_domain_element(os => boot => {dev => 'hd'}); + power_action('reboot', observe => 1, keepconsole => 1, first_reboot => 1); + } # Cannot verify second stage properly on s390x, so reconnect to already installed system if (is_s390x) { reconnect_mgmt_console(timeout => 1400, grub_timeout => 360);