Skip to content

Instantly share code, notes, and snippets.

View olivierlambert's full-sized avatar

Olivier Lambert olivierlambert

View GitHub Profile
@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 / 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 / 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:

{
"title": "Logs",
"services": {
"query": {
"list": {
"0": {
"query": "",
"alias": "",
"color": "#7EB26D",
"id": 0,
@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