1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00

feat(bootstrap): an openEuler 24.03 LTS host is set up as a compute

The compute bootstrap found openEuler but had no install function for
it, so it stopped. Now it installs qemu, libvirt, python3-libguestfs
and cyrus-sasl (openEuler's names; it has no EPEL), applies the RHEL
family's qemu.conf, SASL and gstfsd steps, and runs the monolithic
libvirtd with its TCP socket: openEuler 24.03 ships modular daemons
only for qemu and the proxy.

Tested in an openEuler 24.03 container with /dev/kvm: the full live
suite over TCP (SASL) ran 2145 tests. What failed is libvirt 9.10's
(reverting a running VM's external snapshot, live clone needs 11.10),
the test host's (no pool named default), and its SeaBIOS, which
prints no banner on the serial port.
This commit is contained in:
catborise 2026-11-03 14:45:45 +03:00
parent d00e24f46d
commit 9bd61858cd
2 changed files with 32 additions and 2 deletions

View file

@ -503,6 +503,36 @@ daemons_running_centos() {
#
##############################################################################
##############################################################################
#
# openEuler Install Functions
#
# qemu is openEuler's qemu-kvm, cyrus-sasl holds the DIGEST-MD5 mechanism
install_openeuler() {
dnf -y install qemu libvirt python3-libguestfs cyrus-sasl || return 1
return 0
}
# the same files as the RHEL family: VNC listen address, SASL, gstfsd
install_openeuler_post() {
install_centos_post
}
# openEuler 24.03 ships modular daemons only for qemu and the proxy, so the
# monolithic libvirtd serves all drivers, with its TCP socket for SASL logins
daemons_running_openeuler() {
systemctl enable --now libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd-tcp.socket || return 1
systemctl restart libvirtd.service || return 1
if [ -f /usr/lib/systemd/system/libvirt-guests.service ]; then
systemctl enable --now libvirt-guests.service
fi
return 0
}
#
# Ended openEuler Install Functions
#
##############################################################################
##############################################################################
#
# Fedora Install Functions