Skip to content

Instantly share code, notes, and snippets.

View olivierlambert's full-sized avatar

Olivier Lambert olivierlambert

View GitHub Profile
@olivierlambert
olivierlambert / n.sls
Last active August 29, 2015 14:07
Salt Formula for 'n'
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
{
"title": "Logs",
"services": {
"query": {
"list": {
"0": {
"query": "",
"alias": "",
"color": "#7EB26D",
"id": 0,
@olivierlambert
olivierlambert / iscsi.md
Last active August 29, 2015 14:16
iSCSI process in XAPI

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:

@olivierlambert
olivierlambert / cloudconfig.md
Last active November 10, 2015 00:24
Cloud config

VFAT disk

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

Files

openstack/latest/meta_data.json:

@olivierlambert
olivierlambert / fat.md
Last active December 9, 2015 22:14
FAT stuff

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
@olivierlambert
olivierlambert / onlinenet_debian_ipv6.md
Last active May 10, 2018 00:49 — forked from eraserewind/onlinenet_debian_ipv6.md
Online.net: IPv6 in Debian virtual machines

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
@olivierlambert
olivierlambert / elk.md
Created January 16, 2016 15:14
A modern admin Dashboard

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

  • centralized logs
  • perfs counters
@olivierlambert
olivierlambert / xen_gluster.md
Created July 26, 2017 11:41
Quick instructions to use Xen on gluster mount

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 / coalesce.md
Last active January 28, 2018 15:05
unlock coalesce

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 / multidisks_lvm.md
Created January 31, 2018 13:41
Manual mount multi-disks LVM

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