lib/Utils/Backends.pm

Backends

SYNOPSIS

use Utils::Backends It defines various functions that allows to check for different backend or console types. It exports CONSOLES and BACKEND

use_ssh_serial_console

Selects the root-ssh and saves it to SERIALDEV

is_remote_backend

Returns true if the current instance is running as remote backend

has_ttys

Returns true if the current instance is using ttys

has_serial_over_ssh

Returns true if the current instance is using a serial through ssh

is_hyperv

Returns true if the current instance is running as hyperv backend

is_hyperv_in_gui

Returns true if the current instance is running as hyperv gui backend

is_xen_pv

Returns true if the current VM runs in Xen host in paravirtual mode

is_svirt_except_s390x

Returns true if the current instance is running as svirt backend except s390x

is_pvm

Returns true if the current instance is running as PowerVM backend 'spvm' or 'hmc_pvm'

is_ipmi

Returns true if the current instance is running as ipmi backend

is_qemu

Returns true if the current instance is running as qemu backend

is_svirt

Returns true if the current instance is running as svirt backend

is_image_backend

Returns true if the current instance is running on backend with image support

is_backend_s390x

Returns true if the current instance is running on backend with s390x

is_spvm

Returns true if the current instance is running as PowerVM backend 'spvm'

is_pvm_hmc

Returns true if the current instance is running as PowerVM backend 'hmc_pvm'

is_generalhw

Returns true if the current instance is running on backend 'generalhw'

is_ssh_installation

Returns true if ssh is used for the installation. If ssh can be used with enabled X forwarding or in textmode. Textmode is only possible over ssh in case of powerVM, zVM, and zKVM.