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
#!/bin/sh | |
# | |
# Post-commit hook that decrypts files containing '.vault' | |
# | |
# File should be .git/hooks/post-commit and executable | |
CRYPT_TAG='^.*\.vault(([\.]?)|(\..*))$' | |
EXIT_STATUS=0 | |
wipe="\033[1m\033[0m" |
--- | |
- hosts: mariadb_dev | |
vars: | |
mysql_root_pw: '' | |
tasks: | |
- name: enable network | |
service: | |
name: '{{ item }}' |