# Proxmox

## Install

Download the Proxmox Virtual Environment ISO

<https://www.proxmox.com/en/downloads/proxmox-virtual-environment>

```bash
dd bs=1M conv=fdatasync if=./proxmox-ve_*.iso of=/dev/XYZ
```

## First Boot

1. Change root password

## SSH

SSH into your instance as normal and add ssh keys to ~/.ssh/authorized_keys

## ZFS Import Encrypted Dataset

1. Create a new file with the raw key contents of your encrypted dataset
2. `zfs load-key -L file:///root/enc0.vms.key enc0/vms`
3. `zfs list -o name,keystatus enc0/vms` Checks for lock status ("unavailable" means locked)

## ZFS Encryption

## VMs with zvols

```bash
# Get VM ID
qm list
export VM_ID=100
qm set $VM_ID --virtiodisk0 /dev/zvol/enc0/vms/,format=raw
```