mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-24 20:25:50 +03:00
[PR #360] [MERGED] feat: Add VM/LXC cloning functionality #384
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#384
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/360
Author: @michelroegl-brunner
Created: 11/29/2025
Status: ✅ Merged
Merged: 11/29/2025
Merged by: @michelroegl-brunner
Base:
main← Head:feat/clone_lxc_vm📝 Commits (1)
dd17d2cfeat: Add VM/LXC cloning functionality📊 Changes
10 files changed (+1462 additions, -50 deletions)
View changed files
📝
server.js(+424 -2)➕
src/app/_components/CloneCountInputModal.tsx(+129 -0)📝
src/app/_components/InstalledScriptsTab.tsx(+275 -14)📝
src/app/_components/ScriptInstallationCard.tsx(+12 -1)📝
src/app/_components/StorageSelectionModal.tsx(+20 -10)📝
src/app/_components/Terminal.tsx(+40 -11)📝
src/server/api/routers/installedScripts.ts(+562 -9)📝
src/server/services/backupService.ts(+0 -1)📝
src/server/services/githubJsonService.ts(+0 -1)📝
src/server/services/storageService.ts(+0 -1)📄 Description
Overview
This PR adds comprehensive VM/LXC cloning functionality to the application.
Features
Changes
CloneCountInputModalcomponent for specifying clone countInstalledScriptsTabwith clone handlers and state managementScriptInstallationCardStorageSelectionModalto support clone storage selectionTerminalcomponentstartSSHCloneExecutionin server.js with sequential ID retrievalgetClusterNextId- Get single next available IDgetContainerType- Determine if container is VM or LXCgetCloneStorages- Get storages suitable for cloning (rootdir only)generateCloneHostnames- Generate unique hostnames for clonesexecuteClone- Execute clone operationaddClonedContainerToDatabase- Add cloned container to databaseTechnical Details
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.