Skip to content

Instantly share code, notes, and snippets.

View omadjoudj's full-sized avatar

Othman Madjoudj (aka Athmane) omadjoudj

View GitHub Profile
@omadjoudj
omadjoudj / mount_qcow2.md
Created October 27, 2019 00:01 — 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
@omadjoudj
omadjoudj / ns-inet.sh
Created April 15, 2016 16:11 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"