Starting from a Debian bullseye base install on host system with old naming interface scheme ...
Nowadays, network interface names follow the consistent naming rule. In
This lab assumes that we have a running LXD setup based on this gist : UNprivileged lxd containers on top of Open vSwitch
Let's start with a container named seafile
.
$ lxc ls
+---------+---------+-------------------+-----------------------------------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
% VXLAN lab based on OpenVSwitch and LXD containers
The very first idea when I started writing this lab was to illustrate the Virtual Extensible LAN (VXLAN) technology. Now that OpenVSwitch configuration is smoothely integrated in the Debian networking configuration files, this should have resulted in somewhat easy-to-read gist.
#!/bin/bash | |
# This script resizes $1 VM disk image adding $2 GB to the original size | |
vm="$1" | |
shift | |
size="$1" | |
if [[ -z ${vm} ]] || [[ -z ${size} ]]; then | |
echo "Usage: $0 <vm> <size>" |
--- | |
- name: PREPARE LAB ENVIRONMENT | |
hosts: hypervisors | |
tasks: | |
- name: ENSURE SYMLINK TO MASTERS DIRECTORY EXISTS | |
ansible.builtin.file: | |
src: /var/cache/kvm/masters | |
dest: "{{ ansible_env.HOME }}/masters" | |
state: link |
#!/bin/bash | |
# This script customizes a VM image for the lab environment | |
VM="$1" | |
shift | |
USER="$1" | |
shift | |
SECRET="$1" | |
shift |
#!/usr/bin/env python3 | |
import os | |
import re | |
import sys | |
import yaml | |
""" | |
VM launch trace file |