Re: domain: how long is new xml in saved file

2020-04-24 Thread Eric Blake
ERT_RANGE) which can splice in a hole (all later file contents are shifted in offsets); maybe our save code could take advantage of that to repair existing saved images with insufficient header size in a more efficient manner than manually shifting the rest of the file contents ourselves. -- E

Re: Does Libvirt's json parser support single quoted string in qmp json string?

2020-02-03 Thread Eric Blake
[adding Markus] On 2/3/20 4:13 AM, Daniel P. Berrangé wrote: On Fri, Jan 31, 2020 at 06:44:42AM -0600, Eric Blake wrote: On 1/31/20 4:38 AM, Peter Luo wrote: error: internal error: cannot parse json {"execute": "block-commit", "arguments": { "device":

Re: Does Libvirt's json parser support single quoted string in qmp json string?

2020-01-31 Thread Eric Blake
vol... "{\"execute\":... \"base\":\"json:{\\\"encrypt.key-secret\\\":\\\"vol... or even things like: q='"' qq='\"' "{${q}execute${q}:... ${q}base${q}:${q}json:{${dq}encrypt.key-secret${dq}:${dq}vol... But as mentioned elsewhere in this thread, embedding nested json via qemu-monitor-command is already a sign that you are using unsupported means, and where newer libvirt supports what you want to do natively, you're better off upgrading to that supported method instead of trying to hack around the command line through an unsupported backdoor. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org

Re: [libvirt-users] virsh snapshot-create --print-xml seems to ignore most arguments

2019-11-20 Thread Eric Blake
description of the arguments. Yes, the perl bindings don't have the convenience wrappers like virsh, so you'll need the XML; but the perl bindings DO let you also pass in flags for the case where virsh has bool options for setting a flag. -- Eric Blake, Principal Software Engineer Re

Re: [libvirt-users] Live Disk Backup with Active Blockcommit

2019-04-25 Thread Eric Blake
x27;overlay.qcow2' > And then back to ''overlay1 in the following text: 'mergning contents of > 'overlay1' into base' > (Where 'mergning' is spelled wrong, but that doesn't affect the logic). Also fixed, here preferring overlay1.qcow2 since

Re: [libvirt-users] is it possible to create a snapshot from a guest residing in a plain partition ?

2019-04-04 Thread Eric Blake
m --diskspec vdb,file=/path/to/file.sn -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature ___ libvirt-users mailing list lib

Re: [libvirt-users] is it possible to create a snapshot from a guest residing in a plain partition ?

2019-04-03 Thread Eric Blake
back into the base file and get rid of the overlay) -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org signature.asc Description: OpenPGP digital signature ___ libvirt-user

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

2019-03-20 Thread Eric Blake
rmissions, then tell virsh to --reuse-external (so that libvirt no longer has to try and create the files, and thus doesn't mess with permissions). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization:

Re: [libvirt-users] Development of Libvirt PHP

2019-03-07 Thread Eric Blake
On 3/7/19 4:55 PM, Maximilian Schieder wrote: > Hey, > I want to ask if LibVirt PHP will be develop further or if it is deprecated. It is not deprecated, but it never hurts to have more developers submitting patches. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-9

Re: [libvirt-users] virsh hangs when backup jobs run on the kvm host

2019-03-06 Thread Eric Blake
2016'. KVM version is 'QEMU > emulator version 2.7.1(Debian 1:2.7+dfsg-3)'. Hoping for you reply. Thanks! Hmm, my incremental backup API will require qemu 4.0; there have been a number of fixes in the qemu bitmap tracking that have landed since qemu 2.7.1. It could also be that

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

2018-09-07 Thread Eric Blake
en ? Live blockcommit works onto any host storage protocol (whether filesystem, block device via LVM, or even remote access such as NBD or ceph). The key is that your overlay is a qcow2 file that is tracking the deltas during the time in which you are capturing your backup of the backing file,

Re: [libvirt-users] Snapshot overlay-file deletion

2018-08-31 Thread Eric Blake
ut it is surprisingly complex to come up with semantics for deletion of an external snapshot in a way that doesn't corrupt data, so no one has tackled that code project. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-91

Re: [libvirt-users] VM I/O performance drops dramatically during storage migration with drive-mirror

2018-05-29 Thread Eric Blake
arrive on the 'libvirt-users' list archives; but it's not there yet -- https://www.redhat.com/archives/libvirt-users/2018-May/thread.html] Actually, the attachment was probably rejected by list moderation for being oversized. -- Eric Blake, Principal Software Engineer Red Hat, In

Re: [libvirt-users] virRandomBits - not very random

2018-05-25 Thread Eric Blake
tting up TLS migration is where we are relying on gnutls to provide it rather than virRandomBits). So at this point, it's just a matter of someone writing the patches. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266

Re: [libvirt-users] virRandomBits - not very random

2018-05-25 Thread Eric Blake
lusters to create collisions when their random number sequences sync up. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org ___ libvirt-users mailing list libvirt-users@redhat

Re: [libvirt-users] Create qcow2 v3 volumes via libvirt

2018-05-24 Thread Eric Blake
If I were to expand the guest's ext4 file system I would want to do it unmounted and from a live CD but I'm having a heck of a time getting my live distro to use the virtio disk drivers.  Any advice there? virt-resize from libguestfs-tools is your friend! --

Re: [libvirt-users] Create qcow2 v3 volumes via libvirt

2018-05-01 Thread Eric Blake
creating and later merging portions of a chain of snapshots, although we could still improve libvirt to make this feel like more of a first class citizen. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org ___

Re: [libvirt-users] Create qcow2 v3 volumes via libvirt

2018-05-01 Thread Eric Blake
el/2018-04/msg00865.html -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] Drive-backup functions.

2018-05-01 Thread Eric Blake
a of what changed since a previous backup checkpoint, and that's true whether it is qemu writing the backup [push model] or a third party consuming the backup over NBD [pull model]. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266

Re: [libvirt-users] [libvirt] ignore_value

2018-04-27 Thread Eric Blake
On 04/27/2018 11:15 AM, Eric Blake wrote: > On 04/27/2018 02:20 AM, gaosheng cui wrote: >> Hi,using ignore_value in libvirt source code >> to do function return value processing,but I >> can’t understand about it,can you give me some tips?thanks very much! > >

Re: [libvirt-users] [libvirt] ignore_value

2018-04-27 Thread Eric Blake
On 04/27/2018 11:15 AM, Eric Blake wrote: > You can think of 'ignore_value(foo());' the same as '(void*)foo();', Typo, make that '(void)foo();' > except that the latter doesn't shut up all compilers. -- Eric Blake, Principal Software Enginee

Re: [libvirt-users] [libvirt] ignore_value

2018-04-27 Thread Eric Blake
iler warns you, and even then, only if you are sure that ignoring the value doesn't introduce bugs - so using it also serves as a visual indicator to reviewers that your choice to ignore the return value was intentional and should be checked for accuracy. -- Eric Blake, Principal Sof

Re: [libvirt-users] kvm-vnc question

2018-04-12 Thread Eric Blake
and post only the URL to your upload, so that the list isn't spammed with a huge image attachment. [And speaking as a list moderator, my apologies to other list readers for moderating this one through; often, I'm able to catch large message attachments and reject the posts with sugges

Re: [libvirt-users] qemu-img snapshot on running virtual machine

2018-03-15 Thread Eric Blake
running virtual machine is through commands issued to the qemu process that is running the machine (that is, via libvirt APIs if libvirt is managing the qemu process). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.or

Re: [libvirt-users] libvirt on Windows

2018-02-01 Thread Eric Blake
ilding > libvirt. > The GCC/Clang produced DLLs should be usabled from apps built with other > compilers though. Libvirt is also available on Windows via the Cygwin platform: https://sourceware.org/ml/cygwin-announce/2017-09/msg00017.html -- Eric Blake, Principal Software Engineer Red

[libvirt-users] error message

2017-05-23 Thread Eric Blake
[moderator note: re-posting to list with screenshot deleted, in order to meet list policy size constraints] hello, i am trying to install libvirt but getting some error . even though i am folowing your instructions and steps please help me out this signature.asc Description: OpenPGP digital si

[libvirt-users] Tunnelled migrate Windows7 VMs halted

2017-04-26 Thread Eric Blake
x0'/> > > >path='/var/lib/nova/instances/53f0710f-b25e-4f47-a7cf-c15a9409fdc3/console.log'/> > > > > > > > > > >path='/var/lib/nova/instances/53f0710f-b25

Re: [libvirt-users] Blockpull behavior when interrupted

2016-07-22 Thread Eric Blake
I know enough to not touch ZFS as long as its current license doesn't play nicely with the Linux kernel) -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature ___

Re: [libvirt-users] Blockpull behavior when interrupted

2016-07-21 Thread Eric Blake
rily) out of sync with reality. For more ideas on how to visualize things, check out my presentation at last year's KVM Forum: http://www.linux-kvm.org/images/5/5f/03x02-Eric_Blake-Backing_Chain_Management_in_QEMU_and_libvirt.pdf -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt

