feat(xo-web/host-item): display warning for when HVM disabled (#6834)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user