LXC on LVM partition

Gabor

Active Member
Feb 3, 2016
4
0
41
31
Hello!

I have a non-proxmox based server inthere it's running simple lxc, and container running on LVM logical partition. I can create this container type a simple following command:

lxc-create -n HOSTNAME -t ubuntu -B lvm --lvname HOSTNAME --vgname main --fstype ext4 --fssize SIZE

But, when I searched this function in proxmox, I wasn't found any solution (with KVM technology support it).

Anyone has any idea ?

Thank you!

kvm.PNG

lxc.PNG
 
Hi,

you have to set the content on the lvm storage also to Container (rootdir).
 
Hello,

Sorry, I badly composed my question...

I wouldn't like install to "Directory" type storage, because I have a high performance LVM storage.
In ubuntu based system allowing to install directly to install LVM logical partition (ex. -B lvm --lvname HOSTNAME --vgname main).

Proxmox support it ? Or only install to vmdk/qcow file ?

Thank you!
 
You have to go in the Datacenter->Storage Tab then doppel click on LVM and select also in Content to "Container"/"rootdir".

Container or rootdir dependence on the version you are but they are both the same.