Re: Question about migrate the vm with host-passthrough cpu

2021-03-17 Thread Kashyap Chamarthy
[Catching up with libvirt-users list after a long while ... hence the delay in my response.] On Fri, Feb 26, 2021 at 03:58:21PM +0800, Guoyi Tu wrote: > Thanks for you reply. > > I checked the qemu code, the destination qemu instance actually exposed > the cpu feature of new host , and if

Re: [libvirt-users] lvm vs qcow (on NVMe)

2018-11-22 Thread Kashyap Chamarthy
On Fri, Oct 26, 2018 at 12:32:48PM +0100, lejeczek wrote: > hi guys, > > anybody observed, maybe has measured performance difference between > the two with qemu quests(windows OS)? > > Any conclusions, recommendations? [Cc Stefan from QEMU, probably he might have some pointers.] -- /kashyap

Re: [libvirt-users] How to explain this libvirt oddity w.r.t machine types?

2018-10-15 Thread Kashyap Chamarthy
On Mon, Oct 15, 2018 at 09:05:16AM +0200, Andrea Bolognani wrote: [...] > Interesting. What is the output of 'virsh capabilities'? In attachment. > More interesting still is the fact that the guest XML you shared > looks like an *active* XML, ie. one taken from a running guest... > Does that

Re: [libvirt-users] How to explain this libvirt oddity w.r.t machine types?

2018-10-15 Thread Kashyap Chamarthy
On Sun, Oct 14, 2018 at 02:28:07PM +0200, Andrea Bolognani wrote: > On Fri, 2018-10-12 at 22:38 +0200, Kashyap Chamarthy wrote: [...] > > Now check the machine type again. Bizarrely enough, libvirt "helpfully" > > auto-adds QEMU *2.11* machine type, whi

[libvirt-users] How to explain this libvirt oddity w.r.t machine types?

2018-10-12 Thread Kashyap Chamarthy
Context: The baremetal host previously had QEMU 2.11. But I manually downgraded the QEMU version (via `dnf downgrade qemu-system-x86`); now it is at 2.10: $ rpm -q qemu-system-x86 qemu-system-x86-2.10.2-1.fc27.x86_64 The guest is offline. Let's see (in a couple of ways) what machine

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

2018-05-28 Thread Kashyap Chamarthy
On Mon, May 28, 2018 at 02:05:05PM +0200, Kashyap Chamarthy wrote: > Cc the QEMU Block Layer mailing list (qemu-bl...@nongnu.org), [Sigh; now add the QEMU BLock Layer e-mail list to Cc, without typos.] > who might > have more insights here; and wrap long lines. > > On Mon, May

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

2018-05-28 Thread Kashyap Chamarthy
Cc the QEMU Block Layer mailing list (qemu-bl...@nongnu.org), who might have more insights here; and wrap long lines. On Mon, May 28, 2018 at 06:07:51PM +0800, Chunguang Li wrote: > Hi, everyone. > > Recently I am doing some tests on the VM storage+memory migration with > KVM/QEMU/libvirt. I use

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

2018-05-04 Thread Kashyap Chamarthy
On Wed, May 02, 2018 at 02:45:05PM +0200, Gionatan Danti wrote: > On 01/05/2018 22:49, Gionatan Danti wrote: > > Ok, I think I'll continue to use RAW images + filesystem snapshots + > > external snapshot when required. > > It is unfortunate that we have no GUI to manage external snapshots. I > >

Re: [libvirt-users] snapshot of a guest with two disks

2018-03-29 Thread Kashyap Chamarthy
On Tue, Feb 20, 2018 at 11:35:12AM +0100, Lentes, Bernd wrote: (Just noticed this question.) > Hi, > > i just realized that i have a guest with two disks. What would be the > appropiate way to snapshot both of them ? [...] > or > > virsh snapshot-create-as --domain guest --diskspec >

Re: [libvirt-users] snapshot of a raw file - how to revert ?

2018-02-16 Thread Kashyap Chamarthy
On Fri, Feb 16, 2018 at 04:37:38PM +0100, Lentes, Bernd wrote: [...] > Hi, > > again thanks for your quick answer. I had a look on > https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit > and i liked it. I'm thinking of upgrading my systems to SLES 12 SP3. > With that i have

Re: [libvirt-users] snapshot of a raw file - how to revert ?

2018-02-16 Thread Kashyap Chamarthy
On Fri, Feb 16, 2018 at 01:59:01PM +0100, Lentes, Bernd wrote: [...] > Hi Kashyap, > > thanks for your quick and detailed answers. Just to be complete. > The procedure in the above mentioned link does work with my old software ? It _should_ work; but please try on a test VM and see what works

Re: [libvirt-users] snapshot of a raw file - how to revert ?

2018-02-15 Thread Kashyap Chamarthy
On Thu, Feb 15, 2018 at 11:41:37AM +0100, Lentes, Bernd wrote: [...] > Hi, > > i found that: > https://dustymabe.com/2015/01/11/qemu-img-backing-files-a-poor-mans-snapshotrollback/ > > I tried it and it seemed to work, although my root fs was checked > after the commit, anything else seemed

Re: [libvirt-users] snapshot of a raw file - how to revert ?

