Skip to content

Commit

Permalink
Merge pull request freedomofpress#3867 from zenmonkeykstop/docs-fixes…
Browse files Browse the repository at this point in the history
…-libvirt-install

Updates libvirt setup instructions to cover Debian 9 correctly, tiny fix to install docs
  • Loading branch information
redshiftzero authored Oct 15, 2018
2 parents 00fa32a + c910dcb commit 8fdfd59
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
31 changes: 19 additions & 12 deletions docs/development/virtual_environments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Install libvirt and QEMU:
.. code:: sh
sudo apt-get update
sudo apt-get install libvirt-bin libvirt-dev qemu-utils qemu
sudo apt-get install libvirt-bin libvirt-dev qemu-utils qemu virt-manager
sudo /etc/init.d/libvirt-bin restart
Add your user to the libvirtd group:
Expand All @@ -159,8 +159,7 @@ Add your user to the libvirtd group:
sudo addgroup libvirtd
sudo usermod -a -g libvirtd $USER
Install Vagrant along with the required plugins for converting and using
libvirt boxes:
Install the required Vagrant plugins for converting and using libvirt boxes:

.. code:: sh
Expand All @@ -171,6 +170,14 @@ libvirt boxes:
valid provider. In this case, remove Vagrant with ``sudo apt-get remove
vagrant`` and reinstall it.

Log out, then log in again. Verify that libvirt is installed and KVM is available:

.. code:: sh
libvirtd --version
kvm-ok
Debian 9 setup
^^^^^^^^^^^^^^

Expand All @@ -179,9 +186,10 @@ Install Vagrant, libvirt, QEMU, and their dependencies:
.. code:: sh
sudo apt-get update
sudo apt-get install -y vagrant vagrant-libvirt libvirt-daemon-system qemu-kvm
sudo apt-get install -y vagrant vagrant-libvirt libvirt-daemon-system qemu-kvm virt-manager
sudo apt-get install -y ansible rsync
vagrant plugin install vagrant-libvirt
vagrant plugin install vagrant-mutate
sudo usermod -a -G libvirt $USER
sudo systemctl restart libvirtd
Expand All @@ -195,18 +203,17 @@ Add your user to the kvm group to give it permission to run KVM:
sudo modprobe kvm
sudo modprobe kvm_intel
Validate libvirt config
^^^^^^^^^^^^^^^^^^^^^^^

Log out, then log in again. Verify that libvirt is installed and KVM is
available:
Log out, then log in again. Verify that libvirt is installed and your system
supports KVM:

.. code:: sh
libvirtd --version
kvm-ok
sudo libvirtd --version
[ `egrep -c 'flags\s*:.*(vmx|svm)' /proc/cpuinfo` -gt 0 ] && \
echo "KVM supported!" || echo "KVM not supported..."
Set libvirt as the default provider
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Set the default Vagrant provider to ``libvirt``:

Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ is mounted. From the root of the SecureDrop repository, run: ::
where ``/media/[USB folder]/`` corresponds to the *Transfer Device*. (You can
also use the copy and paste capabilities of the file manager.)

Repeat this step for the Admin GPG key and custom header image.
Repeat this step for the Admin GPG key.

.. _ansible-site-specific:

Expand Down

0 comments on commit 8fdfd59

Please sign in to comment.