Advanced Search
Search Results
72 total results found
Generate Random MAC address
printf '00:60:2f:%02x:%02x:%02x\n' $[RANDOM%256] $[RANDOM%256] $[RANDOM%256]
Mount QCOW2
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
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
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
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
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
ssh -T git@gitea.swigg.net source
Query Hardware Info
dmidecode # dmidecode --list-types bios system baseboard chassis processor memory cache connector slot # dmidecode -t memory lshw # lshw -class memory
Benchmarking
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
Troubleshooting
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
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...