Attaching One Proxmox VM Disk to Another VM
Attaching One Proxmox VM Disk to Another VM
Important Concepts (Read First)
1. A disk can only be attached to one running VM at a time
2. Disk types in Proxmox
Storage
Disk Type
Example Location
Scenario 1: Attach an LVM-thin Disk (local-lvm) to Another VM (Recommended)
local-lvm) to Another VM (Recommended)Example
GUI Method (Web Interface)
Step 1: Shut down both VMs
Step 2: Detach disk from VM 100
Step 3: Attach disk to VM 200
Step 4: Start VM 200 and mount the disk
CLI Method (Faster & Scriptable)
Step 1: Shut down both VMs
Step 2: Detach disk from VM 100
Step 3: Attach disk to VM 200
Step 4: Start VM 200
Scenario 2: Attach a File-Based Disk (local, qcow2/raw)
local, qcow2/raw)GUI Method
CLI Method
Scenario 3: Copy the Disk Instead of Moving It (Safer)
Clone an LVM-thin disk
Copy a qcow2 disk
Common Problems & Solutions
Problem
Cause
Fix
Best Practices
Summary
PreviousMigrate and attach existing disk of a VM to another VM on remote machineNextWeb Servers and WAFs
Last updated