From 01e23e0671563c13ba32a542705d41b896877c74 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:34:52 +0100 Subject: [PATCH] Update import-disk-image.sh --- scripts/import-disk-image.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/scripts/import-disk-image.sh b/scripts/import-disk-image.sh index 3258d64..80aa88e 100644 --- a/scripts/import-disk-image.sh +++ b/scripts/import-disk-image.sh @@ -10,19 +10,21 @@ # Last Updated: 28/01/2025 # ========================================================== # Description: -# This script automates the process of importing disk images -# into existing Proxmox virtual machines (VMs). It: -# - Scans the storage directory for compatible disk images (.img, .qcow2, .vmdk) -# - Allows the user to select a target VM for disk import -# - Lists available Proxmox storage volumes for disk placement -# - Enables users to select one or multiple disk images for import -# - Assigns a suitable disk interface (SATA, SCSI, VirtIO, IDE) -# - Handles SSD emulation and bootable disk configuration (optional) -# - Ensures disks are properly attached to the VM and configured +# Description: +# This script automates the process of importing disk images into Proxmox VE virtual machines (VMs), +# making it easy to attach pre-existing disk files without manual configuration. # -# This script simplifies the process of managing virtual disk -# imports, making it easier to integrate pre-existing disk images -# into Proxmox virtual machines without manual configuration. +# Before running the script, ensure that disk images are available in /var/lib/vz/template/images/. +# The script scans this directory for compatible formats (.img, .qcow2, .vmdk) and lists the available files. +# +# Using an interactive menu, you can: +# - Select a VM to attach the imported disk. +# - Choose one or multiple disk images for import. +# - Pick a storage volume in Proxmox for disk placement. +# - Assign a suitable interface (SATA, SCSI, VirtIO, or IDE). +# - Enable optional settings like SSD emulation or bootable disk configuration. +# +# Once completed, the script ensures the selected images are correctly attached and ready to use. # ========================================================== # Configuration ============================================