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
/* | |
Example of how to write binary stuff in C++ | |
Illustrates some of the various quirks/annoyances | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> |
#! /bin/bash | |
# Description: show dependency tree | |
# Author: damphat | |
if [ $# -lt 1 ]; then | |
echo 'Usage: apt-rdepends-tree [-r] <package>' | |
echo 'Required packages: apt-rdepends' | |
exit 1 | |
fi |
import hashlib | |
import base58 | |
import sys | |
prefix_dict = { | |
"xprv": "0488ade4", # Mainnet - P2PKH or P2SH - m/44'/0' | |
"yprv": "049d7878", # Mainnet - P2WPKH in P2SH - m/49'/0' | |
"zprv": "04b2430c", # Mainnet - P2WPKH - m/84'/0' | |
"Yprv": "0295b005", # Mainnet - Multi-signature P2WSH in P2SH | |
"Zprv": "02aa7a99", # Mainnet - Multi-signature P2WSH |