Skip to content

Instantly share code, notes, and snippets.

Avatar
👣

Lakshmipathi Lakshmipathi

👣
View GitHub Profile
@Lakshmipathi
Lakshmipathi / build-ubuntu-rootfs.sh
Created Jun 22, 2019 — forked from smithclay/build-ubuntu-rootfs.sh
ubuntu bootstrap for user mode linux: minimal
View build-ubuntu-rootfs.sh
#!/bin/sh
# This script creates a user-mode linux machine based on Ubuntu.
# Created by Clay Smith, May 2017
#
# based on: https://gist.github.com/aputs/6247216
# and https://gist.github.com/AVGP/5410903
set -x
@Lakshmipathi
Lakshmipathi / mount_qcow2.md
Created Dec 26, 2018 — 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
View osc-cheatsheet.md

osc cheatsheet

configuration

.oscrc

TBD

aliases

@Lakshmipathi
Lakshmipathi / debugging_kernel.txt
Created Aug 28, 2018 — forked from hngouveia01/debugging_kernel.txt
Debugging kernel code line by line with Qemu and GDB
View debugging_kernel.txt
We are going to use buildroot to download, configure and compile the kernel.
First, download and uncompress buildroot: https://buildroot.org/download.html
Go to the directory and:
make qemu_x86_defconfig
make menuconfig
@Lakshmipathi
Lakshmipathi / host
Created Jul 14, 2018 — forked from gedex/host
script to start UML (User Mode Linux).
View host
$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:fc:99:96:e3
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::250:fcff:fe99:96e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36311 errors:0 dropped:0 overruns:0 frame:0
TX packets:36902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24450223 (24.4 MB) TX bytes:6426466 (6.4 MB)
Interrupt:16 Base address:0xe800
@Lakshmipathi
Lakshmipathi / host
Created Jul 14, 2018 — forked from gedex/host
script to start UML (User Mode Linux).
View host
$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:fc:99:96:e3
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::250:fcff:fe99:96e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36311 errors:0 dropped:0 overruns:0 frame:0
TX packets:36902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24450223 (24.4 MB) TX bytes:6426466 (6.4 MB)
Interrupt:16 Base address:0xe800
@Lakshmipathi
Lakshmipathi / uml-on-debian.md
Created Feb 2, 2018 — forked from gaoyifan/uml-on-debian.md
User Mode Linux on Debian Jessie
View uml-on-debian.md

User Mode Linux on Debian Jessie

host kernel version: 3.16.36-1+deb8u2

target kernel version: 4.9-rc5

Build UML kernel

Preparation

@Lakshmipathi
Lakshmipathi / build_curl.md
Created Aug 3, 2016 — forked from bertrandmartel/build_curl.md
Build Curl for Android NDK
View build_curl.md

Build libcurl for android NDK

Libcurl requires openssl and zlib to be fully operationnal

  • Step 1 : cross compile zlib
  • Step 2 : cross compile openssl
  • Step 3 : cross compile curl with zlib/openssl external link

Prerequisites :

You can’t perform that action at this time.