feat(xo-web/host-item): display warning for when HVM disabled (#6834)

This commit is contained in:
Mathieu
2023-05-16 12:58:14 +00:00
committed by GitHub
parent 315e5c9289
commit 17cb59b898
3 changed files with 13 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Proxy] Make proxy address editable (PR [#6816](https://github.com/vatesfr/xen-orchestra/pull/6816))
- [Home/Host] Displays a warning for hosts with HVM disabled [#6823](https://github.com/vatesfr/xen-orchestra/issues/6823) (PR [#6834](https://github.com/vatesfr/xen-orchestra/pull/6834))
### Bug fixes

View File

@@ -917,6 +917,7 @@ const messages = {
// ----- Host item ------
host: 'Host',
hostHvmDisabled: 'Hardware-assisted virtualization is not enabled on this host',
hostNoLicensePartialProSupport:
'This host does not have an active license, even though it is in a pool with licensed hosts. In order for XCP-ng Pro Support to be enabled on a pool, all hosts within the pool must have an active license',
hostNoSupport: 'No XCP-ng Pro Support enabled on this host',

View File

@@ -177,6 +177,17 @@ export default class HostItem extends Component {
),
})
}
if (!host.hvmCapable) {
alerts.push({
level: 'warning',
render: (
<span>
<Icon icon='alarm' /> {_('hostHvmDisabled')}
</span>
),
})
}
return alerts
}
)