2018-02-15 Thread Kashyap Chamarthy
On Tue, Feb 13, 2018 at 01:38:34PM +0100, Lentes, Bernd wrote: > Hi, [...] > I have several guests running with raw files, which is sufficent for > me. Now i'd like to snapshot one guest because i make heavy > configuration changes on it. From what i read in the net is that > libvirt supports

[libvirt-users] Reverting to external snapshots [Was: Re: Ask question]

2018-02-15 Thread Kashyap Chamarthy
[Adjusted the subject] On Thu, Feb 08, 2018 at 10:33:05PM +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 >

Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)

2018-02-12 Thread Kashyap Chamarthy
On Fri, Feb 09, 2018 at 12:02:25PM +0100, Florian Haas wrote: > On Fri, Feb 9, 2018 at 11:48 AM, Kashyap Chamarthy <kcham...@redhat.com> > wrote: [...] > > I've made some minor edits to clarify a bunch of bits, and a link to the > > Kernel doc about Intel nVMX. (Hope th

Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)

2018-02-09 Thread Kashyap Chamarthy
On Thu, Feb 08, 2018 at 06:44:43PM +0100, Florian Haas wrote: > On Thu, Feb 8, 2018 at 1:07 PM, David Hildenbrand wrote: > > We should certainly document what I have summaries here properly at a > > central palce! > > Please review the three edits I've submitted to the wiki: >

Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)

2018-02-08 Thread Kashyap Chamarthy
On Thu, Feb 08, 2018 at 12:48:46PM +0100, David Hildenbrand wrote: > On 08.02.2018 11:46, Kashyap Chamarthy wrote: > > On Wed, Feb 07, 2018 at 11:26:14PM +0100, David Hildenbrand wrote: > >> On 07.02.2018 16:31, Kashyap Chamarthy wrote: > > > > [...] > >

Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)

2018-02-08 Thread Kashyap Chamarthy
On Thu, Feb 08, 2018 at 01:07:33PM +0100, David Hildenbrand wrote: [...] > > So to clarify things, could you enumerate the currently known > > limitations when enabling nesting? I'd be happy to summarize those and > > add them to the linux-kvm.org FAQ so others are less likely to hit > > their

Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)

2018-02-08 Thread Kashyap Chamarthy
On Thu, Feb 08, 2018 at 11:46:24AM +0100, Kashyap Chamarthy wrote: > On Wed, Feb 07, 2018 at 11:26:14PM +0100, David Hildenbrand wrote: > > On 07.02.2018 16:31, Kashyap Chamarthy wrote: > > [...] > > > Sounds like a similar problem as in > > https://bugzilla.ker

Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)

2018-02-08 Thread Kashyap Chamarthy
On Wed, Feb 07, 2018 at 11:26:14PM +0100, David Hildenbrand wrote: > On 07.02.2018 16:31, Kashyap Chamarthy wrote: [...] > Sounds like a similar problem as in > https://bugzilla.kernel.org/show_bug.cgi?id=198621 > > In short: there is no (live) migration support for nested VMX ye

Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)

2018-02-07 Thread Kashyap Chamarthy
[Cc: KVM upstream list.] On Tue, Feb 06, 2018 at 04:11:46PM +0100, Florian Haas wrote: > Hi everyone, > > I hope this is the correct list to discuss this issue; please feel > free to redirect me otherwise. > > I have a nested virtualization setup that looks as follows: > > - Host: Ubuntu

Re: [libvirt-users] snapshot anomaly

2017-08-30 Thread Kashyap Chamarthy
On Wed, Aug 23, 2017 at 11:11:15AM -0400, Doug Hughes wrote: > Oddly, the physical file did not exist. I'm not sure it ever did? (no > proof one way or another on that) >From your example, the physical snapshot file ('overlay' file is the correct term) --

Re: [libvirt-users] External snapshot issue

2017-04-24 Thread Kashyap Chamarthy
On Sat, Apr 22, 2017 at 11:26:17PM -0500, Leroy Tennison wrote: > I have used > >virsh snapshot-create-as "description>" --diskspec >"vda,snapshot=external,file=/path/to/external-snapshot" --disk-only >--atomic To avoid creating libvirt metadata for external snapshots, here you

Re: [libvirt-users] virt-manager, Network Manager and bridged networking

2017-04-24 Thread Kashyap Chamarthy
On Fri, Apr 21, 2017 at 08:01:00AM +0200, Daniel Pocock wrote: > > The wiki suggests that Network Manager doesn't support bridges[1] but I > think that is out-of-date. Other documents like this[2] show how to set > up bridges in Network Manager. > > For users wanting to run libvirt/KVM on their

Re: [libvirt-users] Unsafe migration with copy-storage-all (non shared storage) and writeback cache

2017-02-21 Thread Kashyap Chamarthy
On Tue, Feb 21, 2017 at 10:32:08AM +0100, Gionatan Danti wrote: > On 17/02/2017 19:50, Jiri Denemark wrote: [...] > > This looks like a bug in libvirt. The code doesn't check whether an > > affected disk is going to be migrated (--copy-storage-all) or accessed > > on the shared storage. > > > >

Re: [libvirt-users] libvirtError: block copy still active: disk not ready for pivot yet

2017-01-05 Thread Kashyap Chamarthy
On Wed, Jan 04, 2017 at 07:16:03PM +0200, Ala Hino wrote: > I understand that libvirt provides async events that are triggered once the > block job reaches ready state and successfully pivots as it is reported by > qemu. > Whats the event that is triggered and what's the handler that we have to >

