Linux
Copy a GPT Partition Table to Another Disk
Command Syntax To clone GPT partition table command syntax are as following. sgdisk -R <New_Dis...
Query Hardware Info
dmidecode # dmidecode --list-types bios system baseboard chassis processor memory cache connector...
Isolate CPUs from Kernel Scheduler
Disable CPU(s) Sysfs # echo 0 > /sys/devices/system/cpu/cpu4/online When disabling a CPU thi...
KVM Virtual Machines
Bridge Zero Copy Transmit
Zero copy transmit mode is effective on large packet sizes. It typically reduces the host CPU o...
PCI Passthrough
Ensure IOMMU Is Activated First step of this process is to make sure that your hardware is eve...
QEMU Device Properties
Example: Rename Device Example: Move MSI-X The QEMU vfio-pci device option is x-msix-relo...
SR-IOV
Ensure IOMMU Is Activated First step of this process is to make sure that your hardware is eve...
Mount QCOW2
Load Kernel module modprobe nbd Connect the image to NBD (Network Block Device) device and then ...
Direct Boot Kernel
Provide path to Kernel and optionally initrd qemu-system-aarch64 ... -kernel /boot/vmlinuz-6.9.0-...
Serial Only
AMD64 qemu-system-x86_64 ... -nographic -append "root=/dev/vda rw console=ttyS0" -hda rootfs.img ...
EFI
To use OVMF/AAVMF for EFI add these parameters to qemu-system-*. Normally you can find OVMF_CODE....
LXC
LXC GPU Access
Giving a LXC guest GPU access allows you to use a GPU in a guest while it is still available for ...
LXC NIC Passthrough
On the rare occation you have a good reason to forgo the small overhead of an veth (Virtual Ether...
netfilter/iptable logging
Logging from network namespaces other than init has been disabled since kernel 3.10 in order t...
LXC USB Passthrough
Passing through a USB device with LXC allows your LXC guest access to a physical USB device plugg...
Passwords
Generate Random Password With pwgen (generate 1 password, length 16, with a least a number and u...
Serial Console
Output to Serial Console Make sure the kernel is started with the following parameter… console=tt...
Systemd
Introduction systemd is a software suite that provides an array of system components for Linux o...
Linux Unified Key Setup (LUKS)
I messed up editing this page and some of the information is missing and in the wrong order. All ...
Reboot
Really Force Reboot I've had to do this when the ZFS kernel module has a problem that was prevent...
Network Storage
iSCSI Internet Small Computer Systems Interface or iSCSI (/aɪˈskʌzi/ i eye-SKUZ-ee) is an Intern...