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
| ################################################################################################ | |
| # name: convert_daily_to_monthly.py | |
| # desc: takes inout as daily prices and convert into monthly data | |
| # date: 2018-06-15 | |
| # Author: conquistadorjd | |
| ################################################################################################ | |
| import pandas as pd | |
| import numpy as np | |
| print('*** Program Started ***') |
| #!/bin/bash | |
| # Create new chain | |
| sudo iptables -t nat -N REDSOCKS | |
| # Ignore LANs and some other reserved addresses. | |
| sudo iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN |