Skip to content

Instantly share code, notes, and snippets.

Olivier Lambert olivierlambert

Block or report user

Report or block olivierlambert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@olivierlambert
olivierlambert / multidisks_lvm.md
Created Jan 31, 2018
Manual mount multi-disks LVM
View multidisks_lvm.md

Requirements

vhdimount

  • On Debian: libvhdi-utils package
  • On Fedora:
sudo dnf install https://forensics.cert.org/cert-forensics-tools-release-27.rpm
sudo dnf install libvhdi-tools
@olivierlambert
olivierlambert / coalesce.md
Last active Jan 28, 2018
unlock coalesce
View coalesce.md

Find if coalesce

px axf | grep coalesce

If nothing, rescan SR and repeat the ps

Force it

If still said lock active, remove the lock:

@olivierlambert
olivierlambert / xen_gluster.md
Created Jul 26, 2017
Quick instructions to use Xen on gluster mount
View xen_gluster.md

In order to have your VM disk hosted on a Gluster share, you need:

  • to install Gluster client
  • mount your Gluster share
  • create your VM disks on the share and use the path in your domU config file

Install Gluster client

Pre req

@olivierlambert
olivierlambert / elk.md
Created Jan 16, 2016
A modern admin Dashboard
View elk.md

How-to is here to help you to create a nice dashboard with:

  • centralized logs
  • perfs counters
@olivierlambert
olivierlambert / onlinenet_debian_ipv6.md
Last active May 10, 2018 — forked from eraserewind/onlinenet_debian_ipv6.md
Online.net: IPv6 in Debian virtual machines
View onlinenet_debian_ipv6.md

Online.net: IPv6 in Debian virtual machines

Without this annoying dribbler thing.

Variables

  • RANGE = /64
  • EXT_IF = external interface
  • IPV6 = Any IPv6 in RANGE
  • DUID = dhcp client id. Find it in console.online.net
View fat.md

FAT stuff

  1. dd if=/dev/zero of=test.img bs=1M count=10 (image generation of 10MB file)
  2. mkfs.fat test.img (create filesystem inside)
  3. head -c 512 test.img exctract the first 512 bytes

TODO

  • create a buffer of 10MB
View cloudconfig.md

VFAT disk

  1. apt-get install dosfstools
  2. mkfs.vfat /dev/xvdx

Files

openstack/latest/meta_data.json:

@olivierlambert
olivierlambert / iscsi.md
Last active Aug 29, 2015
iSCSI process in XAPI
View iscsi.md

The iSCSI process for XAPI

Step 1: find the iSCSI IQN on a target

# xe sr-probe type=lvmoiscsi device-config:target=192.168.0.100

It returns an error:

View test_es.json
{
"title": "Logs",
"services": {
"query": {
"list": {
"0": {
"query": "",
"alias": "",
"color": "#7EB26D",
"id": 0,
@olivierlambert
olivierlambert / n.sls
Last active Aug 29, 2015
Salt Formula for 'n'
View n.sls
package_for_n:
pkg:
- installed
- pkgs:
- curl
download_n:
cmd.run:
- name: 'curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n'
- unless: which n
You can’t perform that action at this time.