QEMU/VirtualBox Disk Resize

馃拪 Quick Pill: QEMU/VirtualBox Disk Resize 鈩癸笍Info Use case: Expand virtual machine disk when running out of space. Works with QEMU raw images, VirtualBox VDI/VHD, and similar formats. 馃殌 Complete Resize Process 鈿狅笍Warning 鈿狅笍 Critical: Always backup your VM disk before resizing! Step-by-Step Guide # 1. Shutdown your VM first! # 2. Resize the disk image file qemu-img resize -f raw Ubuntu.vhd 200G # 3. Load NBD kernel module sudo modprobe nbd # 4. Connect disk as network block device sudo qemu-nbd --connect=/dev/nbd0 -f raw Ubuntu.vhd # 5. Expand the partition sudo parted /dev/nbd0 Inside parted: ...

October 5, 2025 路 9 min 路 1707 words 路 Manzolo

Encrypted LVM Disk Resize (LUKS + LVM)

馃拪 Quick Pill: Encrypted LVM Disk Resize 鈩癸笍Info Use case: Expand encrypted Ubuntu/Debian VMs that use LUKS encryption + LVM. Common in full-disk encryption setups. 馃攼 Complete Resize Process (Encrypted + LVM) 鈿狅笍Warning 鈿狅笍 Critical: ...

October 5, 2025 路 10 min 路 2072 words 路 Manzolo