Mount existing virtual disk to a VM

showiproute

Renowned Member
Mar 11, 2020
657
45
68
36
Austria
Hello there,

I am currently migrating from ESXI6.7 to Proxmox.

Is there a way to mount an existing VM disk (vmdk or qcow2) to a VM directly?


Attach filesThanks!
 
hi,

you could put the disk in a storage, and then add it to the VM configuration in /etc/pve/qemu-server/VMID.conf
 
Hello Oguz,

thanks for the information.
How would the right syntax look like?

A current virtual disk from a VM would look like
Code:
scsi0: local-lvm:vm-105-disk-0,discard=on,size=16G

As and example my disk would be mounted on my Proxmox host at
Code:
/mnt/vmfs/disk1
 
for example if /mnt/vmfs is set as a storage (configured in your storage settings), and let's say it's called vmfs and you have a qcow2 disk called disk1.qcow2

adding:
Code:
scsi1: vmfs:disk1.qcow2

you might need to rename the qcow2 file to match the format, vm-VMID-disk-ID so f.e. vm-105-disk-1.qcow2

hope it helps
 
Okay and is the storage configuration somehow documentated?
Like in the config file
dir: local path /var/lib/vz content backup,vztmpl,iso

Is it "okay" for Proxmox to edit the storage configuration itself or should that be done via the web GUI?