Re: [libvirt-users] Windows Server 2008 - KVM

2016-05-25 Thread Eric Blake
> [image: Imagem inline 1] Note that this message was nearly rejected in the moderation queue for being oversized. Sending an inline image instead of the text contents of the screenshot is bad enough on bandwidth, but compounding the problem by keeping the image in the reply puts a pretty heavy

Re: [libvirt-users] VM crash and lock manager

2016-03-30 Thread Eric Blake
[moderator note: .pngs were stripped to avoid overwhelming the mail server and list recipients with 1M of data] Forwarded Message Date: Wed, 30 Mar 2016 11:25:09 +0200 Message-ID: <20160330112509.horde.0oad-zfkzdznouxf-vke...@webmailperso.univ-brest.fr> From: ville...@kassis.univ-

Re: [libvirt-users] virsh and bash_complete

2016-03-23 Thread Eric Blake
ward the current command line to 'virsh complete', and you'd only ever have to write the bash wrapper once, rather than maintaining it through each virsh addition. At one point, a student attempted work on this for Google Summer of Code (I think 2014?), but didn't get anywhere.

Re: [libvirt-users] Incorrect memory usage returned from virsh

2016-03-18 Thread Eric Blake
virsh memtune' and 'virsh dommemstat' ask different questions, and may be able to give you more insight into the guest's current memory usage (but it might also be something you can't learn without guest cooperation). -- Eric Blake eblake redhat com+1-919-301-3266 Li

Re: [libvirt-users] Questions about qcow2 file size management

2015-12-16 Thread Eric Blake
; > Anything else I should do? > > Anything I could check? You should really look into using 'virt-resize' and 'virt-sparsify', both part of the libguestfs tools suite, because they make this job a LOT less error-prone and automatable. -- Eric Blake eblake redh

Re: [libvirt-users] libvirt domain configuration xml

2015-12-11 Thread Eric Blake
API. Libvirt happens to copy its memory into files located under /etc/libvirt for persistence reasons, but modifying those files behind libvirt's back is not a good idea - in fact, those files start with the disclaimer: -- Eric Blake eblake redhat com+1-919-3

Re: [libvirt-users] Libvirt management daemon issue

2015-11-05 Thread Eric Blake
with Ubuntu to know the preferred layout there, yet no one seems to be bothered enough to submit a patch to autogen.sh, so it may just work). Or there's always the option of deleting the distro build, so that only your self-build can be found. -- Eric Blake eblake redhat com+1-919

