Update import-disk-image.sh

This commit is contained in:
MacRimi 2025-02-06 18:34:52 +01:00 committed by GitHub
parent 555e7766b0
commit 01e23e0671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,19 +10,21 @@
# Last Updated: 28/01/2025 # Last Updated: 28/01/2025
# ========================================================== # ==========================================================
# Description: # Description:
# This script automates the process of importing disk images # Description:
# into existing Proxmox virtual machines (VMs). It: # This script automates the process of importing disk images into Proxmox VE virtual machines (VMs),
# - Scans the storage directory for compatible disk images (.img, .qcow2, .vmdk) # making it easy to attach pre-existing disk files without manual configuration.
# - 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
# #
# This script simplifies the process of managing virtual disk # Before running the script, ensure that disk images are available in /var/lib/vz/template/images/.
# imports, making it easier to integrate pre-existing disk images # The script scans this directory for compatible formats (.img, .qcow2, .vmdk) and lists the available files.
# into Proxmox virtual machines without manual configuration. #
# 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 ============================================ # Configuration ============================================