From ee032196e53f9cfc85f4785f6c2422d1cc2013fe Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Thu, 1 Feb 2018 09:56:25 +0000 Subject: [PATCH] Add example of deploying with privileged virt This example is copied from the following opnfv review https://gerrit.opnfv.org/gerrit/#/c/28675/26/config/quickstart_defaults.yaml It seems to work well for me, I can deploy VMs via quickstart which show up via virt-manager and should survive reboots because the qcow2 files are stored in /home/stack. Change-Id: Ifbd0d6eefaebc3e8aec986501e67eadb5d7aa9cd Closes-Bug: #1692987 --- config/environments/dev_privileged_virt.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/environments/dev_privileged_virt.yml diff --git a/config/environments/dev_privileged_virt.yml b/config/environments/dev_privileged_virt.yml new file mode 100644 index 000000000..27ccecc45 --- /dev/null +++ b/config/environments/dev_privileged_virt.yml @@ -0,0 +1,9 @@ +# If you prefer privileged VMs in order to use tools like virt-manager on the host +# you can use these options. This also makes VMs survive reboots \o/ +# This is particularly useful for local development environments +non_root_chown: true +non_root_user: stack +undercloud_user: stack +working_dir: "/home/{{non_root_user}}" +ssh_user: root +libvirt_uri: qemu:///system