Re: [libvirt-users] Libvirt from source problem

2015-10-21 Thread Eric Blake
thout posting actual error messages, there's not much more we can do to help you. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature ___

Re: [libvirt-users] virsh blockcopy without undefine

2015-10-13 Thread Eric Blake
a copy operation efficiently. Requiring the domain to be transient (via the undefine/define wrapper around the blockcopy) was a design decision made when blockcopy was first added to make the caller aware of the limitations, and put the caller in charge of what happens if the domain disappears in

Re: [libvirt-users] Backup a VM (using live external snapshot and blockcommit)

2015-09-11 Thread Eric Blake
rt metadata (by invoking: virsh > snapshot-delete vm1 --delete --current -- repeat this as needed.)" > > Shouldn't the > > virsh snapshot-delete vm1 --delete --current > > be rephrased as > > virsh snapshot-delete vm1 --

Re: [libvirt-users] Backup a VM (using live external snapshot and blockcommit)

2015-09-11 Thread Eric Blake
--no-metadata' option, then blockcommitted? I > understand libvirt doesn't do it yet. > > Thanks for any hint. I naively thought our use case was pretty usual, > and I must admit I didn't think I'd have to dive into this complexity, > which is why I'm thinki

Re: [libvirt-users] Transient VM Usage

2015-09-11 Thread Eric Blake
or dropping at run-time when it is decided that we want to commit to the disk after all; probably through a block-commit operation. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature __

