Skip to content

Instantly share code, notes, and snippets.

View olivierlambert's full-sized avatar

Olivier Lambert olivierlambert

View GitHub Profile
@olivierlambert
olivierlambert / preseed.cfg
Last active October 30, 2024 09:03
Debian 12 preseed file
# Locale Setup
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8
# Keyboard Setup
d-i keyboard-configuration/xkb-keymap select us
# Clock Setup
d-i time/zone string US/Eastern
@olivierlambert
olivierlambert / deb12-generator.pkr.hcl
Last active June 25, 2024 17:59
Debian 12 generator for Packer on XCP-ng
packer {
required_plugins {
xenserver= {
version = "= v0.7.0"
source = "github.com/ddelnano/xenserver"
}
}
}
variable "remote_host" {
type = string
@olivierlambert
olivierlambert / restapi.mjs
Created April 26, 2023 19:36
An example script to generate a CSV of all you non-backuped VMs
const host = process.argv[2]
const token = process.argv[3]
const filterRemoteId = process.argv[4]
async function get(path) {
const headers = {
cookie: `authenticationToken=${token}`,
}
try{
@olivierlambert
olivierlambert / xen2xcpng.py
Created August 21, 2022 09:35
Migrate from Xen config files to XCP-ng
#!/usr/bin/env python
## Author: David Markey <[email protected]>, Citrix Systems.
## Licence: GNU LESSER GENERAL PUBLIC LICENSE V3, http://www.gnu.org/licenses/lgpl-3.0.txt
## THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
## README before use.
@olivierlambert
olivierlambert / theme.json
Last active February 19, 2021 17:16
XCP-ng Theme color for Mattermost
XCP-ng
{"awayIndicator":"#CC8456","buttonBg":"#168048","buttonColor":"#e4e4e4","centerChannelBg":"#263740","centerChannelColor":"#e4e4e4","codeTheme":"monokai","errorTextColor":"#fb4934","linkColor":"#cc584c","mentionBg":"#FF8578","mentionColor":"#cc584c","mentionHighlightBg":"#cc584c","mentionHighlightLink":"#e4e4e4","newMessageSeparator":"#cc584c","onlineIndicator":"#168048","sidebarBg":"#282828","sidebarHeaderBg":"#1d2021","sidebarHeaderTextColor":"#e4e4e4","sidebarText":"#e4e4e4","sidebarTextActiveBorder":"#cc584c","sidebarTextActiveColor":"#e4e4e4","sidebarTextHoverBg":"#cc584c","sidebarUnreadText":"#E36F49"}
XCP-ng2
{"awayIndicator":"#CC8456","buttonBg":"#168048","buttonColor":"#e4e4e4","centerChannelBg":"#263740","centerChannelColor":"#e4e4e4","codeTheme":"monokai","errorTextColor":"#fb4934","linkColor":"#cc584c","mentionBg":"#e5766a","mentionColor":"#cc584c","mentionHighlightBg":"#cc584c","mentionHighlightLink":"#e4e4e4","newMessageSeparator":"#cc584c","onlineIndicator":"#168048","sidebarBg":"#282828
@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
@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 / 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 / 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 / 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