[libvirt-users] logging of domains
Hi, recently i had some domains stopped without any obvious reason for me. Unfortunately i didn't find the cause. I'd like to log information about the domains that i have more information the next time this will happen. In /etc/libvirt/libvirtd.conf i have: log_level = 3 log_outputs="3:file:/var/log/libvirt/libvirtd.log" which creates enormous log files, but with logrotate and xz i can manage that. But i think this is just related to libvirtd. The logs for the domains under /var/log/libvirt/qemu are poor and very small, nearly no information. Is there a way to be more verbose with the domains so that i may find helpful information in these logs when the domains stop for the next time ? Thanks. Bernd -- Bernd Lentes Systemadministration Institut für Entwicklungsgenetik Gebäude 35.34 - Raum 208 HelmholtzZentrum münchen bernd.len...@helmholtz-muenchen.de phone: +49 89 3187 1241 phone: +49 89 3187 3827 fax: +49 89 3187 2294 http://www.helmholtz-muenchen.de/idg wer Fehler macht kann etwas lernen wer nichts macht kann auch nichts lernen Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Stellv. Aufsichtsratsvorsitzender: MinDirig. Dr. Manfred Wolter Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Heinrich Bassler, Kerstin Guenther Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671 ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
Re: [libvirt-users] Snapshot of single block device
On Wed, May 29, 2019 at 13:35:12 +0200, jarek wrote: > Hi, > > W dniu 29.05.2019, śro o godzinie 09∶55 +0200, użytkownik Peter Krempa > napisał: > > I understand, that it is not possible to make a snapshot of > > > physical > > > device, but it is enough for me to take snapshot of vda. How to > > > force > > > virsh to ignore sda ? > > > > --diskspec sda,snapshot=no > > now it works, thanks a lot! By the way. You can also create a snapshot of sda, but you need to specify the destination of the overlay manually e.g.: --diskspec sda,file=/path/to/sda.snap.qcow2 Libvirt just does not want to generate the filename for block devices since we can't know where to put the snapshot. signature.asc Description: PGP signature ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
Re: [libvirt-users] Snapshot of single block device
Hi, W dniu 29.05.2019, śro o godzinie 09∶55 +0200, użytkownik Peter Krempa napisał: > I understand, that it is not possible to make a snapshot of > > physical > > device, but it is enough for me to take snapshot of vda. How to > > force > > virsh to ignore sda ? > > --diskspec sda,snapshot=no now it works, thanks a lot! best regards Jarek ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
Re: [libvirt-users] Snapshot of single block device
On Wed, May 29, 2019 at 09:32:37 +0200, jarek wrote: > Hello! > > I have a guest with one qcow2 disk image (vda) and one physical > partition (sda) from host. When I'm trying to get snapshot with: > > virsh snapshot-create-as . > > It fails with message: error: unsupported configuration: source for > disk 'sda' is not a regular file; refusing to generate external > snapshot name According to this error message it looks like you are attempting to do an external snapshot, e.g. by using --disk-only. This is fortunate because external snapshots can be selected on a per disk basis: > > I understand, that it is not possible to make a snapshot of physical > device, but it is enough for me to take snapshot of vda. How to force > virsh to ignore sda ? --diskspec sda,snapshot=no signature.asc Description: PGP signature ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
[libvirt-users] Snapshot of single block device
Hello! I have a guest with one qcow2 disk image (vda) and one physical partition (sda) from host. When I'm trying to get snapshot with: virsh snapshot-create-as . It fails with message: error: unsupported configuration: source for disk 'sda' is not a regular file; refusing to generate external snapshot name I understand, that it is not possible to make a snapshot of physical device, but it is enough for me to take snapshot of vda. How to force virsh to ignore sda ? best regards Jarek ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users