Re: [libvirt-users] virsh create snapshot not honoring diskspec?

2015-08-13 Thread Eric Blake
ernal --diskspec vda,snapshot=none to explicitly override the defaults for both disks at once. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature __

Re: [libvirt-users] Do I need to enable qemu-ga's guest-suspend: hybrid/suspend-ram/disk/shutdown?

2015-08-10 Thread Eric Blake
things down to the point that it cannot reply; instead, to learn if the command was successful, you must listen to the ordinary QMP monitor for an event notification corresponding to the change in guest state. Libvirt already handles this interaction correctly. -- Eric Blake eblake redha

Re: [libvirt-users] How to run libvirtd as non root user

2015-07-30 Thread Eric Blake
ithout privileges, your guests will have a harder time using networking, but that's what you'd expect. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature _

Re: [libvirt-users] Recommended change for the networking page in wiki

2015-06-08 Thread Eric Blake
lso curious as to why this is considered a hack method. It states >> in the wiki that "This method is a hack", but it doesn't express why. > > I consider it a hack because: > > 1) It requires the IP address of the guest to be known before the guest > is started

Re: [libvirt-users] Missing "block-stream" command in qemu-kvm

2015-06-03 Thread Eric Blake
It would be simpler to have a CentOS SIG build this, but it hasn't happened yet. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature ___ libvir

Re: [libvirt-users] Blockcommit error

2015-05-21 Thread Eric Blake
he flag). To confirm, can you do: virsh version --daemon and if the 'Using library:' line is newer than the 'Running against daemon:' line, I'm right. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signat

Re: [libvirt-users] Pivot without copy

2015-05-19 Thread Eric Blake
g wrappers, which basically behave the same as bare metal system adding or removing a disk from the hardware bus while the guest is running (not all hardware handles it gracefully, but there are definitely storage arrays out there that manage just fine). -- Eric Blake eblake redhat com+1-9

Re: [libvirt-users] Pivot without copy

2015-05-19 Thread Eric Blake
, you could possibly hot-unplug the disk that has the state you no longer want, then hot-plug the updated disk that does have what you want. If your guest can handle storage going away and then being plugged in, then that is just as effective as anything that snapshots would do at rolling back

Re: [libvirt-users] Pivot without copy

2015-05-19 Thread Eric Blake
/images# qemu-system-x86_64 --version > QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.11), Copyright (c) Likewise, qemu needs to be at least 2.2 -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Descript

Re: [libvirt-users] Pivot without copy

