Re: [libvirt-users] VM cloning with memory state

2019-09-23 Thread Peter Krempa
On Mon, Sep 23, 2019 at 11:17:21 +0300, Benny Zlotnik wrote: > Hi, > > We are trying to implement VM cloning with snapshots for ovirt. For > the most part, everything seems to work fine. However, when > saved-state comes into play it gets complicated. As it seems > impossible to restore a saved

Re: [libvirt-users] could not create snapshotxml on encryption image

2019-09-06 Thread Peter Krempa
On Fri, Sep 06, 2019 at 14:39:56 +0800, 18781374080 wrote: > hi ,everyone! > I am a newcomer to Libvirt, and I don't know if it's a native question, > > > I create snapshots of virtual machines that use encrypted disk, The console > gave me the following error: > > > Traceback(most recent

Re: [libvirt-users] Libvirt API for attaching volume to domain

2019-08-15 Thread Peter Krempa
[Please don't top-post on technical lists.] On Wed, Aug 14, 2019 at 19:43:11 +0530, Varsha Verma wrote: > Thanks, this is exactly what I needed. > > Is there some documentation where I can get how to exactly call this > function along with the arguments? python has builtin documentation:

Re: [libvirt-users] Libvirt API for attaching volume to domain

2019-08-14 Thread Peter Krempa
On Wed, Aug 14, 2019 at 18:23:30 +0530, Varsha Verma wrote: > Hi, > > I wanted to know if there is any Python API exposed for libvirt using which > I can attach a libvirt volume to a libvirt domain/VM. > > I intend to do something similar to the `attach-disk` command of virsh > using python.

Re: [libvirt-users] Recover snapshots from qcow images

2019-08-14 Thread Peter Krempa
On Tue, Aug 13, 2019 at 15:15:11 +0200, Petr Stodulka wrote: > Hi guys, > I had to move to the new laptop week ago and I screw migration of my virtual > machines. I recovered my virtual machines on the new laptop (virsh define) > using the backed up xml files, but I am missing any file with

Re: [libvirt-users] does virsh have a history with timestamps ?

2019-08-13 Thread Peter Krempa
On Mon, Aug 12, 2019 at 19:24:29 +0200, Lentes, Bernd wrote: > Hi, > > i knwo that virsh has its own history, but are somewhere the respective > timestamps logged ? No, libvirt uses readline's history infrastructure which does not record timestamps with the entries. This is similar to for

Re: [libvirt-users] virsh command to list CPU,Memory and Storage

2019-07-30 Thread Peter Krempa
On Tue, Jul 30, 2019 at 09:06:25 +0200, Erik Skultety wrote: > On Mon, Jul 29, 2019 at 11:08:57PM +0530, Kaushal Shriyan wrote: > > Hi, > > > > Is there a way to find out total CPU's, Memory and Storage using virsh > > command? For example virsh list --all list out all VM's > > > > 11

Re: [libvirt-users] Preloading shared library with libVirt

2019-07-18 Thread Peter Krempa
On Wed, Jul 17, 2019 at 13:33:08 -0500, Probir Roy wrote: > Hi, > > I am trying to preload two shared libraries while running Qemu using > libvirt. To preload the shared libraries I have added an environment > variable in the $domain.xml file with the following command: > > ``` > virt-xml

Re: [libvirt-users] Strange issues with libvirt v5.5.0

2019-07-11 Thread Peter Krempa
On Thu, Jul 11, 2019 at 16:46:29 +0200, Julian Sternberg wrote: > Hey Peter, Hi, at first I'd like to ask you to CC the libvirt-users or libvir-list with such kind of questions (questions implying regression of behaviour are okay on the development list). I've CC'd libvirt-users with this reply

Re: [libvirt-users] libvirt-python Create External Snapshot

2019-07-04 Thread Peter Krempa
On Wed, Jul 03, 2019 at 15:10:42 -0400, Roger Jin wrote: > Hi Libvirt, > Does libvirt-python currently support the creation of external snapshots? > I ran > > domain.snapshotCreateXML(xml) > > where xml is > > > snap1 > Snapshot of OS install and updates > > > > >

Re: [libvirt-users] Blockpull while domain is shutoff

2019-07-04 Thread Peter Krempa
On Wed, Jul 03, 2019 at 14:07:10 -0400, Roger Jin wrote: > Hi Libvirt, > Is there a command that performs the same operation as blockpull while a > domain is shutoff? I have a backing chain > > base <-- A <-- B > > that I would like to shorten to > > base <-- B Generally we refer as 'base'

Re: [libvirt-users] mkfs fails on qemu-nbd device

2019-06-27 Thread Peter Krempa
On Thu, Jun 27, 2019 at 16:22:27 +0530, Tanmoy Sinha wrote: > Hi All, > > I am unable to figure out the issue here, when I try to create a filesystem > (ext4) on a virtual disk using qemu-nbd. This happens intermittently. > > Following is the sequence of commands:- > > $> qemu-img create -f

Re: [libvirt-users] libvirtd does not update VM .xml configurations on filesystem after virsh snapshot/blockcommit

2019-06-20 Thread Peter Krempa
On Wed, Jun 19, 2019 at 14:23:43 +0200, Saso Tavcar wrote: > Hi, > > Recently We've upgraded some KVM hosts from Fedora 29 to Fedora 30 and > now experience broken VM configurations on filesystem after virsh blockcommit. > > Commands "virsh dumpxml ..." and "virsh dumpxml --inactive ..." is

Re: [libvirt-users] blockcommit of domain not successfull

2019-06-14 Thread Peter Krempa
On Thu, Jun 13, 2019 at 16:01:18 +0200, Lentes, Bernd wrote: > > - On Jun 13, 2019, at 1:08 PM, Bernd Lentes > bernd.len...@helmholtz-muenchen.de wrote: > > I found further information in /var/log/messages for both occurrences: > > 2019-06-01T03:05:31.620725+02:00 ha-idg-2

Re: [libvirt-users] Using qemu active blockcommit results in 'Permission denied' error

2019-06-13 Thread Peter Krempa
On Tue, Jun 11, 2019 at 14:35:46 +0200, Peter Krempa wrote: > On Fri, May 31, 2019 at 14:03:40 +0200, Marcus Hoffmann wrote: > > Hi Peter, > > > > On 31.05.19 09:57, Peter Krempa wrote: > > > On Thu, May 30, 2019 at 22:12:14 +0200, Marcus Hoffmann wrote: >

Re: [libvirt-users] blockcommit of domain not successfull

2019-06-13 Thread Peter Krempa
On Tue, Jun 11, 2019 at 19:19:05 +0200, Lentes, Bernd wrote: [...] > > Hi, Hi, > > it happened again. > Following the log of my script it started on 8th of june at 5:59:09 (UTC+2) > to blockcommit the domain. > These are the related lines in libvirtd.log: >

Re: [libvirt-users] Using qemu active blockcommit results in 'Permission denied' error

2019-06-11 Thread Peter Krempa
On Fri, May 31, 2019 at 14:03:40 +0200, Marcus Hoffmann wrote: > Hi Peter, > > On 31.05.19 09:57, Peter Krempa wrote: > > On Thu, May 30, 2019 at 22:12:14 +0200, Marcus Hoffmann wrote: > >> Hello all, > > > > Hi, > > > >> > >> I tr

Re: [libvirt-users] Same host migration

2019-06-10 Thread Peter Krempa
On Sat, Jun 08, 2019 at 23:03:50 +0300, Vasiliy Tolstov wrote: > чт, 6 июн. 2019 г. в 14:19, Sukrit Bhatnagar : > > > > Hi, > > > > I have been selected for GSoC'19 under qemu and was > > trying out migration of the pvrdma device. > > For my current task, I need to perform a "null" migration > >

Re: [libvirt-users] blockcommit of domain not successfull

2019-06-06 Thread Peter Krempa
On Wed, Jun 05, 2019 at 18:02:06 +0200, Lentes, Bernd wrote: [...] > Hi, > > i followed https://wiki.libvirt.org/page/DebugLogs. > Where do i have to set LIBVIRT_LOG_OUTPUTS="1:file:/tmp/libvirt_client.log" ? > Also in /etc/libvirt/libvirtd.conf ? No, that's an environment variable if you want

Re: [libvirt-users] Using qemu active blockcommit results in 'Permission denied' error

2019-06-05 Thread Peter Krempa
On Wed, Jun 05, 2019 at 17:02:05 +0200, Marcus Hoffmann wrote: > On May 31, 2019 2:03:40 PM GMT+02:00, Marcus Hoffmann wrote: [...] > Hi Peter, Hi, > > did you get the logfile I sent? (Just wanting to make sure the email actually > got delivered. I get a lot of dmarc failures from the

Re: [libvirt-users] blockcommit of domain not successfull

2019-06-05 Thread Peter Krempa
On Wed, Jun 05, 2019 at 13:33:49 +0200, Lentes, Bernd wrote: > Hi Peter, > > thanks for your help. > > - On Jun 5, 2019, at 9:27 AM, Peter Krempa pkre...@redhat.com wrote: [...] > > > > > So that's interresting. Usually assertion failure in qemu leads t

Re: [libvirt-users] blockcommit of domain not successfull

2019-06-05 Thread Peter Krempa
On Tue, Jun 04, 2019 at 14:44:29 +0200, Lentes, Bernd wrote: > Hi, Hi, > > i have several domains running on a 2-node HA-cluster. > Each night i create snapshots of the domains, after copying the consistent > raw file to a CIFS server i blockcommit the changes into the raw files. > That's

Re: [libvirt-users] Using qemu active blockcommit results in 'Permission denied' error

2019-05-31 Thread Peter Krempa
On Thu, May 30, 2019 at 22:12:14 +0200, Marcus Hoffmann wrote: > Hello all, Hi, > > I tried following this guide: > https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit > > Unfortunately when I try to do the final virsh blockcommit step I always > get the following error: >

Re: [libvirt-users] Snapshot of single block device

2019-05-29 Thread Peter Krempa
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

Re: [libvirt-users] Snapshot of single block device

2019-05-29 Thread Peter Krempa
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:

Re: [libvirt-users] Problem passing qemu cmdline option when using in domain xml.

2019-03-27 Thread Peter Krempa
On Wed, Mar 27, 2019 at 03:05:17 +0800, Chenzijian wrote: > 【Sorry there I maked some mistake in my first email, here is the correct one.】 > I am trying to pass-through the parallel port of the host to the guest. > When I just used qemu-system-x86_64 with option '-chardev >

Re: [libvirt-users] virsh snapshot-create-as: change umask on snapshots

2019-03-22 Thread Peter Krempa
On Wed, Mar 20, 2019 at 15:48:43 -0500, Eric Blake wrote: > On 3/20/19 1:50 PM, Mircea Husz wrote: > > I scripted the creation of snapshots and it works fine. Now I'd like to run > > the script as non-root. > > > > virsh snapshot-create-as --domain hq-live-v01 \ > >      --name snappy \ > >      

Re: [libvirt-users] KVM - full system ( disk+memory) snapshot by excluding the raw disks

2019-03-18 Thread Peter Krempa
On Fri, Mar 15, 2019 at 12:52:06 +, Suresh Babu Kandukuru wrote: > Hi There , I have KVM VM with 4 qcow2 disks and 2 raw disks . when I > try to take full system snapshot by excluding raw disks . it is give > below error . can you help me how to fix this ?. or is it possible to > take full

Re: [libvirt-users] virsh migrate --copy-storage-inc

2019-02-11 Thread Peter Krempa
On Sun, Feb 10, 2019 at 12:11:42 +0100, Paul van der Vlis wrote: > Hello, > > I use libvirt on machines without shared storage. My VM's have all one > qcow2-disk, with the same name as the VM. > > When I want to migrate a VM, I check if there is an qcow2 image on the > other host with that name.

Re: [libvirt-users] VM running with storage image file deleted

2019-01-15 Thread Peter Krempa
On Thu, Jan 10, 2019 at 11:35:13 +0100, Michal Privoznik wrote: > On 1/10/19 11:19 AM, Roosen, Nicolas wrote: > > Hello, I have a strange issue I'd like to have some insights on. > > > > > > We have 2 running VM, the storage pool is over NFS. Unfortunately, the > > backend storage folder has

Re: [libvirt-users] script called from qemu hook freezes.

2019-01-07 Thread Peter Krempa
On Fri, Jan 04, 2019 at 17:27:48 +0100, daggs wrote: > Greetings Peter, > > > Sent: Friday, January 04, 2019 at 4:47 PM > > From: "Peter Krempa" > > To: daggs > > Cc: libvirt-users@redhat.com > > Subject: Re: [libvirt-users] script called from q

Re: [libvirt-users] script called from qemu hook freezes.

2019-01-04 Thread Peter Krempa
On Thu, Jan 03, 2019 at 18:07:58 +0100, daggs wrote: > Greetings, > > I'm executing an external script when the qemu hook is called with start or > release, the script is rather simple, upon start it iterates over the output > of lsusb -t and for each device, it looks if it should be added to

Re: [libvirt-users] import qcow with snapshots

2018-12-10 Thread Peter Krempa
On Sat, Dec 08, 2018 at 08:59:31 +0100, Chris wrote: > All, > > is it possible to create a new KVM machine from an existing qcow (v3) > image with snapshots? snapshot-list doesn't show them, when using > virt-manager 1:1.5.1-0ubuntu1.1 to create the machine. > > * t-ad5.img: QEMU QCOW Image

Re: [libvirt-users] virsh console and other language keymaps

2018-11-29 Thread Peter Krempa
On Thu, Nov 29, 2018 at 06:41:19 -0800, Michael Taboada wrote: > Hi, > I've got a small vm server running kvm + libvirt, and I made a simple shell > script that allows users to ssh in and control their vms (power off, etc). > However, one of my users uses the french canadian keyboard layout on

Re: [libvirt-users] External Snapshots vs Core Dump.

2018-11-26 Thread Peter Krempa
[please don't top-post on technical lists] On Mon, Nov 26, 2018 at 19:03:02 +0530, Tanmoy Sinha wrote: > Thanks a lot for the detailed explanation. Currently I am taking a dump of > the memory with the virsh dump ‘live’ flag and taking the snapshot with the > memory file pointed to /dev/null,

Re: [libvirt-users] External Snapshots vs Core Dump.

2018-11-26 Thread Peter Krempa
On Fri, Nov 23, 2018 at 20:08:13 +0530, Tanmoy Sinha wrote: > Hi, > > I would like to get a clear picture on external snapshots memory dump ( > i.e. system-checkpoint) vs dumping the memory of the guest. I have created > external snapshots which produces a disk file and a memory file. I am not >

Re: [libvirt-users] timeout on VM actions prone to hang

2018-11-07 Thread Peter Krempa
On Wed, Nov 07, 2018 at 14:59:59 +0100, Michal Privoznik wrote: > On 11/07/2018 01:46 PM, Nikola Ciprich wrote: > > Hi fellow libvirt users, > > > > I'd like to ask, whether somebody possibly dealt with similar > > problem we're hitting.. Some of libvirt VM operations (ie > > fs freeze) are prone

Re: [libvirt-users] How to find out what is deleting my vms

2018-11-07 Thread Peter Krempa
On Wed, Nov 07, 2018 at 15:32:27 +, Andy Gibbs wrote: > Hi, > > > I have a CentOS-7 server running KVM but also oVirt. > > > Recently, following updates, VMs not handled by oVirt have been deleting > themselves after they shut down. Previously to this, I have not had any > problems of

Re: [libvirt-users] How can I rebase network disk?

2018-11-07 Thread Peter Krempa
On Wed, Nov 07, 2018 at 13:22:32 +0800, Boxiang Zhu wrote: > > > Thanks for your reply. The nova project uses the virDomainBlockRebase API to > finish the rebase operation from the old disk to the new disk not using the > virDomainBlockCopy API. > I am confused of the difference of

Re: [libvirt-users] How can I rebase network disk?

2018-11-05 Thread Peter Krempa
On Fri, Nov 02, 2018 at 13:42:56 +0800, Boxiang Zhu wrote: > > > Hi. > I am using openstack, ceph and libvirt now. > > > The live volume migration will call the libvirt rebase function in > openstack nova project. > >

Re: [libvirt-users] Device lease hot unplug and events

2018-10-15 Thread Peter Krempa
On Mon, Oct 15, 2018 at 09:56:39 +0200, Milan Zamazal wrote: > Peter Krempa writes: > > > On Fri, Oct 12, 2018 at 19:33:54 +0200, Milan Zamazal wrote: > >> Hi, when working on hot unplugs of various devices, I've found out that > >> hot unplu

Re: [libvirt-users] Device lease hot unplug and events

2018-10-15 Thread Peter Krempa
On Fri, Oct 12, 2018 at 19:33:54 +0200, Milan Zamazal wrote: > Hi, when working on hot unplugs of various devices, I've found out that > hot unplugging device doesn't generate > VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED event. also doesn't have an > alias, so it wouldn't be identifiable in the

Re: [libvirt-users] how "safe" is blockcommit ?

2018-09-10 Thread Peter Krempa
On Sat, Sep 08, 2018 at 19:28:47 +0200, Gionatan Danti wrote: > Il 07-09-2018 21:26 Eric Blake ha scritto: [...] > > > - blockcommit the overlay: blockcommit guest /path/to/testsn > > > --active --wait --verbose --pivot > > > - delete the snapshot: snapshot-delete guest --snapshotname testsn > >

Re: [libvirt-users] Immutable backing files

2018-09-07 Thread Peter Krempa
On Thu, Sep 06, 2018 at 18:23:46 +0200, Gionatan Danti wrote: > Il 06-09-2018 12:54 Peter Krempa ha scritto: > > You forgot to specify the format of the backing file into the overlay > > file (qemu-img option -F). Libvirt treats any unspecified format as raw > > since it's not

Re: [libvirt-users] Immutable backing files

2018-09-06 Thread Peter Krempa
On Tue, Sep 04, 2018 at 17:32:49 +0200, Gionatan Danti wrote: > Il 03-09-2018 13:14 Gionatan Danti ha scritto: > > Hi list, > > suppose I have an immutable (ie: due to a read-only snapshot) backing > > file. > > > > After creating an overlay file with "qemu-img create -f qcow2 -o > >

Re: [libvirt-users] LIBVIRT-4.6.0 can't work with QEMU 3.0.0

2018-08-08 Thread Peter Krempa
On Wed, Aug 08, 2018 at 10:06:12 +0100, Daniel Berrange wrote: > On Wed, Aug 08, 2018 at 10:58:50AM +0200, Holger Schranz wrote: > > > checking for JANSSON... no > > This is the problem. In 4.6.0 we just switched to using JANSSOn instead > of yajl for JSON parsing. Your host doesn't have the

Re: [libvirt-users] libvirt and UEFI/SecureBoot

2018-07-16 Thread Peter Krempa
On Sun, Jul 15, 2018 at 21:22:35 +0300, Shmuel Melamud wrote: > Hi! > > I'm working currently on integration of UEFI/SecureBoot support into > oVirt. And I have several questions about UEFI/SecureBoot support in > libvirt. Can you please help me with them? > > For UEFI I add the following to the

Re: [libvirt-users] Read-only Guests for Anti-Forensics

2018-06-26 Thread Peter Krempa
On Sun, Jun 24, 2018 at 23:29:13 +, procmem wrote: > Hello. I'm interested in running guests as read-only to turn them into a > sort of virtualized "live=cd". The goal is to leave no forensic evidence > on the host disk or virtual one which would lead to traces on the host > still- similar to

Re: [libvirt-users] Direct Kernel Boot and Security

2018-06-26 Thread Peter Krempa
On Sun, Jun 24, 2018 at 21:19:06 +, procmem wrote: > Hi. What are the security implications for the host when using direct > kernel boot for guests that are potentially malicious? Is guest The same as for any VM. The only factor may be how the kernel for the guest is obtained. If the kernel

Re: [libvirt-users] Resource control is not supported on this host

2018-03-13 Thread Peter Krempa
On Tue, Mar 13, 2018 at 15:34:00 +0100, Michal Privoznik wrote: > On 03/13/2018 09:51 AM, Allence wrote: > > Libvirt release version V4.1.0 > > It add a element is cachetune > > After we add this, We can use host-cpu-cache > > But when i add it, my host get a error message: > > "Resource control

Re: [libvirt-users] Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)

2018-03-05 Thread Peter Krempa
On Mon, Mar 05, 2018 at 11:11:37 -0500, John Ferlan wrote: > > > On 03/05/2018 03:47 AM, Peter Krempa wrote: > > On Fri, Mar 02, 2018 at 15:32:44 -0500, John Ferlan wrote: > >> > >> > >> On 03/02/2018 08:28 AM, Peter Krempa wrote: > >>> On

Re: [libvirt-users] Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)

2018-03-05 Thread Peter Krempa
On Fri, Mar 02, 2018 at 15:32:44 -0500, John Ferlan wrote: > > > On 03/02/2018 08:28 AM, Peter Krempa wrote: > > On Tue, Feb 27, 2018 at 09:53:00 +0100, Michal Privoznik wrote: > >> On 02/27/2018 03:06 AM, Star Guo wrote: > >>> Hello Everyone, > >>

Re: [libvirt-users] Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)

2018-03-02 Thread Peter Krempa
On Tue, Feb 27, 2018 at 09:53:00 +0100, Michal Privoznik wrote: > On 02/27/2018 03:06 AM, Star Guo wrote: > > Hello Everyone, > > > > > > > > My pc run in CentOS 7.4 and install libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph > > 10.2.10 ALL-in-One. > > > > > > > > I use python-sdk with libvirt and

Re: [libvirt-users] Ask question

2018-02-08 Thread Peter Krempa
On Thu, Feb 08, 2018 at 22:33:05 +0800, 李杰 wrote: > Dear > > > Recently,I am interested in libvirt,but I found the libvirt > does't support revert and delete the external snapshot which the raw disk > based guest.My libvirt and qemu release are both 3.2.0.So I have a >

Re: [libvirt-users] failed to update cdrom device with rbd disk

2018-02-06 Thread Peter Krempa
On Sat, Feb 03, 2018 at 00:36:36 +0800, chao.z...@zstack.io wrote: > Hello, > > I'm trying to using virsh update-device to update the CDROM from type='file' > to ceph rbd iso with type='network'. For future reference this was filed in the upstream bugzilla as:

Re: [libvirt-users] Connection to libvirt

2018-01-30 Thread Peter Krempa
On Mon, Jan 29, 2018 at 11:40:42 +0200, Ori Liel wrote: > My attempt to install a host using oVirt results in the following message > in the host: > > libvirt-buests.sh[3679]: Unable to connect to libvirt currently. Retrying > .. 10Please enter your authentication name: Please enter your

Re: [libvirt-users] Whether libvirt can support all backing chain layer are iscsi network disk type

2018-01-11 Thread Peter Krempa
On Tue, Jan 09, 2018 at 22:12:00 -0500, Meina Li wrote: > Hi, > > For backing chain that all images are iscsi network disk type , such as > iscsi://ip/iqn../0(base image) <-iscsi://ip/iqn../1(active image). > Currently, 'qemu-img info --backing-chain' command can display correct > backing

Re: [libvirt-users] question about how to set rng device on vm

2017-10-26 Thread Peter Krempa
On Thu, Oct 26, 2017 at 09:30:55 +0200, Michal Privoznik wrote: > On 10/25/2017 03:41 PM, Yalan Zhang wrote: > > Hi Amos, > > > > I'm a libvirt QE, and I can not understand the setting on libvirt.org for > > rng device. > > Could you please help to explain a little? > > (The xml in

Re: [libvirt-users] error: internal error: missing backend for pool type 11 (zfs)

2017-10-04 Thread Peter Krempa
On Tue, Oct 03, 2017 at 08:44:10 +0200, Michal Privoznik wrote: > On 10/02/2017 11:42 PM, Nick Gilmour wrote: [...] > > 2) storage backends are static. While we have libvirt drivers in > separate modules (.so files) and load them at start up, it's not the > same story with storage driver

Re: [libvirt-users] external snapshot is missing object secrets

2017-09-13 Thread Peter Krempa
On Fri, Aug 25, 2017 at 09:49:10 +0200, Markus Schade wrote: > Hello, > > I have virtual machines running with a ceph storage backend. > > When creating an external qcow2 snapshot with a libvirt version without > support for the new object secret passing, the backing file info would > list the

Re: [libvirt-users] virsh blockcommit fails regularily (was: virtual drive performance)

2017-08-14 Thread Peter Krempa
or so. At any rate, manual pivoting later should help. Also probably updating to a more recent version. In case you are using a farily recent version, it's possible that there are still bugs though. Peter [1]: commit 7408403560f7d054da75acaab855a95c51a92e2b Author: Peter Krempa &l

Re: [libvirt-users] automatically reverting to a snapshot

2017-07-26 Thread Peter Krempa
Please configure your mail client to send plain-text version to mailing lists ... On Tue, Jul 25, 2017 at 16:08:58 +0100, Dirty Dan wrote: > How can I automatically revert to a snapshot after the guest > is stopped?/etc/libvirt/hooks/qemu #!/bin/sh name="$1" action="$2" if [ "$name" = "name" ];

Re: [libvirt-users] transient configure turn to persistent configure

2017-07-25 Thread Peter Krempa
On Tue, Jul 25, 2017 at 09:50:29 +0800, 露露 wrote: > libvirt > version: 3.4.0 > architecture: x86_64 ubuntu16.04-server > hypervisor: kvm,qemu > > I call virDomainCreate create a transient vm, After a period of time ,I call > virDomainDestroy, the vm configure is stil exist, the vm turn to

Re: [libvirt-users] memory snapshot save error

2017-07-25 Thread Peter Krempa
On Tue, Jul 25, 2017 at 09:39:22 +0800, 露露 wrote: > libvirt > version: 3.4.0 > architecture: x86_64 ubuntu16.04-server > hypervisor: kvm,qemu > > when I want make a memery snapshot for a vm ,and I call virsh save ,but tell > me this error: > error: Failed to save domain 177 to /datapool/mm.img >

Re: [libvirt-users] Why cannot block copy local storage to network disk

2017-07-25 Thread Peter Krempa
On Tue, Jul 18, 2017 at 15:33:24 +0200, Martin Kletzander wrote: > On Tue, Jul 18, 2017 at 06:06:45PM +0800, wyang wrote: > >Hi, guys > > > >I was executing the following command to lively migrate local storage to > >network storage, > > > >[root@192-168-152-51 ~]# virsh blockcopy > >

Re: [libvirt-users] recovering from deleted snapshot

2017-06-30 Thread Peter Krempa
On Fri, Jun 30, 2017 at 10:41:25 -0400, doug.hug...@keystonenap.com wrote: > sorry about top post, tablet mail client... > > brilliant! that did it! Any idea what happened to cause it to partially fail > and get into this state? virsh blockcommit --pivot is actually 3 operations in sequence: 1)

Re: [libvirt-users] recovering from deleted snapshot

2017-06-30 Thread Peter Krempa
On Fri, Jun 30, 2017 at 09:23:29 -0400, Doug Hughes wrote: > On Jun 30, 2017 6:22 AM, "Peter Krempa" <pkre...@redhat.com> wrote: > > On Fri, Jun 30, 2017 at 12:05:47 +0200, Peter Krempa wrote: > > > On Thu, Jun 22, 2017 at 11:02:41 -0400, Doug Hughes wrote: [...

Re: [libvirt-users] recovering from deleted snapshot

2017-06-30 Thread Peter Krempa
On Fri, Jun 30, 2017 at 12:05:47 +0200, Peter Krempa wrote: > On Thu, Jun 22, 2017 at 11:02:41 -0400, Doug Hughes wrote: > > [...] > > > virsh blockcommit $vm $DISK --active --pivot > > > > Normally this works fine, though something went wrong on the 20th.

Re: [libvirt-users] recovering from deleted snapshot

2017-06-30 Thread Peter Krempa
On Thu, Jun 22, 2017 at 11:02:41 -0400, Doug Hughes wrote: [...] > virsh blockcommit $vm $DISK --active --pivot > > Normally this works fine, though something went wrong on the 20th. > something happened to make the blockcommit fail, but the -snap file got > deleted (note to self - check

Re: [libvirt-users] different bios file per guest

2017-03-31 Thread Peter Krempa
On Thu, Mar 30, 2017 at 17:09:01 +0300, Anton Gorlov wrote: > Can I set different bios file per guest? > > For some guest need UEFI. http://libvirt.org/formatdomain.html#elementsOSBIOS signature.asc Description: PGP signature ___ libvirt-users

Re: [libvirt-users] [RFC] per-device metadata

2017-03-16 Thread Peter Krempa
On Thu, Mar 16, 2017 at 14:52:47 +, Daniel Berrange wrote: > On Thu, Mar 16, 2017 at 03:50:51PM +0100, Peter Krempa wrote: > > On Thu, Mar 16, 2017 at 14:42:30 +, Daniel Berrange wrote: > > > On Thu, Mar 16, 2017 at 01:46:38PM +0100, Peter Krempa wrote: > > > &

Re: [libvirt-users] [RFC] per-device metadata

2017-03-16 Thread Peter Krempa
On Thu, Mar 16, 2017 at 14:42:30 +, Daniel Berrange wrote: > On Thu, Mar 16, 2017 at 01:46:38PM +0100, Peter Krempa wrote: > > On Mon, Feb 27, 2017 at 16:41:28 +0100, Francesco Romani wrote: [...] > > In general I don't have a problem with this and if it would make the > &g

Re: [libvirt-users] [RFC] per-device metadata

2017-03-16 Thread Peter Krempa
For techincal discussions on design it's better to post to the development list. On Mon, Feb 27, 2017 at 16:41:28 +0100, Francesco Romani wrote: > Hi, Hi, > > > Currently libvirt supports metadata in the domain XML. This is very > convenient for data related to the VM, but it is a little

Re: [libvirt-users] gluster store and autostart - but fails

2017-01-23 Thread Peter Krempa
On Tue, Jan 17, 2017 at 11:27:18 +, lejeczek wrote: > hi all > I've a few guest which work/run perfectly fine, I believe, except for > autostart. > Configuration of system, gluster and libvirt is pretty regular and not > complex. Unfortunately the autostart facility for libvirt VMs is very

Re: [libvirt-users] Migration problem - takes 5 minutes to start moving the memory

2016-06-01 Thread Peter Krempa
On Wed, Jun 01, 2016 at 11:59:29 +0200, Marc-Aurèle Brothier - Exoscale wrote: > Hi, > > I'm facing a strange issue while doing a migration from an hypervisor to > another one. The migration takes for ever to start moving the memory. > The VM had no workload what so ever, just a basic ubuntu

Re: [libvirt-users] Making remote access to qemu://session easier?

2016-05-03 Thread Peter Krempa
On Mon, May 02, 2016 at 12:07:43 -0400, Cole Robinson wrote: > On 05/02/2016 11:57 AM, Lars Kellogg-Stedman wrote: > > This is frustrating: > > > > $ export LIBVIRT_DEFAULT_URI=qemu+ssh://remotehost/session > > $ virsh list > > error: failed to connect to the hypervisor > > error: no

Re: [libvirt-users] how to list and kill existing console sessions to VMs?

2016-04-08 Thread Peter Krempa
On Thu, Apr 07, 2016 at 08:26:20 -0400, Francesco Romani wrote: > Hi everyone, > > If a VM is configured to have a console attached to it, like using > > http://libvirt.org/formatdomain.html#elementCharConsole > > Libvirt offers access to VM serial console's using the virDomainOpenConsole >

Re: [libvirt-users] failure when trying to add a channel device via virsh attach-device

2015-09-21 Thread Peter Krempa
On Mon, Sep 21, 2015 at 08:16:17 +, Jean-Pierre Ribeauville wrote: > Hi, > On a KVM host installed with following packages versions : > > [root@rhel6-roadster test_channels_OK]# rpm -qa | grep libvirt > libvirt-devel-0.10.2-29.el6.x86_64 > libvirt-0.10.2-29.el6.x86_64 >

Re: [libvirt-users] Problem with the use of domfsfreeze mountpoint option

2014-11-14 Thread Peter Krempa
On 11/12/14 22:17, Eric Blake wrote: On 11/12/2014 10:24 AM, Michal Privoznik wrote: ... Although, I see a way that we could get something reasonable here. If qemu would tell us whenever somebody (dis-)connects (from)to the virtio channel. That way we could query the qemu-ga capabilities and

Re: [libvirt-users] Fwd: Hotadd memory and hotplug cpu

2014-10-16 Thread Peter Krempa
On 10/15/14 17:31, ra va wrote: Hello, Does KVM support hotadd memory and hot-plug cpu? I checked it using the virsh command but I can only increase the memory to the maximum memory that is initially set But setmaxmem command is failing. Which means this require a reboot of the

Re: [libvirt-users] Finding out CPU topology

2013-08-29 Thread Peter Krempa
828820e2d371205d6a6061301165d58a1a92e611 Author: Peter Krempa pkre...@redhat.com Date: Fri Jan 18 19:30:00 2013 +0100 schemas: Add schemas for more CPU topology information in the caps XML This patch adds RNG schemas for adding more information in the topology output of the NUMA section

Re: [libvirt-users] Creating a snapshot from a KVM VM fails

2013-08-20 Thread Peter Krempa
On 08/20/13 16:00, Tobias Brunner wrote: Hi, I'm trying to create a snapshot from a KVM VM: # virsh snapshot-create one-5 error: unsupported configuration: internal checkpoints require at least one disk to be selected for snapshot How can I debug this error message and what does it

Re: [libvirt-users] Question, how to coorelate snapshot ID's to the files that they represent?

2013-05-30 Thread Peter Krempa
On 05/30/13 17:33, vonNieda, Adam (USMS) wrote: Hi folks, first post J I’m running Redhat 6 x64 with ibvirt-0.10.2-18 and qemu-img-rhev-0.12.1.2-2.355 My question is, if I do something like the following.. [root@testbox ~]# virsh snapshot-list STIGtest Name

Re: [libvirt-users] Virsh+QEMU, SSH issue on compiled libvirt

2013-03-07 Thread Peter Krempa
On 03/07/13 20:37, Saravanan Shanmugham (sarvi) wrote: With these options, it fails to install as below /bin/mkdir -p '/ws/sarvi-sjc/skunkworks/bspace/usrcisco/libexec' /bin/mkdir -p '/ws/sarvi-sjc/skunkworks/bspace/usrcisco/share/augeas/lenses' /bin/mkdir -p

Re: [libvirt-users] Virsh+QEMU, SSH issue on compiled libvirt

2013-03-06 Thread Peter Krempa
On 03/05/13 23:06, Will Dennis wrote: Hi Shantan, I believe the problem may be that libvirt 1.x requires TLS by default on connections. I saw that same problem the 1^st time I replaces a running libvirt 0.9.x with 1.0.0. I believe there may be a way to turn off this requirement in

Re: [libvirt-users] shutdown a windows guest take ages..... (20- 34 minutes here)

2013-02-04 Thread Peter Krempa
On 02/02/13 18:34, we...@zackbummfertig.de wrote: hi, Hi Marko, i use libvirt 1.0.2 (-r1 , gentoo linux). when i create a vm with win7 guest, virtio nic, virtio hdd, all is running fine. but when i shutdown the windows guest, it takes somestimes 20-34 minutes !!! iotop shows me in the whole

Re: [libvirt-users] virtual machine id

2013-01-23 Thread Peter Krempa
On 01/23/13 08:07, 春祥 王 wrote: Below is my start.xml: domain type='kvm' id='12' namestart-ubuntu/name memory1048576/memory currentMemory1048576/currentMemory vcpu1/vcpu os typehvm/type boot dev='hd'/

Re: [libvirt-users] [libvirt] libvirt RPC error

2013-01-11 Thread Peter Krempa
On 01/11/13 07:01, Parakkal, Navin S wrote: Hi, I’m using qemu+ssh://username@hostname/system as the remote URI. Libvirt seems to be communicating fine until some 2 minutes (we poll every 5 seconds) and then it throws up RPC error and many counters are wrong. But if I collect on localhost the

Re: [libvirt-users] virsh reboot problem

2012-08-28 Thread Peter Krempa
On 08/28/12 13:59, Andreas Davour wrote: I am trying to reboot my virtual machines, running virsh reboot. Then I get the following error: error: this function is not supported by the connection driver: virDomainReboot Searching around I get the impression this should be fixed by now, since

Re: [libvirt-users] libvirtd crashes after guest migration with attached console

2012-08-21 Thread Peter Krempa
On 08/13/12 09:42, Andrey Korolyov wrote: Hi, Hi Andrey, please see following backtrace. How to reproduce: start qemu guest w/attached console, execute migration, get a crash at the end. Program received signal SIGSEGV, Segmentation fault. virHashRemoveEntry (table=0x7fa0e0003e90,

Re: [libvirt-users] CPU Flags libvirt 0.9.12

2012-08-03 Thread Peter Krempa
On 08/03/12 16:35, Michael Beham wrote: Hi, I´m using libvirt version 0.9.12 under Debian Squeeze with and AMD Opteron 4280. Executing the virsh capabilities command only show me the following flags: cpu archx86_64/arch modelOpteron_G4/model vendorAMD/vendor topology sockets='1' cores='8'

Re: [libvirt-users] creating a domain

2012-05-10 Thread Peter Krempa
On 05/09/2012 11:26 PM, John Wayne wrote: hi, i am a bit confused on how to start an inactive domain using the python bindings, any help would be appreciated. (inactive as in the domain was created with virConnect.defineXML sometime in the past) looks like i have to use virDomain.create,