51

I checked ~/.libvirt* and ~/.config/libvirt*, non of them seem to contain config file of created VM, where is the config stored? I'm not running virt-manager as root user.

1
  • 4
    Just FYI, Debian/sid(9), virt-manager version 1:1.0.1-5 change the config to "~/.config/dconf/user"
    – kiiwii
    Commented May 15, 2015 at 7:05

3 Answers 3

48

Oddly enough, under /etc/libvirt. virt-manager doesn't run as root, but it communicates with libvirtd that does.

3
  • 4
    correct, and now 2019 Red Hat Enterprise Linux 8 still use it in ls -lah /etc/libvirt/qemu/
    – haidarvm
    Commented Aug 15, 2019 at 13:56
  • 1
    For anyone who came here searching for where it stores the operating system images, it's in /var/lib/libvirt/images/. You can find out the location in the options to clone the virtual machine. When you select Clone this disk and select Details.
    – Nav
    Commented Aug 10, 2022 at 15:23
  • That's libvirt's config, not the virt-manager's itself as the question was asking. Virt-manager is just a client app that communicates with libvirt.
    – deltaray
    Commented Jan 5, 2023 at 16:13
17

Client information (eg connection strings) is stored in the dconf (accessible with dconf-editor) under /org/virt-manager/virt-manager/.

6
  • 4
    exactly what I was looking for
    – nelaaro
    Commented Feb 10, 2017 at 6:44
  • me too, though it's not an answer to this question
    – reedstrm
    Commented Nov 10, 2017 at 15:03
  • @reedstrm for that you should look where dconf stores its files: developer.gnome.org/dconf/unstable/dconf-overview.html
    – z3ntu
    Commented Nov 10, 2017 at 19:08
  • 1
    This was exactly what I needed to know too. dbus wasn't running and hence configs were not being saved.
    – Coops
    Commented Apr 13, 2020 at 2:04
  • 1
    Now they are gone again...
    – bomben
    Commented Jul 8, 2020 at 9:11
5

virt-manager config is on

~/.gconf/apps/virt-manager/
2
  • this is where I found my stored connection settings for virt-manager
    – Pete
    Commented Nov 23, 2013 at 0:33
  • 2
    This is probably the old config path.
    – deltaray
    Commented Jan 5, 2023 at 16:12

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.