Mount existing virtual disk to a VM

showiproute

Well-Known Member
Mar 11, 2020
615
32
48
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!