feat(instances): add VM/LXC migration, autostart/boot order, protection
All checks were successful
Backend Tests / pytest (Python 3.12) (push) Successful in 52s
Deploy to Production / Trigger production update (push) Successful in 7s

- Migrate VMs/LXCs between cluster nodes with live progress tracking
- Configure autostart, boot order, startup/shutdown delays, and delete protection from the instance settings tab
- Group OS templates by detected OS (Ubuntu, AlmaLinux, etc.) instead of a single "Cloud Images" bucket
- Expand native Proxmox backup job management (schedule, compression, retention, guest selection, notifications)
- Add ru/en translations for the above
This commit is contained in:
markmorado
2026-07-03 02:40:58 +05:00
parent e8bce3e8ae
commit c12fbf13e5
30 changed files with 1411 additions and 111 deletions

View File

@@ -50,6 +50,7 @@ export default function DownloadImageDialog({ open, onClose, serverId, node, ima
const [storage, setStorage] = useState(''); // download storage (import / vztmpl)
const [toTemplate, setToTemplate] = useState(true);
const [diskStorage, setDiskStorage] = useState(''); // VM disk storage (images)
const [vmid, setVmid] = useState<string>(''); // желаемый VMID шаблона (пусто = авто)
const [cores, setCores] = useState(2);
const [memory, setMemory] = useState(2048);
const [bridge, setBridge] = useState('vmbr0');
@@ -77,6 +78,7 @@ export default function DownloadImageDialog({ open, onClose, serverId, node, ima
if (open) {
setStorage(storages.length === 1 ? storages[0].storage : '');
setToTemplate(true);
setVmid('');
}
}, [open, storages]);
@@ -100,6 +102,7 @@ export default function DownloadImageDialog({ open, onClose, serverId, node, ima
kind: image.kind,
template: image.source_id ? undefined : image.template || undefined,
to_template: makeTemplate,
vmid: makeTemplate && vmid.trim() ? Number(vmid) : undefined,
disk_storage: makeTemplate ? diskStorage : undefined,
cores: makeTemplate ? cores : undefined,
memory: makeTemplate ? memory : undefined,
@@ -193,6 +196,11 @@ export default function DownloadImageDialog({ open, onClose, serverId, node, ima
</p>
)}
</div>
<div>
<Label htmlFor="img-vmid">VMID шаблона (пусто = авто)</Label>
<Input id="img-vmid" type="number" min={100} placeholder="напр. 9001"
value={vmid} onChange={(e) => setVmid(e.target.value)} />
</div>
<div className="grid grid-cols-3 gap-3">
<div>
<Label htmlFor="img-cores">Ядра</Label>