Skip to content
Snippets Groups Projects
Commit 8917f393 authored by Benoit Donneaux's avatar Benoit Donneaux
Browse files

Move the local pool out od the doc

parent a1ea61ea
No related branches found
No related tags found
2 merge requests!396Support QEmu local grid,!384update production
......@@ -9,10 +9,10 @@ This requires `NixOS <https://nixos.org/>`_.
Nix without the OS will not work.
Setup virtualisation on the host
````````````````````````````````
Use the local development environment
`````````````````````````````````````
1. Add to your NixOS system configuration at ``/etc/nixos/configuration.nix``::
0. Add to your NixOS system configuration at ``/etc/nixos/configuration.nix`` (and rebuild)::
# Enable libvirt - likely incompatible with virtualisation.virtualbox!
virtualisation.libvirtd.enable = true;
......@@ -21,23 +21,6 @@ Setup virtualisation on the host
# Enable HW acceleration if (nested virtualisation is) available
#boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
2. OPTIONAL - Create a dedicated pool only to avoid the default path (``/var/lib/libvirt/storage``)::
export POOL_NAME=morph_local_$(id -un)
POOL_PATH="/path/to/your/storage"
mkdir -p "${POOL_PATH}"
sudo virsh pool-define-as ${POOL_NAME} --type dir --target "${POOL_PATH}"
sudo virsh pool-autostart ${POOL_NAME}
sudo virsh pool-start ${POOL_NAME}
REM:
* The files generated in the next steps in ``POOL_PATH`` will be owned by root.
* Do not forget the ``POOL_NAME`` variable exported above for the next steps.
Use the local development environment
`````````````````````````````````````
1. Enter the morph local grid directory::
cd morph/grid/local
......
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This Vagrantfile worked for Florian Sesser using Vagrant 2.2.16dev and
# the VirtualBox Hypervisor. Earlier Vagrant and LibVirt did not work.
# This Vagrantfile worked for Florian Sesser using Vagrant 2.2.19 and
# the LibVirt with QEmu Hypervisor. Earlier Vagrant and VirtualBox did worked too.
# Get the LibVirt pool name or use default
# Get a dedicated LibVirt pool name or use default one
pool_name = ENV.has_key?('POOL_NAME') ? ENV['POOL_NAME'] : 'default'
# For instance, one could create such pool beforehand as follows:
# export POOL_NAME=morph_local_$(id -un)
# POOL_PATH="/path/to/your/storage"
# mkdir -p "${POOL_PATH}"
# sudo virsh pool-define-as ${POOL_NAME} --type dir --target "${POOL_PATH}"
# sudo virsh pool-autostart ${POOL_NAME}
# sudo virsh pool-start ${POOL_NAME}
Vagrant.configure("2") do |config|
# For a complete reference, please see the online documentation at
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment