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
| ; Reference - https://www.mpselectmini.com/starting_ending_g-code_scripts | |
| M400 ; wait for pending commands to finish | |
| M104 S0 ; turn off hotend/extruder heater | |
| M140 S0 ; turn off bed heater | |
| G91 ; set to relative positioning | |
| G1 E-2 F300 ; retract the filament a bit before lifting the nozzle to release some of the pressure | |
| G1 Z1 ; raise Z 1mm from current position | |
| G1 E-2 F300 ; retract filament even more | |
| G90 ; set to absolute positioning | |
| G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling |