Skip to content

Instantly share code, notes, and snippets.

View frippe75's full-sized avatar

frippe75

  • HPE
  • Sweden
View GitHub Profile
@frippe75
frippe75 / btrfs_backup.service
Last active May 4, 2022 14:10 — forked from MolarFox/btrfs_backup.service
btrfs snapshot automation script
# systemd main unit file for btrfs incremental snapshotting
[Unit]
Description=Execute btrfs snapshot routine for given volumes
[Service]
Type=oneshot
ExecStart=/usr/local/bin/btrfs_backup /home 60 # Choose partition mount point and num backups to keep here
@frippe75
frippe75 / OpenStack_consumer_GPU_passthrough.md
Created March 3, 2018 06:12 — forked from claudiok/OpenStack_consumer_GPU_passthrough.md
Consumer-grade GPU passthrough in an OpenStack system (NVIDIA GPUs)

Consumer-grade GPUs in an OpenStack system (NVIDIA GPUs)

Assumptions

This assumes you have GTX980 cards in your system (PCI id 10de:13c0 & 10de:0fbb per card). Just add more IDs for other cards in order to make this more generic. This also assumes nova uses qemu-kvm as the virtualization hypervisor (qemu-system-x86_64). This seems to be the default on OpenStack Newton when installed using openstack-ansible.

We assume OpenStack Newton is pre-installed and that we are working on a Nova compute node. This has been tested on an Ubuntu 16.04 system where I installed OpenStack AIO version 14.0.0 (different from the git tag used in the instructions!): http://docs.openstack.org/developer/openstack-ansible/developer-docs/quickstart-aio.html

Prepare the system for GPU passthrough (set up IOMMU/vfio/...)

Note: This is heavily based on information from https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Enabling_IOMMU adapted for Ubuntu 16.04