Displaying 20 results from an estimated 64 matches for "domblklist".
2018 Apr 30
1
Unable to detach disk using 'virsh detach-disk'
I'm unable to detach a disk from a Windows guest using the 'virsh
detach-disk' command.
Even though 'domblklist' shows the disk attached, and on the FIRST
iteration, it says the command "completed successfully," 'domblklist
will still show the disk attached and subsequent 'detach-disk' commands
fail with 'no disk found whose source path or target is ${location}'
~ # vi...
2015 Aug 07
3
virsh create snapshot not honoring diskspec?
...a snapshot of
all disks. Am I using this option incorrectly?
In below examples, I'm trying to snapshot only vdb. However even vda is
getting snapshotted regardless of diskspec. Is this a known issue?
I'm on CentOS 7.1, libvirtd (libvirt) 1.2.8, virsh 1.2.8
[root@localhost scripts]# virsh domblklist centos_nfs
Target Source
------------------------------------------------
vda /var/lib/libvirt/images/centos_nfs.SNAP_2015-08-07-081800
vdb /var/lib/libvirt/images/centos_nfs_storage.SNAP_2015-08-07-081800
hdc -
[root@localhost scripts]# virsh snapshot-create-as --domain c...
2019 Apr 25
1
Live Disk Backup with Active Blockcommit
Hi!
I was reading the Wiki about 'Live Disk Backup with Active Blockcommit, https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit
and see that example shown seems to be using two different names for the same file.
First showing the current block device in use:
$ virsh domblklist vm1
Target Source
------------------------------------------------
vda /export/images/base.qcow2
Then copying the same file for backup:
$ cp /export/images/base.img /export/images/copy.img
=> Is there are reason why the block device first is called 'base.qcow2' and then ...
2016 Sep 03
2
internal snapshot question
I take an internal snapshot (VM is 'shutdown' when taking it) of a qcow2 image like this:
$ qemu-img snapshot -c sn1 [my_image].qcow2
I see that snapshot when asking for:
$ qemu-img info [my_image].qcow
but do NOT see it with:
$ virsh domblklist [my_domain]
is that how it is meant to be?
2019 Mar 07
1
why attach-disk can't be effective when the guest is booting
Hi,
When i use "virsh attach-device rhel disk.xml" when the guest is
booting,then i can't find the disk in the guest after booting.But i can
find it by "virsh domblklist rhel",and when i want to detach it from the
guest and use "virsh detach-disk rhel vdb", i still can find the disk by
"virsh domblklist rhel"
The disk.xml is like:
<disk type="file" device="disk">
<driver name='qemu' type='raw'...
2017 Jun 22
4
recovering from deleted snapshot
...rn code from blockcommit command!)
So now I'm in a state. The domain i still running. but it's running off
the -snapshot that is in the xml. I googled around for how to recover a
blockcommit from a deleted snapshot, but didn't find anything. (pointers
welcome)
[root@vm1 images]# virsh domblklist serv1r2
Target Source
------------------------------------------------
vda /var/lib/libvirt/images/serv1r2-snap.qcow2
fda -
hdb /var/lib/libvirt/images/virtio-win-0.1.126.iso
I can see the size increasing on the deleted file in lsof:
qemu-kvm 48994 49033 qemu 97u...
2016 Sep 03
2
Re: internal snapshot question
...> > I see that snapshot when asking for:
> >
> > $ qemu-img info [my_image].qcow
>
> Firstly, you are doing this behind libvirt's back, so libvirt will most
> likely not know about that snapshot.
>
> > but do NOT see it with:
> >
> > $ virsh domblklist [my_domain]
>
> Well, what would you expect to see there? Have a look at the man page,
> virsh(1) says:
>
> domblklist domain [--inactive] [--details]
> Print a table showing the brief information of all block devices associated with
> domain. If --inactive is specified, qu...
2014 Oct 13
2
Re: KVM incremental backup using CBT
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 stops working at the moment, right?
>>
>> virsh # blockcommit puppet-test vda --active --verbose --pivot
>> error: unsupported flags (0x4) in function
2015 Apr 29
0
Sometimes libvirt fails to update domain block file after blockcommit.
...g is in place and doesn't happen every
time.
Here are the details:
I wrote this test script to snapshot and commit over and over:
#!/bin/sh
while [ 1 ]; do
echo "Starting snapshot test `date`"
virsh snapshot-create-as test 20150429 20150429-backup --disk-only
--atomic
virsh domblklist test
virsh blockcommit test vda --active --pivot --verbose
virsh snapshot-delete test 20150429 --metadata
virsh domblklist test
rm /glustervol1/vm/test/test.20150429
echo "Ending snapshot test `date`"
echo
echo
sleep 2
done
If I run libvirtd in the foreground with debug...
2014 Oct 11
5
Re: KVM incremental backup using CBT
...es pushed into the backing files), and even though it is not as
> full-featured as where we'd like to get, it can already do quite a bit.
To expand an example of what Eric wrote here about external snapshots,
some commands to try:
1. Check the current acitve disk image in use:
$ virsh domblklist vm1
2. Create an external live snapshot:
$ virsh snapshot-create-as --domain vm1 sn1 \
--diskspec vda,file=/export/images/sn1.qcow2 \
--disk-only --atomic --no-metadata
Note (thanks Eric Blake): Above, if you have QEMU guest agent
installed in your virtual machine, t...
2016 May 03
2
Ubuntu 14.04 virsh 1.2.2 blockcommit hangs at 100% / command 'blockcommit' doesn't support option --pivot
Hello All,
I think I have seen this in previous bugs. Trying to live backup qcow2
images. I am able to virsh snapshot-create-as and virsh domblklist shows
correct new source, but I am unable to commit back changes to qcow base. I
get the above error.
Libvirt at 1.2.2-0ubuntu13.1.17
Qemu is (2.0.0+dfsg-2ubuntu1.22)
I tried compiling latest libvirt, but cannot get it to connect to socket on
installed binaries
Anyone get this working on Ubuntu...
2015 Dec 07
3
Efficient live disk backup with active blockcommit : Failed 'block-commit': Could not reopen file: Permission denied
...rice
Bellard
2.Created nested VM (vm-01) using VirtManager on base VM.
3.Used following commands to take the multiple snapshots -
virsh # list
Id Name State
----------------------------------------------------
7 vm-01 running
virsh # domblklist vm-01
Target Source
------------------------------------------------
vda /home/ubuntu/vm-01.img
hda /dev/sr0
snapshot-create-as --domain vm-01 snap1 --diskspec
vda,file=/var/lib/libvirt/sn1.qcow2 --disk-only --atomic
snapshot-create-as --domain vm-01 snap2 --diskspec
vda,file=/va...
2015 Mar 15
3
how to get disk snapshot size
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
[root@cskvm01 qcow2]# qemu-img info
/mnt/e6758700-af68-3c06-ade3-53f5f9b93507/e2cf6551-0d2c-4382-a86c-8ba633954ff2
image:
/mnt/e6758700-af68-3c06-ade3-53f5f9b93507/e2cf6551-0d2c-4382-a86c-8ba633954ff2
file format: qcow2
virtual
2015 Oct 14
2
failed to pivot job for disk vdc
...ctive --verbose --pivot
But when doing
virsh blockcommit meta vdc --active --verbose --pivot
I got:
Block commit: [100 %]error: failed to pivot job for disk vdc
error: block copy still active: disk 'vdc' not ready for pivot yet
Domain snapshot sn1 created
And now it looks like this:
virsh domblklist meta
Target Source
------------------------------------------------
vda /var/lib/libvirt/images/meta.qcow2
vdb /var/lib/libvirt/images/meta-home.qcow2
vdc /var/lib/libvirt/images/meta-pgsql.sn1
How do I make vdc to be the initial disk, not the snapshot one?
Regards,
Nerij...
2016 Sep 03
0
Re: internal snapshot question
...qemu-img snapshot -c sn1 [my_image].qcow2
>
>I see that snapshot when asking for:
>
> $ qemu-img info [my_image].qcow
>
Firstly, you are doing this behind libvirt's back, so libvirt will most
likely not know about that snapshot.
>but do NOT see it with:
>
> $ virsh domblklist [my_domain]
>
Well, what would you expect to see there? Have a look at the man page,
virsh(1) says:
domblklist domain [--inactive] [--details]
Print a table showing the brief information of all block devices associated with
domain. If --inactive is specified, query the block devices t...
2016 Sep 03
0
Re: internal snapshot question
...or:
> > >
> > > $ qemu-img info [my_image].qcow
> >
> > Firstly, you are doing this behind libvirt's back, so libvirt will most
> > likely not know about that snapshot.
> >
> > > but do NOT see it with:
> > >
> > > $ virsh domblklist [my_domain]
> >
> > Well, what would you expect to see there? Have a look at the man page,
> > virsh(1) says:
> >
> > domblklist domain [--inactive] [--details]
> > Print a table showing the brief information of all block devices associated with
> > dom...
2017 Jun 30
0
Re: recovering from deleted snapshot
...gt; $ virsh list
> Id Name State
> ----------------------------------------------------
> 3 fedora23 running
>
> $ virsh snapshot-create-as --disk-only --no-metadata fedora23
> Domain snapshot 1498817916 created
> $ virsh domblklist fedora23
> Target Source
> ------------------------------------------------
> vda /var/lib/libvirt/images/fedora23.1498817916
> hda -
>
> $ rm /var/lib/libvirt/images/fedora23.1498817916
> $ ls /var/lib/libvirt/images/fedora23.1498817916
> ls: cannot access...
2019 Jul 29
2
virsh command to list CPU,Memory and Storage
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 dockerregistry01 running
12 gitlab running
Any help will be highly appreciated. Thanks in Advance.
Best Regards,
Kaushal
2014 Oct 13
0
Re: KVM incremental backup using CBT
...), and even though it is not as
>> full-featured as where we'd like to get, it can already do quite a bit.
> To expand an example of what Eric wrote here about external snapshots,
> some commands to try:
>
> 1. Check the current acitve disk image in use:
>
> $ virsh domblklist vm1
>
>
> 2. Create an external live snapshot:
>
> $ virsh snapshot-create-as --domain vm1 sn1 \
> --diskspec vda,file=/export/images/sn1.qcow2 \
> --disk-only --atomic --no-metadata
>
> Note (thanks Eric Blake): Above, if you have QEMU guest a...
2014 Oct 13
0
Re: KVM incremental backup using CBT
...active commit.
>
> Ah cool. Good to know. 1.2.6 running at the moment.
Nice. It works. Just upgraded to 1.2.9.
virsh # snapshot-create-as --domain one sn1 --diskspec
vda,file=/var/lib/libvirt/images/export/sn1.qcow2 --disk-only --atomic --no-
metadata
Domain snapshot sn1 created
virsh # domblklist one
Target Source
------------------------------------------------
vda /var/lib/libvirt/images/export/sn1.qcow2
virsh # blockcommit one vda --active --verbose --pivot
Block Commit: [100 %]
Successfully pivoted
virsh # domblklist one
Target Source
------------------------------------...