Requirements to enable discard support on virtio-blk

2022-03-30 Thread Andrew Martin
Hello, I am attempting to enable discard support on the virtio-blk device on a QEMU VM however it isn't working. My understanding is that this is enabled in QEMU >= 4.0, so I am not sure why this isn't working: Host OS: Ubuntu 20.04 (kernel 5.4.0) Guest OS: Ubuntu 18.04 (kernel 4.15.0) Guest con

Re: [libvirt-users] Blockpull behavior when interrupted

2016-07-25 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" > Cc: libvirt-users@redhat.com > Sent: Friday, July 22, 2016 10:40:54 PM > Subject: Re: [libvirt-users] Blockpull behavior when interrupted > > On 07/22/2016 11:30 AM, Andrew Mar

Re: [libvirt-users] Blockpull behavior when interrupted

2016-07-25 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" > Cc: libvirt-users@redhat.com > Sent: Friday, July 22, 2016 10:40:54 PM > Subject: Re: [libvirt-users] Blockpull behavior when interrupted > > On 07/22/2016 11:30 AM, Andrew Mar

Re: [libvirt-users] Blockpull behavior when interrupted

2016-07-22 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" , libvirt-users@redhat.com > Sent: Thursday, July 21, 2016 5:40:07 PM > Subject: Re: [libvirt-users] Blockpull behavior when interrupted > > On 07/21/2016 03:05 PM, Andrew Martin wro

[libvirt-users] Blockpull behavior when interrupted

2016-07-21 Thread Andrew Martin
Hello, I use snapshot-create-as followed by blockpull when creating external snapshots of VMs. This works well, however I am curious about the behavior of blockpull after an unexpected shutdown (or SIGKILL). If a blockpull is in progress and an unexpected power loss occurs, will the VM continue to

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

2015-04-14 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" , libvirt-users@redhat.com > Sent: Tuesday, April 14, 2015 10:26:50 AM > Subject: Re: [libvirt-users] Update on-disk XML after virsh snapshot-create-as > > On 04/14/2015 09:17 AM, Andr

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

2015-04-14 Thread Andrew Martin
u/.xml Is it safe for me to overwrite the contents of /etc/libvirt/qemu/.xml manually while the VM is running? Thanks, Andrew Martin ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

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

2014-08-14 Thread Andrew Martin
- Original Message - > From: "Kashyap Chamarthy" > > Looking at `qemu-img` source[1], 'cache=writeback' seems to be the > default. That's also corroborated by this[2] (Rich's blog, and > libguestfs/virt-tools lead developer). > > > [1] > > http://git.qemu.org/?p=qemu.git;a=blob;f=q

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

2014-08-11 Thread Andrew Martin
that "Write barriers enforce proper on-disk ordering of journal commits, making volatile disk write caches safe to use, at some performance penalty". Does this apply to qcow2 VM images? Thanks, Andrew Martin ___ libvirt-users mailing list lib

Re: [libvirt-users] Live blockcopy onto storage pool that is an NFS mount?

2014-08-08 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" , libvirt-users@redhat.com > Sent: Friday, August 1, 2014 4:40:28 PM > Subject: Re: [libvirt-users] Live blockcopy onto storage pool that is an NFS > mount? > > > > > Howev

[libvirt-users] Live blockcopy onto storage pool that is an NFS mount?

2014-08-01 Thread Andrew Martin
Hello, I am running qemu-kvm 1.4.0 and libvirt 1.0.2 on Ubuntu 12.04. I have two NFS mountpoints configured as two separate pools in virsh: nfs1 419d799c-2493-6ebc-6848-53b0919e7bad 6836057014272 0 6836057014272 /var/lib/libvirt/images/nfs1 0711 0 0

Re: [libvirt-users] Live snapshots of a single block device

2014-06-03 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" > Cc: libvirt-users@redhat.com > Sent: Friday, May 23, 2014 7:30:44 PM > Subject: Re: [libvirt-users] Live snapshots of a single block device > > On 05/23/2014 12:16 PM, Andrew Mar

Re: [libvirt-users] Live snapshots of a single block device

