Skip to content

Commit 7151ec6

Browse files
committed
CLOUDSTACK-5311: Fix the host version reported by the hyper-v agent. Also updated the hypervisor
capabilities for hyper-v.
1 parent 9992a6a commit 7151ec6

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/HypervResourceController.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,7 @@ public JContainer StartupCommand([FromBody]dynamic cmdArray)
16521652
strtRouteCmd.storageNetmask = subnet;
16531653
strtRouteCmd.storageMacAddress = storageNic.GetPhysicalAddress().ToString();
16541654
strtRouteCmd.gatewayIpAddress = storageNic.GetPhysicalAddress().ToString();
1655+
strtRouteCmd.hypervisorVersion = System.Environment.OSVersion.Version.ToString();
16551656
strtRouteCmd.caps = "hvm";
16561657

16571658
// Detect CPUs, speed, memory

‎setup/db/db/schema-421to430.sql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ CREATE TABLE `cloud`.`network_acl_item_details` (
828828
ALTER TABLE `cloud`.`alert` ADD COLUMN `name` varchar(255) DEFAULT NULL COMMENT 'name of the alert';
829829

830830
UPDATE `cloud`.`hypervisor_capabilities` SET `max_data_volumes_limit`=13 WHERE `hypervisor_type`='Vmware';
831+
INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, hypervisor_version, max_guests_limit, security_group_enabled, max_data_volumes_limit, storage_motion_supported) VALUES (UUID(), 'Hyperv', '6.3', 1024, 0, 64, 0);
831832

832833
CREATE TABLE `cloud`.`s2s_vpn_gateway_details` (
833834
`id` bigint unsigned NOT NULL auto_increment,

0 commit comments

Comments
 (0)