Skip to content

Instantly share code, notes, and snippets.

View frogstarr78's full-sized avatar

Scott Noel-Hemming frogstarr78

View GitHub Profile
@frogstarr78
frogstarr78 / mount_qcow2.md
Created October 30, 2020 07:08 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

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
@frogstarr78
frogstarr78 / open.py
Created November 10, 2015 23:26 — forked from thiago-vieira/open.py
natural open struct in python
class Class:
pass
x = Class()
x.something = 42
print(x.something) # 42