Ludus Range
Looking for a solution to combine automation for rapid/repeatable environments for training/testing, look no further than Ludus Clou
Based on https://ludus.cloud/
In practice:
Ludus Hardware: Debian 13 base installation, then run as root:
cat /usr/share/doc/apt/examples/Debian.sources > /etc/apt/sources.list.d/debian.sources
vi /etc/apt/sources.list (comment out cdrom)
Install Ludus:
apt update && apt install curl sudo git ca-certificates python3-debian
curl -s https://ludus.cloud/install | bash
After installation/setup, run the following to disable sleep/hibernation settings:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target (to check and confirm "inactive (dead)"
Configure Ludus:
ludus-install-status (to receive Root API Key)
LUDUS_API_KEY='<API KEY VALUE FROM ABOVE' ludus user add --name "Ludus Admin" --userid ludusadmin --admin --url https://127.0.0.1:8081
Take the results of the API key for the new user (ludusadmin) and export
export LUDUS_API_KEY='<API KEY VALUE FROM ABOVE'
To look up Proxmox credentials
ludus user creds get (to access WebUI)
Add secondary disk to server:
lsblk to confirm/find disk
fdisk /dev/<diskname> (ex: sda)
g for GPT partition type
n for New partition
Enter to accept defaults for first and last sectors
t to change partition type to LVM (8e)
w to write changes
pvcreate /dev/<diskname> (ex: sda1)
vgcreate <new_vg_name> /dev/<diskname>
optionally extend <existing_vg_name> /dev/<diskname>
lvcreate -l +100%FREE -n <volumename> <new_vg_name>
mkfs.ext4 /dev/<new_vg_name/
mkdir /mnt/LudusData
mount /dev/<new_vg_name>/ /mnt/LudusData (temporary access)
blkid /dev/<new_vg_name>/ (to lookup UUID - ensure it's from the LVM and not the disk itself)
vi /etc/fstab - UUID="<UUID FROM ABOVE>" /mnt/LudusData ext4 defaults 0 2
mount -a to confirm fstab is correct (permanent disk access)
In Proxmox (as root), add storage
Follow-on:
Last updated