@@ -47,3 +47,13 @@ CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.storage_pool', 'used_iops', 'bigint
4747
4848-- Add reason column for op_ha_work
4949CALL ` cloud` .` IDEMPOTENT_ADD_COLUMN` (' cloud.op_ha_work' , ' reason' , ' varchar(32) DEFAULT NULL COMMENT "Reason for the HA work"' );
50+
51+ -- Support for XCP-ng 8.3.0 and XenServer 8.4 by adding hypervisor capabilities
52+ -- https://docs.xenserver.com/en-us/xenserver/8/system-requirements/configuration-limits.html
53+ -- https://docs.xenserver.com/en-us/citrix-hypervisor/system-requirements/configuration-limits.html
54+ 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 );
55+ 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 );
56+
57+ -- Copy XS 8.2.1 hypervisor guest OS mappings to XS 8.3 and 8.3 mappings to 8.4
58+ 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' ;
59+ 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' ;
0 commit comments