Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

72 total results found

Generate Random MAC address

Networking

printf '00:60:2f:%02x:%02x:%02x\n' $[RANDOM%256] $[RANDOM%256] $[RANDOM%256]

Mount QCOW2

Linux KVM Virtual Machines

Load Kernel module modprobe nbd Connect the image to NBD (Network Block Device) device and then mount that device/partition qemu-nbd --connect=/dev/nbd0 /var/lib/vz/images/100/vm-100-disk-1.qcow2 mount /dev/nbd0p1 /mnt/somepoint/ When done unmount, disconnec...

Direct Boot Kernel

Linux KVM Virtual Machines

Provide path to Kernel and optionally initrd qemu-system-aarch64 ... -kernel /boot/vmlinuz-6.9.0-rc6+ -initrd /boot/initrd.img-6.9.0-rc6+

Serial Only

Linux KVM Virtual Machines

AMD64 qemu-system-x86_64 ... -nographic -append "root=/dev/vda rw console=ttyS0" -hda rootfs.img ARM64 qemu-system-aarch64 ... -nographic -append "root=/dev/vda rw console=ttyAMA0" -hda rootfs.img Some emulated consoles will need a speed appended like consol...

Strip Debug

Linux Building the Kernel

When Kernel modules are built they often contain debug information. This creates modules with substantially larger sizes. To remove this debug information just set the environment variable when running make/make install INSTALL_MOD_STRIP=1 (source)

EFI

Linux KVM Virtual Machines

To use OVMF/AAVMF for EFI add these parameters to qemu-system-*. Normally you can find OVMF_CODE.fd and OVMF_VARS.fd (or variants of them) in /usr/share -drive if=pflash,format=raw,readonly,file=OVMF_CODE-pure-efi.fd -drive if=pflash,format=raw,file=OVMF_VARS....

Test Authentication

Git

ssh -T git@gitea.swigg.net source

Query Hardware Info

Linux

dmidecode # dmidecode --list-types bios system baseboard chassis processor memory cache connector slot # dmidecode -t memory lshw # lshw -class memory

Benchmarking

Storage

fio Description Flexible IO Tester (Fio) is a benchmarking and workload simulation tool for Linux/Unix created by Jens Axboe, who also maintains the block layer of the Linux kernel. Fio is highly tunable and widely used for storage performance benchmarking. ....

Introduction: Novice to Cloud Provider

Project Hyperconverged

Troubleshooting

Kubernetes

Deleting Namespace Stuck Terminating NAMESPACE=my-namespace kubectl get namespaces $NAMESPACE -o json | jq '.spec.finalizers = []' | tr -d "\n" | kubectl replace --raw /api/v1/namespaces/$NAMESPACE/finalize -f - source

LVM

Storage

Create a volume group # vgcreate [OPTIONS] VG_new PV ... vgcreate --autobackup y ceph0 /dev/disk/by-id/nvme-INTEL_SSDPE2KX020T8_PHLJ1060024S2P0BGN Create a thin pool # lvcreate --type thin-pool --size Size[m|UNIT] VG [COMMON_OPTIONS] lvcreate --type thin-pool...