[SOLVED] Use lvm volumes defined on hosts (having file system ext4 and actual data on it) in VMs

Apr 27, 2020
36
1
13
57
Hi,

I have defined various logical volumes on harddisks attached to the proxmox host. These logical volumes have ext4 filesystems and are already containing data.
These filesystems can be used easily in lxc containers, via mountpoints.
Now I try to use them as well in VMs.
I have defined the following in the VMID.conf file:

virtio0: /dev/disk/by-uuid/abcdefgh-ijkl-mnop-qrst-uvwxyz12345,backup=0,replicate=0,size=100G

Indeed the disk is shown in fdisk -l in the VM. But there is no partition info

How can I actually use the data on the filesystem on the logical volume in the VM?
What should i define in the VMID.conf on the host and what should I define in the VM (an entry in /etc/fstab f.e. an what should it look like)?
 

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!