2015-05-19 Thread Eric Blake
adding persistent bitmaps, and the hope is that libvirt can take advantage of that to allow blockcopy to work without requiring a transient domain. But in the meantime, you may have to use 'virsh dumpxml $dom > $file', 'virsh undefine $dom' prior to the blockcopy, then &#

Re: [libvirt-users] xl extra parameters equivalent for libvirt

2015-05-18 Thread Eric Blake
e the domXML before feeding it to 'virsh create'. Qemu domains have that ability, via an XML namespace that adds : http://libvirt.org/drvqemu.html#qemucommand but no one has yet implemented that for Xen domains. If you want to add it, the src/qemu code would be the obvious starting point to

Re: [libvirt-users] Editing http://libvirt.org/sources/virshcmdref/html-single/#sect-attach-device

2015-05-08 Thread Eric Blake
virshcmdref document is a bit sparse, as the last major contribution was in 2011, and no one has stepped in to keep it up to date. You are welcome to start submitting patches; the repo is: git://libvirt.org/libvirt-virshcmdref -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualiza

Re: [libvirt-users] Proper way to reference a disk

2015-05-06 Thread Eric Blake
ently working on a patch for libvirt that will take advantage of a recent qemu feature of setting a threshold for event triggering, such that you could then request notification that the lvm volume is X% full and give yourself time to enlarge the lvm volume even before you reach the point where th

Re: [libvirt-users] Proper way to reference a disk

2015-05-06 Thread Eric Blake
On 05/06/2015 02:05 PM, Michael Schwager wrote: > Hi, > We are running on CentOS 7.0. We want to move our VMs (kvm/qemu) from > qcow/image files to logical volumes under LVM. > > I have moved one of them but I had a little trouble editing the disk > properly and I wonder what is the correct way to

Re: [libvirt-users] unable to edit existing snapshot

2015-04-30 Thread Eric Blake
-create --redefine $dom $file'), where the redefined domain is not strictly ABI compatible, but where libvirt no longer has the information on hand to reject the redefinition as invalid. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org sig

Re: [libvirt-users] non failover equivalent to "virsh migrate --copy-storage-all"

2015-04-29 Thread Eric Blake
On 04/29/2015 10:30 AM, Eric Blake wrote: >> Is there a way to just copy the data file over to the second server, >> without moving the VM? >> I want the equivalent of doing these two migrations is sequence, but >> without moving the VM. > > Yes - 'virsh bl

Re: [libvirt-users] Semantics of "virsh migrate --copy-storage-all" vs. --copy-storage-inc

2015-04-29 Thread Eric Blake
downtimes take a long lead time and are between 01:00 and 05:00. > > Mit freundlichen Gruessen > Andreas Buschmann > -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc

Re: [libvirt-users] non failover equivalent to "virsh migrate --copy-storage-all"

2015-04-29 Thread Eric Blake
ver of guests, where you can get even more rapid response time for recovering on the backup host when the primary host fails (look for COLO on the qemu archives). Again, it will need to land in qemu, as well as be wired up in libvirt. -- Eric Blake eblake redhat com+1-919-301-3266 Libv

Re: [libvirt-users] unable to edit existing snapshot

2015-04-29 Thread Eric Blake
CPU features, to get a fresh boot, rather than trying to revert to the snapshot state. Also, is your snapshot internal or external? Depending on how the snapshot was created may affect how to alter the to point at the desired disk state. -- Eric Blake eblake redhat com+1-919-301-326

Re: [libvirt-users] libvirt and guest processes

2015-04-20 Thread Eric Blake
proposals on the qemu list for adding such a qemu-ga command, although it hasn't been reviewed for inclusion yet. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [libvirt-users] Question regarding management of VMs using libvirtd.

2015-04-20 Thread Eric Blake
host. It can't manage VMs on a distant > hosts, so I'm afraid you'll have to query daemons on all the hosts to > get desired info. That said, libvirtd IS designed to be remote controlled, so it is certainly feasible to write higher-layer applications that manage connections to m