2014-05-23 Thread Andrew Martin
> >> --live only makes sense when mixed with memory snapshots (with --memspec); > >> but > >> as you are doing a --disk-only snapshot, it doesn't help (I'm not sure if > >> it > >> will error out as mutually exclusive or just be silently ignored, > >> without reading the code). > > I'm using this c

Re: [libvirt-users] Live snapshots of a single block device

2014-05-23 Thread Andrew Martin
- Original Message - > From: "Eric Blake" To: "Andrew Martin" > , libvirt-users@redhat.com Sent: Thursday, May 22, 2014 > 5:44:54 PM Subject: Re: [libvirt-users] Live snapshots of a single block > device > > On 05/22/2014 04:31 PM, Andrew Martin wrote

[libvirt-users] Live snapshots of a single block device

2014-05-22 Thread Andrew Martin
te an external snapshot for a specific block device only (not all block devices)? Also, while looking at the manpage, does the --live option do anything different if used with the above command? Thanks, Andrew Martin ___ libvirt-users mailing list li

Re: [libvirt-users] Can I move the disk image of the guest while it is running?

2014-02-07 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" > Cc: "Gergely Horváth" , libvirt-users@redhat.com > Sent: Thursday, February 6, 2014 2:35:35 PM > Subject: Re: [libvirt-users] Can I move the disk image of the guest while

Re: [libvirt-users] Can I move the disk image of the guest while it is running?

2014-02-06 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" > Cc: "Gergely Horváth" , libvirt-users@redhat.com > Sent: Thursday, February 6, 2014 9:31:29 AM > Subject: Re: [libvirt-users] Can I move the disk image of the guest while

Re: [libvirt-users] Can I move the disk image of the guest while it is running?

2014-02-06 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Gergely Horváth" , libvirt-users@redhat.com > Sent: Wednesday, February 5, 2014 4:47:47 PM > Subject: Re: [libvirt-users] Can I move the disk image of the guest while it > is running? > > On 02/05/2014 02:54 PM, Gergely Horváth wrote: >

Re: [libvirt-users] Fake Network Interface

2014-01-15 Thread Andrew Martin
- Original Message - > From: "Laine Stump" > To: libvirt-users@redhat.com > Cc: "Andrew Martin" > Sent: Tuesday, January 14, 2014 3:54:51 AM > Subject: Re: [libvirt-users] Fake Network Interface > > On 12/30/2013 11:25 AM, Andrew Martin w

Re: [libvirt-users] Fake Network Interface

2014-01-13 Thread Andrew Martin
fake Once done, you can add this block of XML to your VM config with "virsh edit ": Note that you should adjust the "slot" and "mac" arguments to avoid conflicts. Thanks, Andrew - Original Message - > From: &qu

[libvirt-users] Fake Network Interface

2013-12-30 Thread Andrew Martin
Hello, Is there a supported method for creating a fake network interface in a VM's configuration file? I was using the below construct, however it is no longer working for me in recent versions of libvirt (libvirt 1.0.2 with qemu-kvm 1.4.0). Is there a different, preferred method for creating a

Re: [libvirt-users] Managing Live Snapshots with Libvirt 1.0.1

2013-02-04 Thread Andrew Martin
- Original Message - > From: "Eric Blake" > To: "Andrew Martin" > Cc: libvirt-users@redhat.com > Sent: Friday, February 1, 2013 3:23:03 PM > Subject: Re: [libvirt-users] Managing Live Snapshots with Libvirt 1.0.1 > > On 02/01/2013 11:12 AM, An

Re: [libvirt-users] Managing Live Snapshots with Libvirt 1.0.1

2013-02-01 Thread Andrew Martin
Hi Eric, - Original Message - > From: "Eric Blake" To: "Andrew Martin" > Cc: libvirt-users@redhat.com Sent: Thursday, > January 31, 2013 6:25:42 PM Subject: Re: [libvirt-users] Managing Live > Snapshots with Libvirt 1.0.1 > > On 01/31/2013 04:0

[libvirt-users] Managing Live Snapshots with Libvirt 1.0.1

2013-01-31 Thread Andrew Martin
Hello, I recently compiled libvirt 1.0.1 and qemu 1.3.0 on Ubuntu 12.04. I have performed live snapshots on VMs using "virsh snapshot-create-as" and then later re-merge the images together using "virsh blockpull". I am wondering how I can do a couple of other operations on the images while the

