Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍👨‍👦‍👦
using gnu

Ishimoto Shinobu protonesso

👨‍👨‍👦‍👦
using gnu
View GitHub Profile
@protonesso
protonesso / mount_qcow2.md
Created Nov 4, 2020 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image
View mount_qcow2.md

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
@protonesso
protonesso / mini_linux.md
Created Jul 12, 2019 — forked from hardentoo/mini_linux.md
Buildinq a minimal Linux / Busybox OS for Qemu
View mini_linux.md

Buildinq a minimal Linux / Busybox OS for Qemu

This short tutorial shows how to quickly build a minimal Linux kernel, a minimal initramfs root filesystem and test them on Qemu. We explore two options for the initramfs root filesystem:

  • starting from the Busybox sources (inspired by Mitchel Humpherys),
  • using Buildroot.

We also show how to compile and test a Hello world user application and a Hello world loadable kernel module.

Common

@protonesso
protonesso / ARMDebianUbuntu.md
Created May 5, 2019 — forked from Liryna/ARMDebianUbuntu.md
Emulating ARM on Debian/Ubuntu
View ARMDebianUbuntu.md

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

You can’t perform that action at this time.