diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2016-11-02 19:27:01 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2016-11-03 14:55:44 +0100 |
commit | af01fa71e0787c66c4f7e6fa88f8ee525959cd26 (patch) | |
tree | cfc8c44938c7b07fda9334d859b7b312e85a9acb /nixos/modules/virtualisation/libvirtd.nix | |
parent | 3d847803e717da8459f87687b92565546ab6af95 (diff) |
nixos.libvirtd: fix broken VMs due to emulator path changes
This had already been fixed in f52f9bf7cd922b54c874e5500a2c64277e57d417,
but the problem was reintroduced in
bce59a1a8bb0430533178df080937ce24efe926a because the path to the XML
files changed.
Diffstat (limited to 'nixos/modules/virtualisation/libvirtd.nix')
-rw-r--r-- | nixos/modules/virtualisation/libvirtd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index ea503a9526f8..5f669dee7545 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -123,7 +123,7 @@ in { # config file. But this path can unfortunately be garbage collected # while still being used by the virtual machine. So update the # emulator path on each startup to something valid (re-scan $PATH). - for file in /etc/libvirt/qemu/*.xml /etc/libvirt/lxc/*.xml; do + for file in /var/lib/libvirt/qemu/*.xml /var/lib/libvirt/lxc/*.xml; do test -f "$file" || continue # get (old) emulator path from config file emulator=$(grep "^[[:space:]]*<emulator>" "$file" | sed 's,^[[:space:]]*<emulator>\(.*\)</emulator>.*,\1,') |