Re: [libvirt-users] domain XML tag is not working?

2015-04-20 Thread Eric Blake
ttp://libvirt.org/drvqemu.html#qemucommand it is essential to have something like: before any other will be recognized. (The namespace does not have to be named 'qemu:', but it makes it easier to stick to the naming used by the examples) -- Eric Blake eblake redhat com+1-919-301-

Re: [libvirt-users] virsh shutdown not fully working on win7 ?

2015-04-17 Thread Eric Blake
need to fire up this command twice? > Any ideas? 'virsh shutdown' requires guest cooperation. In particular, if you have not hooked up a guest agent, then all it can do is send an ACPI signal into the guest, but it is up to the guest whether it shuts down on receipt of that signal (and not

Re: [libvirt-users] unknown driver format value 'qcow3'

2015-04-15 Thread Eric Blake
you can upgrade to newer libvirt that understands the newer format. [For example, basing your distro on RHEL 7, even if you choose to use CentOS instead of RHEL, is a way to get new-enough libvirt] -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualiz

Re: [libvirt-users] Update on-disk XML after virsh snapshot-create-as

2015-04-14 Thread Eric Blake
I know that disk hotplug/hotunplug worked that far back at writing both persistent and live definitions to disk, but that's a bit heavyweight when it comes to trying to tweak the domain just to ensure you hit a code path that properly flushes to disk. We've done better at auditing the co

Re: [libvirt-users] Update on-disk XML after virsh snapshot-create-as

2015-04-14 Thread Eric Blake
page/FAQ#Where_are_VM_config_files_stored.3F_How_do_I_edit_a_VM.27s_XML_config.3F Instead, if you are still suffering from a build of libvirt that fails to update the files in /etc when taking a snapshot, do some other action that DOES update /etc (such as changing the domain description), or at a bare min

Re: [libvirt-users] virsh dom state

2015-03-24 Thread Eric Blake
th (8-byte maximum, transferred in plaintext in the protocol). Spice security is much better, and also not impacted by the limitation on preserving passwords. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenP

Re: [libvirt-users] C code to generate domain XML

2015-03-19 Thread Eric Blake
ng-of-the-libvirt-api-and-xml-to-glibgobject/ In particular, the libvirt-gconfig subproject deals with C code (and other language bindings) for more easily generating libvirt XML within the framework of glib's GObject classes. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virt

Re: [libvirt-users] Development of application on using the libvirt API(s)

2015-03-19 Thread Eric Blake
al reasons) pass a 'long'; these APIs properly flag overflow if a value cannot be converted from 64-bit on the host down to the limited 32-bit on the client. But as long as the API doesn't trigger that large of a value, you are fine. And for everything specified as 'int'

Re: [libvirt-users] Building libvirt 1.2.13 from source

2015-03-19 Thread Eric Blake
ly uninstall the pre-built distro version, so that you have only your self-built version accessible 2. when self-building, make sure you use the same configure arguments as your distro would do (on Fedora-based distros, you can do this with ./autogen.sh --system, when building from git) -- Eric

Re: [libvirt-users] how to get disk snapshot size

2015-03-16 Thread Eric Blake
nal snapshot and which would be freed if that snapshot is deleted, but adding such a metric would be a job for the qemu list, and not anything libvirt can do without qemu's help. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http

Re: [libvirt-users] libvirt live migration, qcow2 image, nbd server

2015-02-13 Thread Eric Blake
what the NBD is serving - the NBD connection MUST be raw, unless you have a funky situation with a qcow2 file whose contents are also a nested qcow2 encoding of data. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Descript

Re: [libvirt-users] libvirt live migration, qcow2 image, nbd server

2015-02-13 Thread Eric Blake
s raw, >> rather than qcow2. My platform is libvirt+qemu. the image type of this vm >> is indeed qcow2. I do not know how to let nbd know this image format. > > Hmm, I wonder if `virsh --migrate` should have a --format (or -F) option > that one can specify the format. Let'

