<commit_before>docker-vagrant-libvirt
======================

A docker container for vagrant-libvirt. Basically, I put these instructions into a docker container (except I used the embedded vagrant ruby instead of rvm).

https://ttboj.wordpress.com/2014/05/13/vagrant-on-fedora-with-libvirt-reprise/

Build
=====
docker build -t vagrant_libvirt:latest .


Run
===
docker run --rm --privileged=true -v /var/run/libvirt:/var/run/libvirt -v /var/lib/ctr-vagrant-libvirt:/persistent-data -ti vagrant_libvirt


Notes
=====
* This container has to run priviledged so that it can communicate with the libvirt socket

* Libvirt must still be setup on the host machine. See the section "KVM/QEMU installation" from here: https://ttboj.wordpress.com/2014/05/13/vagrant-on-fedora-with-libvirt-reprise/

* libvirt commands work inside the docker container. For example: virsh list --all

* This container uses /persistent-data to store vagrant box images, and other persistent data. The command above uses /var/lib/ctr-vagrant-libvirt as the persistent directory, but any directory can be used.

* Only tested on Fedora 20 x86_64, but may work elsewhere<commit_msg>Added /var/lib/libvirt as a bind mount into the docker container (needed for vagrant up).<commit_after>docker-vagrant-libvirt
======================

A docker container for vagrant-libvirt. Basically, I put these instructions into a docker container (except I used the embedded vagrant ruby instead of rvm).

https://ttboj.wordpress.com/2014/05/13/vagrant-on-fedora-with-libvirt-reprise/

Build
=====
docker build -t vagrant_libvirt:latest .


Run
===
docker run --rm --privileged=true -v /var/lib/libvirt:/var/lib/libvirt -v /var/run/libvirt:/var/run/libvirt -v /var/lib/ctr-vagrant-libvirt:/persistent-data -ti vagrant_libvirt


Notes
=====
* This container has to run priviledged so that it can communicate with the libvirt socket

* Libvirt must still be setup on the host machine. See the section "KVM/QEMU installation" from here: https://ttboj.wordpress.com/2014/05/13/vagrant-on-fedora-with-libvirt-reprise/

* libvirt commands work inside the docker container. For example: virsh list --all

* This container uses /persistent-data to store vagrant box images, and other persistent data. The command above uses /var/lib/ctr-vagrant-libvirt as the persistent directory, but any directory can be used.

* Only tested on Fedora 20 x86_64, but may work elsewhere
{'fraction_non_alphanumeric': 0.11161637040099215, 'fraction_numerical': 0.018189334435717238, 'mean_word_length': 4.318681318681318, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '278199', 'n_tokens_mistral': 794, 'n_tokens_neox': 728, 'n_words': 264}