Skip to content

Instantly share code, notes, and snippets.

@carmelo42
carmelo42 / mount_qcow2.md
Created January 10, 2022 19:24 — 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

Solution works for Sierra / Hight Sierra

Not guaranteed work on Mojave or Catalina

You are happy owner of macbook with new os and dream to play favorite new games via Steam or old-school via emulators... And in one day you checked Amazon and WOW - PS gamepad copy only for 12$?! Awesome! "Shut up and take my money!"© You aren't stupid and googled first, that macOS supports ps gamepads from scratch - Double-Awesome!

And here is that day - you opened gamepad box and followed instruction https://theultralinx.com/2014/02/connect-playstation-3-controller-mac-os-mavericks/ or http://osxdaily.com/2014/12/28/connect-playstation-3-controller-mac-os-x/ But... NOTHINK WORKS!!! Oh my god! Is your controller is a fake?! PATIENCE!

@carmelo42
carmelo42 / keybase.md
Created September 24, 2019 09:22
keybase.md

Keybase proof

I hereby claim:

  • I am carmelo42 on github.
  • I am carmelo42 (https://keybase.io/carmelo42) on keybase.
  • I have a public key ASBWjRlbFN6spqZMkqIsLGKkX1IwUiEdAIrjDTufpEcSVgo

To claim this, I am signing this object:

@carmelo42
carmelo42 / ansible-bootstrap-ubuntu-16.04.yml
Created November 21, 2018 16:54 — forked from gwillem/ansible-bootstrap-ubuntu-16.04.yml
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# gwillem@gmail.com
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)