@@ -460,3 +460,32 @@ CREATE TABLE `cloud`.`nic_extra_dhcp_options` (
460460 PRIMARY KEY (` id` ),
461461 CONSTRAINT ` fk_nic_extra_dhcp_options_nic_id` FOREIGN KEY (` nic_id` ) REFERENCES ` nics` (` id` ) ON DELETE CASCADE
462462) ENGINE= InnoDB DEFAULT CHARSET= utf8;
463+
464+ -- Add new OS versions
465+
466+ -- Add XenServer 7.1 and 7.2 hypervisor capabilities
467+
468+ INSERT IGNORE INTO ` cloud` .` hypervisor_capabilities` (uuid, hypervisor_type, hypervisor_version, max_guests_limit, max_data_volumes_limit, storage_motion_supported) values (UUID(), ' XenServer' , ' 7.1.0' , 500 , 13 , 1 );
469+ INSERT IGNORE INTO ` cloud` .` hypervisor_capabilities` (uuid, hypervisor_type, hypervisor_version, max_guests_limit, max_data_volumes_limit, storage_motion_supported) values (UUID(), ' XenServer' , ' 7.2.0' , 500 , 13 , 1 );
470+
471+ -- Add XenServer 7.0 support for windows 10
472+
473+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.0.0' , ' Windows 10 (64-bit)' , 258 , now(), 0 );
474+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.0.0' , ' Windows 10 (32-bit)' , 257 , now(), 0 );
475+
476+ -- Add XenServer 7.1 hypervisor guest OS mappings (copy 7.0.0)
477+
478+ 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' , ' 7.1.0' , guest_os_name, guest_os_id, utc_timestamp(), 0 FROM ` cloud` .` guest_os_hypervisor` WHERE hypervisor_type= ' Xenserver' AND hypervisor_version= ' 7.0.0' ;
479+
480+ -- Add XenServer 7.1 hypervisor guest OS (see https://docs.citrix.com/content/dam/docs/en-us/xenserver/7-1/downloads/xenserver-7-1-release-notes.pdf)
481+
482+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.1.0' , ' Windows Server 2016 (64-bit)' , 259 , now(), 0 );
483+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.1.0' , ' SUSE Linux Enterprise Server 11 SP4' , 187 , now(), 0 );
484+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.1.0' , ' Red Hat Enterprise Linux 6 (64-bit)' , 240 , now(), 0 );
485+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.1.0' , ' Red Hat Enterprise Linux 7' , 245 , now(), 0 );
486+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.1.0' , ' Oracle Enterprise Linux 6 (64-bit)' , 251 , now(), 0 );
487+ INSERT IGNORE INTO ` cloud` .` guest_os_hypervisor` (uuid, hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(), ' Xenserver' , ' 7.1.0' , ' Oracle Linux 7' , 247 , now(), 0 );
488+
489+ -- Add XenServer 7.2 hypervisor guest OS mappings (copy 7.1.0 & remove Windows Vista, Windows XP, Windows 2003, CentOS 4.x, RHEL 4.xS, LES 10 (all versions) as per XenServer 7.2 Release Notes)
490+
491+ 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' , ' 7.2.0' , guest_os_name, guest_os_id, utc_timestamp(), 0 FROM ` cloud` .` guest_os_hypervisor` WHERE hypervisor_type= ' Xenserver' AND hypervisor_version= ' 7.1.0' AND guest_os_id not in (1 ,2 ,3 ,4 ,56 ,101 ,56 ,58 ,93 ,94 ,50 ,51 ,87 ,88 ,89 ,90 ,91 ,92 ,26 ,27 ,28 ,29 ,40 ,41 ,42 ,43 ,44 ,45 ,96 ,97 ,107 ,108 ,109 ,110 ,151 ,152 ,153 );
0 commit comments