import { Steps } from "@/components/ui/steps" import CopyableCode from "@/components/CopyableCode" export const metadata = { title: "Import Disk Image to a VM | ProxMenux Documentation", description: "Step-by-step guide to import a disk image into a virtual machine in Proxmox VE using ProxMenux.", } export default function ImportDiskImageVM() { return (

Import Disk Image to a VM

This guide explains how to import a disk image into a virtual machine (VM) in Proxmox VE using ProxMenux. The script simplifies the process by scanning for available disk images and allowing users to attach them to VMs without manual configuration.

Overview

The script automates the following steps:

  1. Scans for disk images (.img, .qcow2, .vmdk) in /var/lib/vz/template/images/.
  2. Displays a list of available virtual machines (VMs) for selection.
  3. Allows users to choose one or multiple disk images for import.
  4. Provides storage volume options for placing the imported disk.
  5. Offers an interface choice (SATA, SCSI, VirtIO, or IDE) for each imported disk.
  6. Imports and attaches the selected disk images to the chosen VM.

Implementation Steps

Ensure that the disk images you want to import are placed in /var/lib/vz/template/images/.

Select the VM where the disk image(s) will be imported.

Choose the Proxmox storage volume where the imported disk(s) will be placed.

Select one or more disk images to import from the list of detected compatible images.

For each selected image:

  • Choose the interface type (SATA, SCSI, VirtIO, or IDE).
  • Optionally enable SSD emulation (for non-VirtIO interfaces).
  • Decide whether to make the disk bootable.

The script will import each selected disk image and display real-time progress updates.

After the import is complete, the script attaches the disks to the VM and applies the selected settings.

Expected Results

Important Considerations

) }