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.
Asked
Active
Viewed 9.4k times
46
daisy
- 53,527
- 78
- 236
- 383
-
3Just FYI, Debian/sid(9), virt-manager version 1:1.0.1-5 change the config to "~/.config/dconf/user" – kiiwii May 15 '15 at 07:05
3 Answers
42
Oddly enough, under /etc/libvirt. virt-manager doesn't run as root, but it communicates with libvirtd that does.
Ignacio Vazquez-Abrams
- 44,857
- 7
- 93
- 100
-
3correct, and now 2019 Red Hat Enterprise Linux 8 still use it in `ls -lah /etc/libvirt/qemu/` – haidarvm Aug 15 '19 at 13:56
-
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 Aug 10 '22 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 Jan 05 '23 at 16:13
15
Client information (eg connection strings) is stored in the dconf (accessible with dconf-editor) under /org/virt-manager/virt-manager/.
z3ntu
- 153
- 1
- 6
-
4
-
-
@reedstrm for that you should look where dconf stores its files: https://developer.gnome.org/dconf/unstable/dconf-overview.html – z3ntu Nov 10 '17 at 19:08
-
1This was exactly what I needed to know too. dbus wasn't running and hence configs were not being saved. – Coops Apr 13 '20 at 02:04
-
Me too on Ubuntu 18. After `apt install dconf-editor` connections are now saved. – bomben Jul 08 '20 at 08:35
-
1