Skip to content

Instantly share code, notes, and snippets.

View marcaurele's full-sized avatar
🚵
Coaching kids to jump of their fears

Marc-Aurèle Brothier marcaurele

🚵
Coaching kids to jump of their fears
View GitHub Profile
@marcaurele
marcaurele / IPXE boot from the cloud.md
Last active February 19, 2018 13:45
For full disk encryption (FDE) of a cloud VM

IPXE netboot

To boot a different OS from a Debian base image

To have a full disk encryption on a cloud VM (choose a size with enough RAM (2GB) and downscale after if needed):

  1. Use the QEMU console to log on as root
  2. apt-get install grub2 ipxe
  3. reboot
  4. Quickly select "Network boot" in GRUB menu
@marcaurele
marcaurele / migrate-runningvm.py
Last active April 1, 2017 17:17
Script to live migrate a VM following the anti-affinity groups. You can also force a host for the destination of the migration, which will overrule the anti-affinity check
#!/usr/bin/env python3
# Author: Marc-Aurèle Brothier, Exoscale
# June 2016
# Requirements: cs, click
import random
import time
from datetime import datetime, timedelta

Keybase proof

I hereby claim:

  • I am marcaurele on github.
  • I am marcaurele (https://keybase.io/marcaurele) on keybase.
  • I have a public key ASArUJBLlTwIvzEndNg6lPo_-puVvn1F2amCdhpwn_7smgo

To claim this, I am signing this object:

@marcaurele
marcaurele / notes.adoc
Last active June 24, 2016 08:28
Graceful MS shutdown for Cloudstack

Graceful shutdown of Management Server for Cloudstack

Idea

The goal is to provide a safe shutdown of a management server when running in cluster mode, so that the server stops processing new commands and waits for ongoing commands before being "ready to stop". Then the MS should be in a clean state for a shutdown. A little requirement is that the proxy in front of the management servers should have its route to the server going down turned off to avoid routing reconnection to the stopping server.