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

John Driessen

Well-Known Member
Apr 27, 2020
36
1
48
58
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)?