@@ -54,6 +54,59 @@ CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.storage_pool', 'used_iops', 'bigint
5454-- Add reason column for op_ha_work
5555CALL ` cloud` .` IDEMPOTENT_ADD_COLUMN` (' cloud.op_ha_work' , ' reason' , ' varchar(32) DEFAULT NULL COMMENT "Reason for the HA work"' );
5656
57+ -- Support for XCP-ng 8.3.0 and XenServer 8.4 by adding hypervisor capabilities
58+ -- https://docs.xenserver.com/en-us/xenserver/8/system-requirements/configuration-limits.html
59+ -- https://docs.xenserver.com/en-us/citrix-hypervisor/system-requirements/configuration-limits.html
60+ INSERT IGNORE INTO ` cloud` .` hypervisor_capabilities` (uuid, hypervisor_type, hypervisor_version, max_guests_limit, max_data_volumes_limit, max_hosts_per_cluster, storage_motion_supported) VALUES (UUID(), ' XenServer' , ' 8.3.0' , 1000 , 254 , 64 , 1 );
61+ INSERT IGNORE INTO ` cloud` .` hypervisor_capabilities` (uuid, hypervisor_type, hypervisor_version, max_guests_limit, max_data_volumes_limit, max_hosts_per_cluster, storage_motion_supported) VALUES (UUID(), ' XenServer' , ' 8.4.0' , 1000 , 240 , 64 , 1 );
62+
63+ -- Add missing and new Guest OS mappings
64+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (2 , ' Debian GNU/Linux 10 (64-bit)' , ' XenServer' , ' 8.2.1' , ' Debian Buster 10' );
65+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (5 , ' SUSE Linux Enterprise Server 15 (64-bit)' , ' XenServer' , ' 8.2.1' , ' SUSE Linux Enterprise 15 (64-bit)' );
66+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6 , ' Windows Server 2022 (64-bit)' , ' XenServer' , ' 8.2.1' , ' Windows Server 2022 (64-bit)' );
67+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6 , ' Windows 11 (64-bit)' , ' XenServer' , ' 8.2.1' , ' Windows 11' );
68+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (10 , ' Ubuntu 20.04 LTS' , ' XenServer' , ' 8.2.1' , ' Ubuntu Focal Fossa 20.04' );
69+
70+ -- Copy XS 8.2.1 hypervisor guest OS mappings to XS 8.3 and 8.3 mappings to 8.4
71+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) SELECT UUID(),' Xenserver' , ' 8.3.0' , guest_os_name, guest_os_id, utc_timestamp(), 0 FROM ` cloud` .` guest_os_hypervisor` WHERE hypervisor_type= ' Xenserver' AND hypervisor_version= ' 8.2.1' ;
72+
73+ -- Add new and missing guest os mappings for XS 8.3
74+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (1 , ' Rocky Linux 9' , ' XenServer' , ' 8.3.0' , ' Rocky Linux 9' );
75+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (1 , ' Rocky Linux 8' , ' XenServer' , ' 8.3.0' , ' Rocky Linux 8' );
76+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (1 , ' AlmaLinux 9' , ' XenServer' , ' 8.3.0' , ' AlmaLinux 9' );
77+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (1 , ' AlmaLinux 8' , ' XenServer' , ' 8.3.0' , ' AlmaLinux 8' );
78+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (2 , ' Debian GNU/Linux 12 (64-bit)' , ' XenServer' , ' 8.3.0' , ' Debian Bookworm 12' );
79+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (3 , ' Oracle Linux 9' , ' XenServer' , ' 8.3.0' , ' Oracle Linux 9' );
80+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (3 , ' Oracle Linux 8' , ' XenServer' , ' 8.3.0' , ' Oracle Linux 8' );
81+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (4 , ' Red Hat Enterprise Linux 8.0' , ' XenServer' , ' 8.3.0' , ' Red Hat Enterprise Linux 8' );
82+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (4 , ' Red Hat Enterprise Linux 9.0' , ' XenServer' , ' 8.3.0' , ' Red Hat Enterprise Linux 9' );
83+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (10 , ' Ubuntu 22.04 LTS' , ' XenServer' , ' 8.3.0' , ' Ubuntu Jammy Jellyfish 22.04' );
84+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (5 , ' SUSE Linux Enterprise Server 12 SP5 (64-bit)' , ' XenServer' , ' 8.3.0' , ' SUSE Linux Enterprise Server 12 SP5 (64-bit' );
85+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (4 , ' NeoKylin Linux Server 7' , ' XenServer' , ' 8.3.0' , ' NeoKylin Linux Server 7' );
86+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (1 , ' CentOS Stream 9' , ' XenServer' , ' 8.3.0' , ' CentOS Stream 9' );
87+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (4 , ' Scientific Linux 7' , ' XenServer' , ' 8.3.0' , ' Scientific Linux 7' );
88+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (7 , ' Generic Linux UEFI' , ' XenServer' , ' 8.3.0' , ' Generic Linux UEFI' );
89+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (7 , ' Generic Linux BIOS' , ' XenServer' , ' 8.3.0' , ' Generic Linux BIOS' );
90+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (2 , ' Gooroom Platform 2.0' , ' XenServer' , ' 8.3.0' , ' Gooroom Platform 2.0' );
91+
92+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) SELECT UUID(),' Xenserver' , ' 8.4.0' , guest_os_name, guest_os_id, utc_timestamp(), 0 FROM ` cloud` .` guest_os_hypervisor` WHERE hypervisor_type= ' Xenserver' AND hypervisor_version= ' 8.3.0' ;
93+
94+ -- Add new guest os mappings for XS 8.4 and KVM
95+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6 , ' Windows Server 2025' , ' XenServer' , ' 8.4.0' , ' Windows Server 2025' );
96+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (10 , ' Ubuntu 24.04 LTS' , ' XenServer' , ' 8.4.0' , ' Ubuntu Noble Numbat 24.04' );
97+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (2 , ' Debian GNU/Linux 10 (64-bit)' , ' KVM' , ' default' , ' Debian GNU/Linux 10 (64-bit)' );
98+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (2 , ' Debian GNU/Linux 11 (64-bit)' , ' KVM' , ' default' , ' Debian GNU/Linux 11 (64-bit)' );
99+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (2 , ' Debian GNU/Linux 12 (64-bit)' , ' KVM' , ' default' , ' Debian GNU/Linux 12 (64-bit)' );
100+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6 , ' Windows 11 (64-bit)' , ' KVM' , ' default' , ' Windows 11' );
101+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (6 , ' Windows Server 2025' , ' KVM' , ' default' , ' Windows Server 2025' );
102+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (10 , ' Ubuntu 24.04 LTS' , ' KVM' , ' default' , ' Ubuntu 24.04 LTS' );
103+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (1 , ' CentOS Stream 10 (preview)' , ' XenServer' , ' 8.4.0' , ' CentOS Stream 10 (preview)' );
104+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (1 , ' CentOS Stream 9' , ' XenServer' , ' 8.4.0' , ' CentOS Stream 9' );
105+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (4 , ' Scientific Linux 7' , ' XenServer' , ' 8.4.0' , ' Scientific Linux 7' );
106+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (4 , ' NeoKylin Linux Server 7' , ' XenServer' , ' 8.4.0' , ' NeoKylin Linux Server 7' );
107+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (5 , ' SUSE Linux Enterprise Server 12 SP5 (64-bit)' , ' XenServer' , ' 8.4.0' , ' SUSE Linux Enterprise Server 12 SP5 (64-bit' );
108+ CALL ADD_GUEST_OS_AND_HYPERVISOR_MAPPING (2 , ' Gooroom Platform 2.0' , ' XenServer' , ' 8.4.0' , ' Gooroom Platform 2.0' );
109+
57110-- Grant access to 2FA APIs for the "Read-Only User - Default" role
58111
59112CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Read-Only User - Default' , ' setupUserTwoFactorAuthentication' , ' ALLOW' );
0 commit comments