[SOLVED] Proxmox mit luks

kpwn

New Member
Jun 8, 2021
18
0
1
29
ich versuche gerade ein LVM-thin mit luks zu verschlüsseln und dann als storage zu nutzen. wie in der Anleitung im englischen Forum erklärt:
Code:
 Find out UUID of SSD:
ls -l /dev/disk/by-id/

# Create Partition:
fdisk /dev/disk/by-id/myUUID
g
n
Enter
Enter
Enter
w

# LUKS encrypt partition:
cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha512 /dev/disk/by-id/myUUID-part1

# Unlock partition:
cryptsetup luksOpen --allow-discards /dev/disk/by-id/myUUID-part1 lukslvm

# Create LVM:
pvcreate /dev/mapper/lukslvm
vgcreate vgluks /dev/mapper/lukslvm

# Create LVM thin:
lvcreate -l99%FREE -n lvthin vgluks
lvconvert --type thin-pool vgluks/lvthin

# Manually add it to PVE as LVM thin storage using WebUI with name "LVMthin".

Now you should be able to use that uncrypted LVM thin as a Storage for VMs/LXCs. But you need to manually unlock the LUKS each time you reboot.

Leider wird das thinLVM nur im storage tab von den Node angezeigt, nicht links bei den anderen Speichern. Ich kann es auch nicht im Datacenter storage tab hinzufügen. VMs lassen sich auch nicht darauf ablegen. Woran kann das liegen? lvs zeigt das volumen ebenfalls an...
 
Es ist bei einem multi-node Cluster wichtig über welchen Node man auf das Webinterface zugreift. Dann erscheint die gewünschte option auch...
 

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!