{{ t('Edit hardware') }}
@if (isLoading && !hardware) { } @if (hardware; as hw) {
{{ t('CPU & Memory') }}
@if (virtType() === ProxmoxVirtType.Qemu) { }
{{ t('Total vCPUs') }}: {{ maxVCpus }} @if (hw.limits && hw.limits.maxCpus) { / {{ hw.limits.maxCpus }} {{ t('available on node') }} }
MiB
@if (form.memory > 0) { = {{ form.memory * 1024 * 1024 | byteToHuman }} } @else { {{ t('invalid') }} }
@for (gib of [1, 2, 4, 8, 16, 32]; track gib) { }
@if (virtType() === ProxmoxVirtType.Lxc) { MiB }
@if (hasHardwareChanges) {
{{ t('Important note (only required if you also want to resize the disk)') }}
{{ t('If you have modified the CPU, RAM, or other hardware settings, please save those changes first.') }}
@if (isLiveChangePossible) { {{ t('The changes will be applied immediately.') }} } @else {
{{ t('The following changes can not be applied at runtime. They will be stored as pending changes and applied after the next restart:') }}
    @for (field of restartRequiredFor; track field) {
  • @switch (field) { @case ('cores') { {{ t('Cores') }} - {{ t('The CPU topology can only be changed by a restart.') }} } @case ('sockets') { {{ t('Sockets') }} - {{ t('The CPU topology can only be changed by a restart.') }} } @case ('memory') { {{ t('Memory') }} - {{ t('Memory hotplug requires "memory" hotplug and NUMA to be enabled.') }} } }
  • }
} }

{{ t('Resize disk') }}
@if (hw.disks.length === 0) {
{{ t('No resizable disks found.') }}
} @else { + GiB @if (selectedDiskSize !== undefined && diskForm.increaseGiB > 0) {
{{ selectedDiskSize | byteToHuman }} {{ selectedDiskSize + diskForm.increaseGiB * 1024 * 1024 * 1024 | byteToHuman }}
{{ availableStorageSpaceOfDisk | byteToHuman }} {{ t('available on storage') }}
}
{{ t('Disks can only be enlarged. Shrinking a disk is not possible!') }}
{{ t('The partition and file system inside the guest operating system must be extended manually.') }}
@if (!isResizeConfirmPending) {
} @else {
{{ t('Are you sure you want to resize the disk?') }}
{{ diskForm.disk }} @if (selectedDiskSize !== undefined) { : {{ selectedDiskSize | byteToHuman }} {{ selectedDiskSize + diskForm.increaseGiB * 1024 * 1024 * 1024 | byteToHuman }} } (+{{ diskForm.increaseGiB }} GiB)
{{ t('Disks can not be shrunk! This action can not be undone.') }}
} } }