Re: [libvirt-users] [libvirt] vm live storage migration with snapshots

2015-02-11 Thread Eric Blake
copy' command pointing to the NBD server as the destination. > > Sorry to take you so much time to answer my questions. I appreciate it > deeply. After I solve this issue, I will write a blog and share these > knowledge with other people. The libvirt-users list archives has a lo

Re: [libvirt-users] [libvirt] vm live storage migration with snapshots

2015-02-11 Thread Eric Blake
act, modern libvirt/qemu does this for you by setting up an NBD server on the destination, doing a data mirror from the source into the destination (so that you DO have shared storage, at least for the duration of the migration), then doing the live migration, then tearing down the NBD m

Re: [libvirt-users] libvirt/virsh change boot order

2015-02-11 Thread Eric Blake
disclaimer unenforceable. It's often considered poor netiquette to send mail to public lists from accounts that spam legalese garbage on the end. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.

Re: [libvirt-users] [libvirt] vm live storage migration with snapshots

2015-02-11 Thread Eric Blake
hot with shared storage destination base <- mid <- active(frozen) <- shared copy base, mid, and active to the destination live migrate using shared storage instead of doing storage migration block-commit shared back into active base <- mid <- active where the shared storage only needs to

Re: [libvirt-users] Possible to change 'machine type' attribute while vm is running?

2015-02-09 Thread Eric Blake
after reboot. Perhaps I'm just using it wrong? That tool is not provided by upstream; maybe it is a downstream Debian tool? And from the name, that may indeed be the tool that does what you want? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt

Re: [libvirt-users] QEMU 2.2.0 managedsave: Unknown savevm section type 5

2015-02-05 Thread Eric Blake
in memory but not flushed to disk, and most likely require an fsck (that is, nuking the managedsave image is equivalent to pulling the power cord on a running bare-metal machine, then recovering when restoring power for the next boot) [virsh managedsave-remove] -- Eric Blake eblake redhat com

Re: [libvirt-users] virStream text codec

2015-02-02 Thread Eric Blake
tely in the guest. If you want to see an example of how virDomainOpenConsole is used correctly, look at the source code for 'virsh console'. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org s

Re: [libvirt-users] Disk space exhaustion

2015-01-30 Thread Eric Blake
e host other than the fact that a lot of wall clock time elapsed for one operation. Look for the 'error_policy' XML setting under http://libvirt.org/formatdomain.html#elementsDisks -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.or

Re: [libvirt-users] redistribute virtual machines from vps hosting to end users

2015-01-28 Thread Eric Blake
imply run it? Look at virt-builder, part of libguestfs: http://libguestfs.org/virt-builder.1.html -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digit

Re: [libvirt-users] virsh snapshot-create persistent through destroy(undefine)

2015-01-27 Thread Eric Blake
--redefine after the domain is redefined, if you want to still revert to that state. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature ___ libvi

Re: [libvirt-users] polkit ACL for remotely changing a spice console password

2015-01-16 Thread Eric Blake
r at least a new flag to the existing API) to limit device changes to just the password, and where password changes could be restricted differently from other device changes. Daniel Berrange should have more ideas on whether that makes sense, since he implemented the original ACL permissi

Re: [libvirt-users] How do you force a VM reboot (when its KPd etc) without interrupting a blockcopy?

2015-01-16 Thread Eric Blake
e it is smaller, a shallow blockcopy is likely to finish faster. Then, once everything is copied to the new location, use active blockcommit to merge the temporary wrapper back into the normal backing file. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library htt

Re: [libvirt-users] Discard disk changes on shutdown

2015-01-16 Thread Eric Blake
tps://bugzilla.redhat.com/show_bug.cgi?id=1057800 -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature ___ libvirt-users mailing list libvirt-users@

Re: [libvirt-users] domain has active block job