Re: [libvirt-users] Newer Builds Available for Ubuntu 12.04 LTS?

2012-12-14 Thread Andrew Martin
gt; > Andrew we use libvirt 1.0.0 on 12.04 Ubuntu. I assume it came from > libvirt. > > John > > On 12/14/2012 07:08 AM, Andrew Martin wrote: > > > Is anyone maintaining newer binary builds for Ubuntu? -- > John Fisher > __

[libvirt-users] Newer Builds Available for Ubuntu 12.04 LTS?

2012-12-14 Thread Andrew Martin
Hello, I am running Libvirt 0.9.8 and QEMU 1.0 on Ubuntu 12.04 LTS on several virtual machine servers and would like to take advantage of some of the snapshotting functionality available in newer versions of QEMU and Libvirt: https://www.redhat.com/archives/libvirt-users/2012-August/msg00086.htm

Re: [libvirt-users] Live Snapshot and Rebasing using blockpull

2012-08-20 Thread Andrew Martin
rom: "Eric Blake" To: "Andrew Martin" Cc: libvirt-users@redhat.com Sent: Friday, August 17, 2012 9:43:23 AM Subject: Re: [libvirt-users] Live Snapshot and Rebasing using blockpull On 08/17/2012 08:27 AM, Andrew Martin wrote: > > 1. virsh snapshot-create-as to cre

[libvirt-users] Live Snapshot and Rebasing using blockpull

2012-08-17 Thread Andrew Martin
Hello, I am looking for a solution for live backups of running KVM hosts. I recently read this article which highlights the following method: http://www.linux-kvm.com/content/first-look-virtual-machine-online-disk-snapshots-coming-fedora-18 1. virsh snapshot-create-as to create the snapsh

Re: [libvirt-users] Source of Qcow2 Image Corruption

2012-08-14 Thread Andrew Martin
pci_add_option_rom: failed to find romfile "pxe-virtio.bin" qcow2_free_clusters failed: Invalid argument These systems are running the stock Ubuntu 10.04 version of qemu-common, qemu-kvm, and kvm (0.12.3+noroms-0ubuntu9.19). Thanks, Andrew - Original Message - From: &quo

[libvirt-users] Source of Qcow2 Image Corruption

2012-08-14 Thread Andrew Martin
ovide to diagnose why these images are getting corrupted and taking these running VMs offline? Thanks, Andrew Martin ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

[libvirt-users] Authentication via SASL and LDAP?

2012-08-07 Thread Andrew Martin
to start SASL negotiation: -4 (SASL(-4): no mechanism available: ) error: failed to connect to the hypervisor Do you know what is incorrect in my libvirt config, or is it not possible to authenticate libvirt via SASL+LDAP? If not, is there somewhere that documents all of the supported

Re: [libvirt-users] Virtual Machines Stay Off If Rebooted

2012-05-30 Thread Andrew Martin
Hi Patrick, Yes, this is a production server. Thanks, Andrew - Original Message - From: "Patrick Wilbur" To: "Andrew Martin" Cc: libvirt-users@redhat.com Sent: Saturday, May 26, 2012 9:27:20 AM Subject: Re: [libvirt-users] Virtual Machines Stay Off If Re

Re: [libvirt-users] Virtual Machines Stay Off If Rebooted

2012-05-25 Thread Andrew Martin
? Thanks! Andrew - Original Message - From: "Patrick Wilbur" To: "Andrew Martin" Cc: libvirt-users@redhat.com Sent: Friday, May 25, 2012 4:15:34 PM Subject: Re: [libvirt-users] Virtual Machines Stay Off If Rebooted Hey Andrew, Could you run the following? #v

[libvirt-users] Virtual Machines Stay Off If Rebooted

2012-05-25 Thread Andrew Martin
Hello, I am using libvirt on Ubuntu 10.04 Server and the following versions of these packages: libvirt-bin, libvirt0, python-libvirt - 0.7.5-5ubuntu27.22 qemu-kvm 0.12.3+noroms-0ubuntu9.18 Recently, when restarting a VM (either by issuing "sudo reboot" on a Linux guest or choosing "Restar