This 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 Host
modprobe nbd max_part=8
This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)
// Updated in August 2022 | |
imports.gi.versions.Gtk = '3.0'; | |
const { Gtk, GObject, WebKit2: WebKit } = imports.gi; | |
Gtk.init(null); | |
const WebBrowser = GObject.registerClass( | |
class WebBrowser extends Gtk.Application { |
version: '3.3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
networks: | |
- myvlan |
sudo chroot /mnt/sysroot /bin/bash --login | |
# set partition codes | |
sgdisk -t 1:ef00 /dev/vda | |
sgdisk -t 2:8304 /dev/vda | |
partprobe | |
# remove GRUB and exclude it from being reinstalled | |
rpm -v --nodeps --erase $(rpm -qa | grep "^grub2-\|^os-prober-\|^grubby-") | |
echo "exclude=grub2-*,os-prober,grubby" >> /etc/dnf/dnf.conf |