2015-01-13 Thread Eric Blake
job attempts are made. See commit e1125ce. > [1] https://bugzilla.redhat.com/show_bug.cgi?id=1135169 -- blockcopy job > was cancel by "CTRL+C" while it show there still be one block job in > background That was against RHEL 7; but I don't know if any Fedora releases

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Eric Blake
blockcopy --raw /dev/nbd2 ...', to see if I was right and that makes the difference. Remember, blockcopy CAN change things so that the destination (as seen by qemu) is a different format than the source, and in the case of doing a blockcopy from a qcow2 source to a raw-image NBD server, t

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2015-01-08 Thread Eric Blake
also ensured that guest I/O was stable before the point of breaking the mirroring (basically, using guest-agent freezing and thawing around the operation). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Descriptio

Re: [libvirt-users] trying to get "pages" output in virsh capabilities

2015-01-07 Thread Eric Blake
t; Is there something that I need to configure, or is this a libvirt > version issue, or what? A version issue. > > The system with the "pages" entries is running 1.2.9, while the system > without them is running 1.2.2. was added in v1.2.6 (commit 02129b7). -- Eric Blake

Re: [libvirt-users] Block Commit: [100 %]error: failed to pivot job for disk vda

2015-01-07 Thread Eric Blake
7;m trying to take another audit of the code this week to see if I can find a problem in the libvirt code. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature _

Re: [libvirt-users] ubuntu virsh snapshot-create-as gives Error -22 while writing VM

2015-01-06 Thread Eric Blake
alue back into a positive EINVAL errno value). As for why qemu is seeing an EINVAL, I have to wonder if it is a case of AppArmor blocking access to a file. But that's weird, as internal snapshots don't normally need to open any additional files. At any rate, it's more likely to

Re: [libvirt-users] Please help me!Thank You!

2015-01-03 Thread Eric Blake
hat don't mind opening the image, it is a lot harder to retype the contents of your screenshot than it is to copy and paste your example in order to try and reproduce your issue. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org

Re: [libvirt-users] "virsh list" does not show anything after reboot [newbie]

2014-12-23 Thread Eric Blake
x27; show anything? If so, you have hit a state where your guests are not running, but still defined, and 'virsh start $dom' will restart the given domain. Normally, the 'libvirt-guests' systemd service will arrange to automatically restart a guest where it left off just before t

Re: [libvirt-users] Using virsh blockcopy -- what's it supposed to accomplish?

2014-12-22 Thread Eric Blake
ng the resulting file. > > What am I missing here? > > libvirt (1.2.2) and qemu (2.2.0) as distributed with Ubuntu Trusty. > -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digi

Re: [libvirt-users] LVM storage

2014-12-19 Thread Eric Blake
the VM's. As for whether files in the host filesystem atop its LVM, vs. separate LVMs entirely, is more efficient, you'd have to benchmark the difference it makes (fewer layers by using LVMs directly probably makes for more efficiency, but it also means more effort in setting things up comp

Re: [libvirt-users] virsh list shows no vm after downgrade

2014-12-19 Thread Eric Blake
d. We only promise backwards compatibility (new versions will not lose data from old versions), not forward compatibility (old versions might be confused by data added in new versions). > > Does anyone know how to solve this problem? Upgrade back to libvirt 1.2.2 or newer. The new libvi

Re: [libvirt-users] Freeze Windows Guests For Consistent Storage Snapshots

2014-12-11 Thread Eric Blake
rameter, hw_qemu_guest_agent=yes for > the guest image. > And then installing qemu-guest-agent inside the guest. > > What steps do i have to follow for windows ? The same steps - qemu-guest-agent is available for both Linux and Windows guests. -- Eric Blake eblake redhat com+1-91

Re: [libvirt-users] snapshots and qcow2

2014-12-08 Thread Eric Blake
to manage multiple files, but the RAM state is kept separate from disk state, and cleanup is a LOT easier because you merely delete the files you no longer need, instead of trying to defragment within a file you are still using). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtu

  1   2   3   4   5   6   7   8   >