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
Windows Registry Editor Version 5.00 | |
[HKEY_USERS\.DEFAULT\Control Panel\Colors] | |
"ActiveBorder"="212 208 200" | |
"ActiveTitle"="10 36 106" | |
"AppWorkSpace"="128 128 128" | |
"Background"="48 48 48" | |
"ButtonAlternateFace"="181 181 181" | |
"ButtonDkShadow"="64 64 64" | |
"ButtonFace"="212 208 200" |
#!/bin/sh | |
# | |
# tmux-launch-ugly - an uglier, slightly faster version of tmux-launch | |
# dependencies: tmux, rxvt-unicode, wmctrl | |
# | |
# Does not currently support invocation inside a TMUX session. | |
# The on really notable speed difference relative to tmux-launch is in | |
# the case that neither a target terminal nor a target session exists. |
#!/bin/bash | |
# echo the name of a file in current directory, chosen at random | |
FILES=$(ls -1) | |
echo "$FILES" | head -$(( $RANDOM % $(echo "$FILES" | wc -l) + 1 )) | tail -1 |