more thoughtful hacks attached, compiles on termux/arm
see hacks and pkg.list for list of installed packages
---------- Forwarded message ----------
From: Андрей Рандрианасулу <randrik@mail.ru>
Date: Sunday, March 27, 2022
Subject: cingg bsd hacks
To: randrianasulu <randrianasulu@gmail.com>
giflib errormounting qcow2How to mount a qcow2 disk imageThis is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.Step 1 - Enable NBD on the Hostmodprobe nbd max_part=8Step 2 - Connect the QCOW2 as network block deviceqemu-nbd --connect=/dev/nbd0 /var/lib/vz/images/100/vm-100-disk-1.qcow2 Step 3 - Find The Virtual Machine Partitionsfdisk /dev/nbd0 -lStep 4 - Mount the partition from the VMmount /dev/nbd0p1 /mnt/somepoint/Step 5 - After you done, unmount and disconnectumount /mnt/somepoint/qemu-nbd --disconnect /dev/nbd0rmmod nbdopenexr error:real commandsqemu-nbd --connect=/dev/nbd0 /mnt/sdb2/AndrewR/FreeBSD-13.0-RELEASE-amd64.qcow2 fdisk -l /dev/nbd0mount /dev/nbd0p4 /mnt/zip -o ufstype=ufs2qemu command:qemu-system-x86_64 -hda FreeBSD-13.0-RELEASE-amd64.qcow2 -enable-kvm -smp 2 -hdb 5gb_ufs.qcow -m 1900 may be you need to manually activate swap in this image with swapon -a ?--
Андрей Рандрианасулу