diff --git a/web/app/docs/storage/disk-passthrough-vm/page.tsx b/web/app/docs/storage/disk-passthrough-vm/page.tsx index fb377f4..8aa3b47 100644 --- a/web/app/docs/storage/disk-passthrough-vm/page.tsx +++ b/web/app/docs/storage/disk-passthrough-vm/page.tsx @@ -2,65 +2,75 @@ import { Steps } from "@/components/ui/steps" import CopyableCode from "@/components/CopyableCode" export const metadata = { - title: "Disk Passthrough to a VM | ProxMenux Documentation", - description: "Step-by-step guide to configure disk passthrough to a virtual machine in Proxmox VE using ProxMenux.", + 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 DiskPassthroughVM() { +export default function ImportDiskImageVM() { return (
-

Disk Passthrough to a VM

+

Import Disk Image to a VM

- This guide explains how to assign physical disks to virtual machines (VMs) in Proxmox VE using ProxMenux. - Disk passthrough allows a VM to have direct access to a physical disk, providing improved performance and compatibility for certain applications. + 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. Lists available physical disks on the Proxmox host, excluding the system disk.
  2. +
  3. Scans for disk images (.img, .qcow2, .vmdk) in /var/lib/vz/template/images/.
  4. Displays a list of available virtual machines (VMs) for selection.
  5. -
  6. Allows the user to select multiple disks to assign to a VM.
  7. -
  8. Ensures selected disks are not already in use by another VM.
  9. -
  10. Configures the selected disks for passthrough to the chosen VM.
  11. +
  12. Allows users to choose one or multiple disk images for import.
  13. +
  14. Provides storage volume options for placing the imported disk.
  15. +
  16. Offers an interface choice (SATA, SCSI, VirtIO, or IDE) for each imported disk.
  17. +
  18. Imports and attaches the selected disk images to the chosen VM.

Implementation Steps

- - Disk Selection Menu -

The script scans the system and displays a list of available physical disks, excluding the system disk.

+ +

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

-

The user selects the virtual machine (VM) to which the disk(s) will be assigned.

+

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

- -

The script performs the following actions:

+ +

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:

    -
  • Ensures the selected disk is not in use by another VM.
  • -
  • Provides an interface choice (SATA, SCSI, VirtIO, or IDE).
  • -
  • Automatically configures the disk passthrough and assigns it to the VM.
  • +
  • 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 verifies the operation and confirms the successful disk passthrough.

+ +

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

diff --git a/web/public/disk/disk-assigment.png b/web/public/disk/disk-assigment.png new file mode 100644 index 0000000..9bf015c Binary files /dev/null and b/web/public/disk/disk-assigment.png differ