From 54f0cba69a023ccf0b781dd76a2b370bf6400585 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 7 Mar 2021 16:00:23 +0200 Subject: doc: point at libvirt setup help --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 5525589..7c56cec 100644 --- a/README.md +++ b/README.md @@ -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: + +* +* + +I set up my own libvirt hosts using an Ansible role: +. 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 -- cgit v1.2.1