diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-07 16:00:23 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-07 16:00:23 +0200 |
commit | 54f0cba69a023ccf0b781dd76a2b370bf6400585 (patch) | |
tree | 28cbab4bd0c920a4d9b0d59a35d5bb7e02d133c9 | |
parent | f085e59b21f579c85ba69bd45ef379e8fb80255b (diff) | |
download | vmadm-54f0cba69a023ccf0b781dd76a2b370bf6400585.tar.gz |
doc: point at libvirt setup help
-rw-r--r-- | README.md | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -139,3 +139,27 @@ where `XXX` is the public key part of the CA key, as stored in `~/.ssh/ca/vmadm_ca.pub` in the example above. This tells your client that the CA key on the line should be accepted for all hosts (`*`). You can restrict it to only some hosts if you prefer. + +# Setup of host + +The host where vmadm is run needs to have libvirt running and you must +have access to the `qemu:///system` connection. +The Debian wiki has some useful documentation: + +* <https://wiki.debian.org/libvirt> +* <https://wiki.debian.org/KVM> + +I set up my own libvirt hosts using an Ansible role: +<http://git.liw.fi/ansibleness/tree/ansible/roles/vmhost>. It works on +Debian. The short version: + +* install + - `libvirt` (Debian packages `libvirt-daemon-system`, + `libvirt-daemon`, `libvirt-daemon`) + - `virt-install` (Debian package `virtinst`) + - `qemu-img` (Debian package `qemu-uttils`) + - NSS lookups for VMs (Debian package `libnss-libvirt`) + - SSH client (Debian package `openssh-client`) +* make sure you are in the `libvirt` group +* edit `/etc/nsswitch.conf` to have `libvirt libvirt_guest` in the + `hosts` line |