Re: [libvirt-users] libvirtError: block copy still active: disk not ready for pivot yet

2017-01-03 Thread Kashyap Chamarthy
On Wed, Dec 28, 2016 at 01:26:12PM +0200, Ala Hino wrote: > Hi guys, > > When performing live merge, in few cases, we see the following exception: [...] > libvirtError: block copy still active: disk 'vdb' not ready for pivot yet You can see if the block operation is still in progress or not by

Re: [libvirt-users] export a cert

2016-11-21 Thread Kashyap Chamarthy
On Mon, Nov 21, 2016 at 02:47:23PM +, lejeczek wrote: > hi everybody > I'm browsing around but probably missing that obvious little thing - > exporting certs to pem format with ipa command toolkit - that must be there > somewhere, right? I'll assume you're trying to convert from PKCS#12

Re: [libvirt-users] Help With Nested Virtualization

2016-09-01 Thread Kashyap Chamarthy
On Wed, Aug 31, 2016 at 12:48:33PM +0200, Martin Kletzander wrote: > On Mon, Aug 29, 2016 at 09:42:17PM -0400, Brandon Golway wrote: > > (Copied from my post on the Arch Linux forums: [...] > > Can someone clue me in on what the issue is? > > > > Here's the entire XML config for the FreeNAS VM

Re: [libvirt-users] Problem executing VM backups

2016-06-23 Thread Kashyap Chamarthy
On Thu, Jun 23, 2016 at 08:53:08PM +1000, Phill Edwards wrote: > I changed our backup script to use the method explained in > http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit and > this night, everything seems to have worked smoothly. The backup is even > faster now than

Re: [libvirt-users] Problem executing VM backups

2016-06-23 Thread Kashyap Chamarthy
On Thu, Jun 23, 2016 at 12:17:28PM +0200, Markus Ellinger wrote: > Hello, > > thank you very much for your suggestions. I changed our backup script to use > the method explained in > http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit and > this night, everything seems to have

Re: [libvirt-users] Problem executing VM backups

2016-06-22 Thread Kashyap Chamarthy
On Wed, Jun 22, 2016 at 08:59:24AM +0200, Markus Ellinger wrote: > Hi everyone, > > we are suddenly having a problem with executing our backup jobs. For a long > time, we have used a shell script which contains the following code to > backup all our virtual machines: > > for domain in

Re: [libvirt-users] Clone VM with saved state

2016-04-13 Thread Kashyap Chamarthy
On Tue, Apr 12, 2016 at 03:15:16PM +0300, Michael Ravits wrote: > Hi Kashyap, > > Thanks for your answer! > > Unfortunately my use case requires cloning the exact memory state, so I > won't be able to use virt-sysprep. > But the snapshot command looks like something I could use. > Could you

Re: [libvirt-users] Clone VM with saved state

2016-04-12 Thread Kashyap Chamarthy
On Mon, Apr 11, 2016 at 12:01:08PM +0300, Michael Ravits wrote: > Hi, > > My use case involves creating duplicates of saved virtual machines. While I realize you want to trivially clone VMs with some state at random point in time, you might want to look into `virt-builder` about cloning VMs. It

Re: [libvirt-users] libvirtd vs XDG_RUNTIME_DIR

2016-03-10 Thread Kashyap Chamarthy
On Thu, Mar 10, 2016 at 12:37:31PM +, Daniel P. Berrange wrote: > On Wed, Mar 09, 2016 at 01:01:40PM -0500, Lars Kellogg-Stedman wrote: > > I ran into an odd problem today. I wanted to share it here in the > > hopes of maybe saving someone else some lost time. > > > > When you run libvirtd

Re: [libvirt-users] Buggy 1.3.2? Disconnected from qemu:///session due to I/O error

2016-03-10 Thread Kashyap Chamarthy
On Wed, Mar 09, 2016 at 10:18:10PM -0500, Lars Kellogg-Stedman wrote: > I think I've hit the same problem that Predrag reported in > http://comments.gmane.org/gmane.comp.emulators.libvirt.user/8825. > > With libvirt-1.3.2-1.fc23.x86_64 on Fedora 23, when I try uploading an > image with vol-upload

Re: [libvirt-users] libvirtd vs XDG_RUNTIME_DIR

2016-03-10 Thread Kashyap Chamarthy
On Wed, Mar 09, 2016 at 01:01:40PM -0500, Lars Kellogg-Stedman wrote: > I ran into an odd problem today. I wanted to share it here in the > hopes of maybe saving someone else some lost time. > > When you run libvirtd as an unprivileged user (e.g., if you target > qemu:///session from a non-root

Re: [libvirt-users] API for retrieving resource metrics from VMs?

2016-01-06 Thread Kashyap Chamarthy
On Wed, Jan 06, 2016 at 09:27:46AM +0900, BYEONG-GI KIM wrote: > Thank you indeed! > > That information would be really great help for me. I'll look for the > libguestfs. By the way, you mentioned that the tool would be better not to > use frequently, so... Does the tool have any performance

Re: [libvirt-users] Efficient live disk backup with active blockcommit : Failed 'block-commit': Could not reopen file: Permission denied

2015-12-08 Thread Kashyap Chamarthy
On Mon, Dec 07, 2015 at 12:52:34PM -0800, Keyur Bhalerao wrote: [. . .] ubuntu@keyurubuntu:~$ virsh blockcommit vm-01 vda --active --verbose --pivot > error: internal error: unable to execute QEMU command 'block-commit': Could > not reopen file: Permission denied Fairly obvious suggestions,

Re: [libvirt-users] Creating external snapshots.

2015-10-12 Thread Kashyap Chamarthy
On Sat, Oct 10, 2015 at 09:44:15PM +, Dominique Ramaekers wrote: > Hi, > > > I'm trying to create an external snapshot for backup purposes. Only I > get an error after the command: [Please try to wrap long lines, it makes reading emails easier, I did that manually this time.] > > virsh

Re: [libvirt-users] libvirtd service not starting

2015-09-24 Thread Kashyap Chamarthy
On Thu, Sep 24, 2015 at 06:47:43AM +0200, Martin Kletzander wrote: > On Wed, Sep 23, 2015 at 11:00:34PM +, Jonathan Rurka wrote: > >Hello, I'm new to using libvirt. After a few days of installing and > >removing libvirt, virt-manager and a few others to get VT-d working > >with a virtual

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

2015-09-11 Thread Kashyap Chamarthy
[. . .] On Fri, Sep 11, 2015 at 10:45:34AM -0600, Eric Blake wrote: > On 09/11/2015 10:18 AM, Jérôme wrote: > > >> Yep, that about covers it. Note that the --quiesce step in snapshot > >> creation requires qemu-guest-agent running in the guest, and that you > >> trust interaction with your

Re: [libvirt-users] libvirt-lxc

2015-08-11 Thread Kashyap Chamarthy
On Tue, Aug 11, 2015 at 08:31:02AM +0200, Martin Kletzander wrote: On Mon, Aug 10, 2015 at 09:50:04PM +0100, Mark Clarkson wrote: Hi, I noticed that libvirt-lxc will be deprecated for RedHat: Future development on the Linux containers framework is now based on the docker command-line

Re: [libvirt-users] So why does destroy not actually destroy?

2015-07-14 Thread Kashyap Chamarthy
On Tue, Jul 14, 2015 at 12:51:31AM +, KARR, DAVID wrote: I thought it odd that if I have a running VM and I do virsh destroy it results in a VM that is shut off. To ACTUALLY destroy a VM, you have to follow that with undefine. Could someone elaborate on how we ended up with these

Re: [libvirt-users] Migrating guests

2015-06-12 Thread Kashyap Chamarthy
On Thu, Jun 11, 2015 at 07:28:10PM +0200, Dominique Ramaekers wrote: Hi, I'm experimenting with the migration function of virsh. I'm doing the migrate with following commands: virsh migrate --life --persistent --copy-storage-all --verbose --abort-on-error domain

Re: [libvirt-users] preallocation=full Vs preallocation=metadata

2015-06-03 Thread Kashyap Chamarthy
On Tue, Jun 02, 2015 at 09:14:03AM +0530, Jatin Davey wrote: Hi All I was reading through this: http://kashyapc.com/2011/12/02/little-more-disk-io-perf-improvement-with-fallocateing-a-qcow2-disk/ In my testing, the above method gives near-raw performance as it preallocated all the space

Re: [libvirt-users] snapshots and vmdk

2015-06-01 Thread Kashyap Chamarthy
On Sat, May 30, 2015 at 02:35:51AM +, Boylan, Ross wrote: Does libvirt support snapshotting when the virtual disk comes from a vmdk file? From my quick test (refer below), seems like you can at-least use VMDK as a backing file. http://wiki.libvirt.org/page/Snapshots#Desired_functionality

Re: [libvirt-users] Bug in Snapshot Removing

2015-06-01 Thread Kashyap Chamarthy
On Sun, May 31, 2015 at 10:56:40PM +, Soeren Malchow wrote: Dear all I am not sure if the mail just did not get any attention between all the mails and this time it is also going to the libvirt mailing list. Saw your mails, but it was hard to parse them. I am experiencing a problem

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

2015-04-29 Thread Kashyap Chamarthy
On Wed, Apr 29, 2015 at 10:08:54AM +0300, NoxDaFox wrote: Greetings, due to hardware failure I had to replace my workstation which has a different CPU. I have a VM with several snapshots and I need to revert to a specific one. I'll assume these are external snapshots? You might want to note

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

2015-04-29 Thread Kashyap Chamarthy
On Wed, Apr 29, 2015 at 10:30:09AM -0600, Eric Blake wrote: On 04/29/2015 09:47 AM, Andreas Buschmann wrote: Hello, I have two servers where I can push VMs from one to the other by issuing the command virsh migrate --live --persistent --copy-storage-all --verbose \ test6

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

2015-04-21 Thread Kashyap Chamarthy
environment, it's preferabl to use the newest versions. -- /kashyap On Mon, Apr 20, 2015 at 10:51 PM, Kashyap Chamarthy kcham...@redhat.com wrote: On Mon, Apr 20, 2015 at 10:37:13PM +0800, Chengyuan Li wrote: Hi, I tried to enable virtio-blk data plane feature for VMs in my openstack

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

2015-04-20 Thread Kashyap Chamarthy
On Mon, Apr 20, 2015 at 10:37:13PM +0800, Chengyuan Li wrote: Hi, I tried to enable virtio-blk data plane feature for VMs in my openstack environment, the hypervisor is ubuntu 14.04, libvirt 1.2.2 [I haven't tested the virtio-blk data plane myself.] This libvirt version seems a little old

Re: [libvirt-users] CPU Resource Reservation using KVM

2015-04-13 Thread Kashyap Chamarthy
On Mon, Apr 13, 2015 at 12:14:12PM +0530, Jatin Davey wrote: Hi All I am new to KVM world. I have been using VMware for about a year. In VMware world we can reserve cpu resources for a VM. Say for instance if we need 4 vCPUs with a total of 8000 GHz then we can mention this configuration

Re: [libvirt-users] CPU Resource Reservation using KVM

2015-04-13 Thread Kashyap Chamarthy
On Mon, Apr 13, 2015 at 01:41:59PM +0530, Jatin Davey wrote: On 4/13/2015 1:18 PM, Kashyap Chamarthy wrote: On Mon, Apr 13, 2015 at 12:14:12PM +0530, Jatin Davey wrote: Hi All I am new to KVM world. I have been using VMware for about a year. In VMware world we can reserve cpu resources

[libvirt-users] P2P live migration with non-shared storage: fails to connect to remote libvirt URI qemu+ssh

2015-04-03 Thread Kashyap Chamarthy
Migration without --p2p works just fine, ie. the below works: $ virsh migrate --verbose --copy-storage-all \ --live cvm1 qemu+ssh://kashyapc@devstack3/system Migration: [100 %] Result: - On the source host, the guest is shut off - On the destination host, the

Re: [libvirt-users] P2P live migration with non-shared storage: fails to connect to remote libvirt URI qemu+ssh

2015-04-03 Thread Kashyap Chamarthy
On Fri, Apr 03, 2015 at 10:08:21AM +0200, Kashyap Chamarthy wrote: Migration without --p2p works just fine, ie. the below works: $ virsh migrate --verbose --copy-storage-all \ --live cvm1 qemu+ssh://kashyapc@devstack3/system Migration: [100 %] [. . .] (2) Perform

Re: [libvirt-users] P2P live migration with non-shared storage: fails to connect to remote libvirt URI qemu+ssh

2015-04-03 Thread Kashyap Chamarthy
On Fri, Apr 03, 2015 at 10:13:38AM +0200, Kashyap Chamarthy wrote: On Fri, Apr 03, 2015 at 10:08:21AM +0200, Kashyap Chamarthy wrote: Migration without --p2p works just fine, ie. the below works: $ virsh migrate --verbose --copy-storage-all \ --live cvm1 qemu+ssh

[libvirt-users] [RESOLVED] Re: P2P live migration with non-shared storage: fails to connect to remote libvirt URI qemu+ssh

2015-04-03 Thread Kashyap Chamarthy
On Fri, Apr 03, 2015 at 12:27:07PM +0200, Kashyap Chamarthy wrote: On Fri, Apr 03, 2015 at 10:13:38AM +0200, Kashyap Chamarthy wrote: On Fri, Apr 03, 2015 at 10:08:21AM +0200, Kashyap Chamarthy wrote: Migration without --p2p works just fine, ie. the below works: $ virsh

Re: [libvirt-users] virsh dom state

2015-03-23 Thread Kashyap Chamarthy
On Mon, Mar 23, 2015 at 05:49:36PM +0100, Michal Privoznik wrote: On 23.03.2015 16:02, Fiorenza Meini wrote: Hi there, I'm running KVM under Openstack . When I give virsh list command, I see some VM in NON persistent state. What does it mean? How can I move it to a persisten state ?

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

2015-03-16 Thread Kashyap Chamarthy
On Sun, Mar 15, 2015 at 10:28:30PM +0800, Yitao Jiang wrote: Hi,guys I wanna to get the disk snapshot size, but found nothing libvirt commands related,except qemu-img. I create two disk snapshots, but nothing return its' size The below does not seem like snapshots. They're *internal* qcow2

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

2015-03-16 Thread Kashyap Chamarthy
On Mon, Mar 16, 2015 at 10:51:21AM +0100, Kashyap Chamarthy wrote: On Sun, Mar 15, 2015 at 10:28:30PM +0800, Yitao Jiang wrote: Hi,guys I wanna to get the disk snapshot size, but found nothing libvirt commands related,except qemu-img. I create two disk snapshots, but nothing return its

Re: [libvirt-users] Issues with XML validation after upgrade to 1.2.12

2015-03-10 Thread Kashyap Chamarthy
On Tue, Mar 10, 2015 at 11:31:17AM -0400, Brian Rak wrote: After we upgraded to 1.2.12, we've been having issues with libvirt... it complains that our formerly valid guest definitions are now invalid: Yeah, w/ 1.2.12, I've noticed similar XML validation errors. E.g. the XML fragment in the

Re: [libvirt-users] Broken OS when booting rootfs from 9p share

2015-02-26 Thread Kashyap Chamarthy
On Tue, Feb 24, 2015 at 11:56:50PM +0100, Olivier Mauras wrote: On Tue, 2015-02-24 at 16:05 -0500, Laine Stump wrote: On 02/24/2015 03:37 PM, Olivier Mauras wrote: Hello, I've been trying to boot a VM with the rootfs being a 9P share from the host. The VM OS is centos 7. The

Re: [libvirt-users] Fwd: Unattended guest installation fails

2015-02-25 Thread Kashyap Chamarthy
On Wed, Feb 25, 2015 at 10:14:52AM +0530, ChandraShekar Shastri wrote: Hi, I am following the below link to install a Fedora19 guest on Fedora19 Host. http://kashyapc.com/2011/08/18/unattended-guest-install-with-a-local-kickstart/ [. . .] I have the iso which I loop mounted and created a

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

2015-02-15 Thread Kashyap Chamarthy
On Fri, Feb 13, 2015 at 01:03:49PM -0700, Eric Blake wrote: On 02/13/2015 03:15 AM, Kashyap Chamarthy wrote: On Thu, Feb 12, 2015 at 08:41:31PM -0600, Edward Young wrote: Hi all, When I live migrate a vm using migrate --live --copy-storage-all mig-vm qemu+ssh://192.168.1.3/system

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

2015-02-13 Thread Kashyap Chamarthy
On Thu, Feb 12, 2015 at 08:41:31PM -0600, Edward Young wrote: Hi all, When I live migrate a vm using migrate --live --copy-storage-all mig-vm qemu+ssh://192.168.1.3/system tcp://192.168.1.3 I got the following error WARNING: Image format was not specified for

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

2015-01-28 Thread Kashyap Chamarthy
On Wed, Jan 28, 2015 at 02:32:12AM +0400, Vasiliy Tolstov wrote: Hi. I need to get ability to download backups of kvm virtual machines (raw images) to end users. Virtualbox users can import ovs images, that i can create, but in case of linux and virt-manager - how users can import images and

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

2015-01-28 Thread Kashyap Chamarthy
On Wed, Jan 28, 2015 at 01:57:28PM +0400, Vasiliy Tolstov wrote: 2015-01-28 12:47 GMT+03:00 Kashyap Chamarthy kcham...@redhat.com: I don't have immediate steps with `virt-manager` as I don't use it much in my workflow. But if you have users who're comfortable with CLI, you can import disk

Re: [libvirt-users] questions around using numatune/numa/schedinfo

2015-01-26 Thread Kashyap Chamarthy
On Mon, Jan 26, 2015 at 01:08:50PM +0100, Michal Privoznik wrote: On 23.01.2015 19:46, Chris Friesen wrote: Hi, I'm running into some problems with libvirt and hoping someone can point me at some instructions or maybe even help me out. First, are there any requirements on qemu

Re: [libvirt-users] [libvirt] libvirt 1.2.10 and latest EL6 qemu-kvm

2015-01-20 Thread Kashyap Chamarthy
On Mon, Jan 19, 2015 at 08:25:55PM +0100, Franky Van Liedekerke wrote: Kashyap Chamarthy kcham...@redhat.com schreef op 19 januari 2015 19:00:23 CET: [. . .] And as a result, when doing 'virsh start' (virsh define worked ok), the following error occured: 2015-01-19 15:05:26.539

Re: [libvirt-users] [libvirt] libvirt 1.2.10 and latest EL6 qemu-kvm

2015-01-19 Thread Kashyap Chamarthy
[Dropping libvir list and adding libvir-users list.] On Mon, Jan 19, 2015 at 04:12:46PM +0100, liede...@telenet.be wrote: Hi all, I had libvirt 1.2.10 running without issues together with the qemu package qemu-kvm-0.12.1.2-2.415.el6_5.14.x86_64.rpm That's a really old QEMU and the

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

2015-01-13 Thread Kashyap Chamarthy
On Tue, Jan 13, 2015 at 03:07:07PM +0100, Fiorenza Meini wrote: Il 13/01/2015 10:51, Kashyap Chamarthy ha scritto: [. . .] In libvirt log file I can see: error : qemuDomainDefineXML:6312 : block copy still active: domain has active block job Libvirt is 1.2.7 version, linux system

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

2015-01-13 Thread Kashyap Chamarthy
On Tue, Jan 13, 2015 at 10:10:53AM +0100, Fiorenza Meini wrote: Hi there, I receive this error when I run nova image-create VM name Vm Sanpshot name: Okay, you're talking in the context of OpenStack. You can also check the Nova compute.log for more contextual details of why the operation

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

2015-01-13 Thread Kashyap Chamarthy
On Tue, Jan 13, 2015 at 08:49:53AM -0700, Eric Blake wrote: On 01/13/2015 07:21 AM, Kashyap Chamarthy wrote: [. . .] Seems like you're hitting an old bug[1] where 'blockcopy' (or 'blockcommit') missed to execute a cleanup routine which destroys a reference to the active block operation

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

2015-01-09 Thread Kashyap Chamarthy
On Thu, Jan 08, 2015 at 06:14:05PM -0600, Gary R Hook wrote: On 1/8/15 2:48 PM, Eric Blake wrote: On 12/23/2014 05:24 PM, Gary R Hook wrote: I read that article. Now shut down the domain (post-pivot) which is using the new disk file, and start it up, without using a block device. This is

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

2015-01-09 Thread Kashyap Chamarthy
On Thu, Jan 08, 2015 at 06:04:20PM -0600, Gary R Hook wrote: On 1/8/15 2:21 PM, Kashyap Chamarthy wrote: qemu-img create -f qcow2 /tmp/dsk.test.qcow2 A typo? You also need to provide a size here: $ qemu-img create -f qcow2 /tmp/dsk.test.qcow2 1G Yes, my mistake. The size is set

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

2015-01-08 Thread Kashyap Chamarthy
On Thu, Jan 08, 2015 at 01:44:58PM -0600, Gary R Hook wrote: On 12/24/14 4:42 AM, Kashyap Chamarthy wrote: On Tue, Dec 23, 2014 at 12:38:57PM -0600, Gary R Hook wrote: [. . .] In my case, the block device is a QCOW2 disk image file. If I boot without using the disk image file which has

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

2015-01-02 Thread Kashyap Chamarthy
On Mon, Dec 29, 2014 at 08:17:42PM +0800, 75124955 wrote: I am using Libvirt virsh command by vmware esx created a virtual host, has been unable to create success. My creation process is as follows : Create a virtual host XML file content is as follows: domain type='vmware'

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

2014-12-23 Thread Kashyap Chamarthy
On Mon, Dec 22, 2014 at 03:50:58PM -0700, Eric Blake wrote: On 12/22/2014 03:27 PM, Gary R Hook wrote: I am experimenting with the blockcopy command, and after figuring out how to integrate qemu-nbd, nbd-client and dumpxml/undefine/blockcopy/define/et. al. I have one remaining question:

Re: [libvirt-users] some problem with snapshot by libvirt

2014-11-21 Thread Kashyap Chamarthy
On Fri, Nov 21, 2014 at 07:51:33PM +, Payes wrote: Eric Blake eblake@... writes: [. . .] Yep. You've run into a case where I haven't yet been able to code things. The problem is that reverting to a disk image has a question - you are starting with two files (the snapshot backing

Re: [libvirt-users] Is there a way to disable libvirt qemu monitor while creating kvm vm using virsh?

2014-11-09 Thread Kashyap Chamarthy
On Fri, Nov 07, 2014 at 03:28:57PM -0700, Min Du wrote: Hi, Now for some reason, I need to add “ -qmp tcp:127.0.0.1:1235” when creating a KVM VM using libvirt. You might need to elaborate how exactly you're doing this. This command meaning in “qemu-kvm --help” is: -qmp devlike

Re: [libvirt-users] backup KVM qcow2 over btrfs or zfs

2014-11-07 Thread Kashyap Chamarthy
On Thu, Nov 06, 2014 at 06:08:38PM +0100, Francesco Morosinotto wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you a lot for your reply; You should really consider using libvirt live snapshots. With new enough libvirt and qemu, you can even get optimal behavior with no

Re: [libvirt-users] Revert to internal snapshot - XML error: Non-empty feature list specified without CPU model

2014-10-30 Thread Kashyap Chamarthy
On Fri, Oct 24, 2014 at 03:43:55PM +0200, Kashyap Chamarthy wrote: Versions: $ rpm -q libvirt-daemon-kvm qemu-system-x86 libvirt-daemon-kvm-1.2.9-3.fc21.x86_64 qemu-system-x86-2.1.2-4.fc21.x86_64 When I attempt to revert to an internal snapshot: $ virsh snapshot-list node1

Re: [libvirt-users] problem with libvirt and ovs bridge

2014-10-28 Thread Kashyap Chamarthy
On Tue, Oct 28, 2014 at 05:32:58PM +0100, Anna Giannakou wrote: Hello, I have created an ovs bridge on which i have attached a port. I would like to connect my vm to that port,so i have created an xml defining the network. The xml is: network nameovs-snort/name forward mode='bridge'/

[libvirt-users] Revert to internal snapshot - XML error: Non-empty feature list specified without CPU model

2014-10-24 Thread Kashyap Chamarthy
Versions: $ rpm -q libvirt-daemon-kvm qemu-system-x86 libvirt-daemon-kvm-1.2.9-3.fc21.x86_64 qemu-system-x86-2.1.2-4.fc21.x86_64 When I attempt to revert to an internal snapshot: $ virsh snapshot-list node1 Name Creation Time State

Re: [libvirt-users] drive-backup command permission denied.. and need some clarification

2014-10-16 Thread Kashyap Chamarthy
On Wed, Oct 15, 2014 at 01:56:20PM -0700, Jd wrote: On 10/15/14, 2:37 AM, Kashyap Chamarthy wrote: On Tue, Oct 14, 2014 at 02:08:41PM -0600, Eric Blake wrote: On 10/14/2014 11:52 AM, Jd wrote: Hi * Trying to get drive-backup command, getting permission denied. :( sudo virsh

Re: [libvirt-users] drive-backup command permission denied.. and need some clarification

2014-10-15 Thread Kashyap Chamarthy
On Tue, Oct 14, 2014 at 02:08:41PM -0600, Eric Blake wrote: On 10/14/2014 11:52 AM, Jd wrote: Hi * Trying to get drive-backup command, getting permission denied. :( sudo virsh qemu-monitor-command --hmp my-instance --cmd drive_backup drive-virtio-disk0 /tmp/foo.vda.img

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-14 Thread Kashyap Chamarthy
On Mon, Oct 13, 2014 at 08:11:44PM +0200, Thomas Stein wrote: On Monday 13 October 2014 16:35:15 Thomas Stein wrote: Am 13.10.14 16:25, schrieb Eric Blake: On 10/13/2014 03:56 AM, Thomas Stein wrote: Hello. blockcommit vm1 vda --active --verbose --pivot That's where libvirt

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-12 Thread Kashyap Chamarthy
On Fri, Oct 10, 2014 at 07:32:06PM -0600, Eric Blake wrote: On 10/10/2014 11:37 AM, Jd wrote: Hi Looking in to implementing (CBT like) delta backup for KVM. Not quite sure what you mean by CBT. The following looks promising..(last paragraph)

Re: [libvirt-users] unattended cloning

2014-09-19 Thread Kashyap Chamarthy
On Tue, Sep 16, 2014 at 08:19:36AM +0100, Adam King wrote: Morning, I have a KVM guest running Win 2012 with MS SQL 2012. In order to provide a quick method of restoring the service should the live server die, we've decided to clone it to a preserved state. Ideally, this clone should also

Re: [libvirt-users] Behavior of disk caching with qcow2 disks

2014-08-12 Thread Kashyap Chamarthy
On Mon, Aug 11, 2014 at 02:06:54PM -0500, Andrew Martin wrote: Hello, I am running several virtualization servers with QEMU 1.4.x and libvirt 1.0.2 on Ubuntu 12.04 and am working on optimizing the cache= and aio= options for the virtual machines. These VM images are mostly qcow2, and are

Re: [libvirt-users] virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-04 Thread Kashyap Chamarthy
On Thu, Jul 03, 2014 at 11:08:15AM -0600, Eric Blake wrote: On 07/02/2014 01:12 PM, Kashyap Chamarthy wrote: We have this simple chain: base - snap1 Let's quickly examine the contents of 'base' and 'snap1' images: Now, let's do a live blockcopy (with a '--finish

[libvirt-users] [Resolved] Re: virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-03 Thread Kashyap Chamarthy
On Thu, Jul 03, 2014 at 05:07:40PM +0800, shyu wrote: On 07/03/2014 03:12 AM, Kashyap Chamarthy wrote: [. . ] Okay, I clearly must have done something wrong during guestfish disk creations plus a mix of libvirt/QEMU manipulations (backing chains were created using `qemu-img`). If I

[libvirt-users] virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-02 Thread Kashyap Chamarthy
Versions (Libvirt locally built from a recent git commit -ec7b922): $ rpm -q libvirt-daemon-kvm qemu-system-x86 libvirt-daemon-kvm-1.2.6-1.fc20.x86_64 qemu-system-x86-2.0.0-1.fc21.x86_64 Test [All images are qcow2 files.] We have this simple chain: base -

Re: [libvirt-users] virsh blockcopy: doesn't seem to flatten the chain by default

2014-07-02 Thread Kashyap Chamarthy
On Thu, Jul 03, 2014 at 12:42:20AM +0530, Kashyap Chamarthy wrote: [. . .] Forgot to note: Before blockcopy, the current block device is snap1.qcow2 (after too, it's the same, since we didn't `--pivot` to the copy. Now, let's do a live blockcopy (with a '--finish' to graecully finish

Re: [libvirt-users] bridge could not be initialized

2014-06-24 Thread Kashyap Chamarthy
On Tue, Jun 24, 2014 at 05:24:01PM +0530, Kashyap Chamarthy wrote: [Please keep the list in CC for technical questions.] Now adding the list for real. On Mon, Jun 23, 2014 at 04:45:25PM +0530, abhishek jain wrote: Hi I'm trying to run VM from controller node onto compute node

Re: [libvirt-users] bridge could not be initialized

2014-06-19 Thread Kashyap Chamarthy
On Thu, Jun 19, 2014 at 10:29:12AM +0300, Laine Stump wrote: On 06/18/2014 04:43 PM, abhishek jain wrote: Hi I'm trying to run VM using libvirt.xml file and getting following error... virsh start instance-0003 error: Failed to start domain instance-0003 error: internal

Re: [libvirt-users] Fedora 19/20 new install :Unable to create vcpu cgroup

2014-06-15 Thread Kashyap Chamarthy
On Sun, Jun 15, 2014 at 09:01:29AM +0300, Patrick Chemla wrote: [. . .] When trying to create a new VM using virt-manager I am getting : Impossible de terminer l'installation : « internal error: process exited while connecting to monitor: Failed to create chardev » Traceback (most

Re: [libvirt-users] Fedora 19/20 new install :Unable to create vcpu cgroup

2014-06-15 Thread Kashyap Chamarthy
On Sun, Jun 15, 2014 at 10:27:12AM +0300, Patrick Chemla wrote: [. . .] I adapted your commands to my conf: # qemu-img create -f qcow2 -o preallocation=metadata /home/kvmimages/f20vm 4G Formatting '/home/kvmimages/f20vm', fmt=qcow2 size=4294967296 encryption=off cluster_size=65536

Re: [libvirt-users] Fedora 19/20 new install :Unable to create vcpu cgroup

2014-06-15 Thread Kashyap Chamarthy
On Sun, Jun 15, 2014 at 01:33:46PM +0300, Patrick Chemla wrote: Hi, I sill need some help. I tried to remove cdrom and USB controllers from qemu xml definition file. Still same Failed to create chardev when trying to run a Vms that run on my local Fedora 20 computer. You didn't

  1   2   >