|||

Proxmox notes

Note: I’ve had a handful of images that require the host” cpu type.

e.g. qm set $VMID --cpu cputype=host

Promiscuous mode for an interface

Set promiscuous mode to receive all data for programs like zeek and suricata.

ip link set eno1 promisc on
brctl setageing vmbr1 0
brctl setfd vmbr1 0

credit: https://github.com/Security-Onion-Solutions/securityonion/discussions/8245

persist on reboot via /etc/rc.local

#!/bin/bash

ip link set enp11s0f0 promisc on
ip link set enp11s0f0 up

brctl setageing vmbr1 0
brctl setfd vmbr1 0

exit 0

Create a cloud image template - Proxmox

Download the cloud image. Create the vm and import the disk.

After running this, expand the disk and create a template from the new VM

Ubuntu 20.04 cloud image

wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
VMNAME=ubuntu2004-cloud-template
VMID=2004
OSIMG=focal-server-cloudimg-amd64.img

Rocky 8.5 cloud image

wget http://download.rockylinux.org/pub/rocky/8.5/images/Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2
VMNAME=rocky85-cloud-template
VMID=8001
OSIMG=Rocky-8-GenericCloud-8.5-20211114.2.x86_64.qcow2

Jammy: Ubuntu 22.04

wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
VMNAME=ubuntu2204-cloud-template
VMID=2204
OSIMG=jammy-server-cloudimg-amd64.img
STORAGE=local-lvm

qm create $VMID --memory 2048 --name $VMNAME --net0 virtio,bridge=vmbr0
qm set $VMID --cpu cputype=host
qm importdisk $VMID $OSIMG $STORAGE
qm set $VMID --scsihw virtio-scsi-pci --scsi0 $STORAGE:vm-$VMID-disk-0
qm set $VMID --ide2 $STORAGE:cloudinit
qm set $VMID --boot c --bootdisk scsi0
qm set $VMID --serial0 socket --vga serial0
qm template $VMID

Import a disk - Proxmox

VMNAME=imported-machine
VMID=400
DISKNAME=disk.vdi
STORAGE=local-lvm

qm create $VMID --memory 2048 --name $VMNAME --net0 virtio,bridge=vmbr0
qm set $VMID --cpu cputype=host
qm importdisk $VMID $DISKNAME $STORAGE
Up next Meow Wolf If you go. Go as early as possible. It get’s crazy busy around 3pm. I definitely recommend getting a Q-pass and the “Barsk & Solden alternative Recommended Tech 2022 Updating this for 2022… Password Protection Web Browsers Laptops Desktops Antivirus VPN Entertainment Linux vim Use a password manager. Use
Latest posts Recommended Tech 2022 Proxmox Notes Meow Wolf Financial Notes Cast a URL to a Chromecast Email List System Design Cards About Music, Finding the good stuff. Zines shirt designs Now Learning Graphical Design Python Notes Deploy to a Remote Docker registry DMented 'zine for DM's and Character Sheets for Players Online Security Find Notes Samba Notes Things worth noting My Software Friends Favorites Recommended Tech Elasticsearch Notes Book Notes APRS Notes vim notes Nmap Notes Bash Notes Raspberry PI Zero quickstart Ubuntu 16.04 or 18.04