search for: qcow2

Displaying 20 results from an estimated 1998 matches for "qcow2".

2019 Apr 23
1
Autodetecting backing file properties when using vol-create-as
...t? Should I open a bugzilla issue? Below you can find a practical example of what I mean. System is CentOS Linux release 7.6.1810 (Core) with libvirt-4.5.0-10.el7_6.4.x86_64 Please let me know if I am missing something. Thanks. # create base file [root@singularity images]# qemu-img create base.qcow2 8G -f qcow2 Formatting 'base.qcow2', fmt=qcow2 size=8589934592 cluster_size=65536 lazy_refcounts=off refcount_bits=16 [root@singularity images]# qemu-img info base.qcow2 image: base.qcow2 file format: qcow2 virtual size: 8.0G (8589934592 bytes) disk size: 17K cluster_size: 65536 Format spe...
2018 Jan 30
4
Create qcow2 v3 volumes via libvirt
Hi all, on a fully patched CentOS 7.4 x86-64, I see the following behavior: - when creating a new volumes using vol-create-as, the resulting file is a qcow2 version 2 (compat=0.10) file. Example: [root@gdanti-lenovo vmimages]# virsh vol-create-as default zzz.qcow2 8589934592 --format=qcow2 --backing-vol /mnt/vmimages/centos6.img Vol zzz.qcow2 created [root@gdanti-lenovo vmimages]# file zzz.qcow2 zzz.qcow2: QEMU QCOW Image (v2), has backing file (path...
2016 Jun 22
3
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
On Wed, Jun 22, 2016 at 12:40:40AM -0500, libvirt_users@skagitattic.com wrote: > So you are saying when I do the virt-sparsify its converting the image > from raw to [qcow2]? No. virt-sparsify will use the same input and output formats, unless you use the --convert option. > I studied the man page for virt-sparsify and tried again with > the flag "--format raw" (output2.cow2). This output files looks as I > first expected. > > # ls -lrh &...
2016 Jun 15
2
virt-sparsify changing the apparent-size of files
...ection on "IMPORTANT NOTE ABOUT SPARSE OUTPUT IMAGES" and its output seems to indicate what I would expect where "ls -lh" shows the full apparent size and "du -sh" shows the actual size. But my actual results from testing are different. In the following example input.qcow2 is before sparsify and output.qcow2 is after. Doing ls reports full size for input but a small size for the output: root@testingbox:/tmp/test # ls -lh total 3.1G -rw-r--r-- 1 root root 512M Jun 14 22:30 file.img -rw-r--r-- 1 root root 51G Jun 14 22:30 input.qcow2 -rw-r--r-- 1 root root 790M Jun 1...
2016 Jun 15
2
virt-sparsify changing the apparent-size of files
...ection on "IMPORTANT NOTE ABOUT SPARSE OUTPUT IMAGES" and its output seems to indicate what I would expect where "ls -lh" shows the full apparent size and "du -sh" shows the actual size. But my actual results from testing are different. In the following example input.qcow2 is before sparsify and output.qcow2 is after. Doing ls reports full size for input but a small size for the output: root@testingbox:/tmp/test # ls -lh total 3.1G -rw-r--r-- 1 root root 512M Jun 14 22:30 file.img -rw-r--r-- 1 root root 51G Jun 14 22:30 input.qcow2 -rw-r--r-- 1 root root 790M Jun 1...
2015 Jun 02
2
preallocation=full Vs preallocation=metadata
Hi All I was reading through this: http://kashyapc.com/2011/12/02/little-more-disk-io-perf-improvement-with-fallocateing-a-qcow2-disk/ I was basically searching for pointers on improving disk I/O. I wanted to know the purpose of preallocation=full & preallocation=metadata , What is the difference between them ? and which one would yield a better disk I/O speed ? Appreciate your responses in this regard. Thanks Jati...
2019 Dec 16
2
Change in treatment of qcow2 with chained backing files in v5.10.0?
..., libvirt started calling qemu differently causing the VM operating system to not be found. I'm wondering whether I'm chasing a bug, or have to otherwise fix my domain config (created by virt-manager). To start with, I have a Windows 7 domain based on the following images: windows7-base.qcow2: QEMU QCOW2 Image (v3), 53687091200 bytes windows7-Office2013.qcow2: QEMU QCOW2 Image (v3), has backing file (path windows7-taintable.qcow2), 80530636800 bytes windows7-taintable.qcow2: QEMU QCOW2 Image (v3), has backing file (path windows7-base.qcow2), 53687091200 bytes The VM must be...
2015 Oct 14
3
Questions about qcow2 file size management
Hi all. I have a few questions regarding the qcow2 format. 1/ Allocated size vs. file size When creating a VM, I indicated a size of 10 G. $ls -lsh 7,7G -rw------- 1 libvirt-qemu libvirt-qemu 11G oct. 14 10:04 prod.qcow2 The allocated size is lesser than max size. Alright. I think I more or less grab the difference between allocated size an...
2020 Apr 15
2
Can't start vm with enc backing files, No secret with id 'sec0' ?
...opers 1. assign $MYSECRET to libvirt secret using the secret-define and secret-set-value commands,and $MYSECRET is in base64 format MYSECRET=`printf %s "123456" | base64` 2. created a disk encrypted in luks format qemu-img create --object secret,id=sec0,data=$MYSECRET,format=base64 -f qcow2 -o encrypt.format=luks,encrypt.key-secret=sec0 enc.qcow220G 3. The encrypted disk is defined in the XML configuration file, as shown below.Then I successfully started the virtual machine. <disk type='file' device='disk'> <driver name='qemu' type='qcow2&...
2016 Jun 23
2
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
...t; > > Starting install... > Retrieving file > MANIFEST... > | 3.3 kB 00:00 ... Retrieving file > linux... > | 6.0 MB 00:03 ... Retrieving file > initrd.gz... > | 29 MB 00:09 ... Allocating > 'testimage.qcow2' > | 50 GB 00:00 Creating > domain... > | 0 B 00:00 Connected to domain testimage Escape character is > [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] > Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup > sub...
2016 Jun 22
0
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
...sk size=50 --nographics -x "console=ttyS0" Starting install... Retrieving file MANIFEST... | 3.3 kB 00:00 ... Retrieving file linux... | 6.0 MB 00:03 ... Retrieving file initrd.gz... | 29 MB 00:09 ... Allocating 'testimage.qcow2' | 50 GB 00:00 Creating domain... | 0 B 00:00 Connected to domain testimage Escape character is [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Lin...
2013 Apr 17
2
libvirt support for qcow2 rebase?
I have not found support in libvirt (nor virsh) for doing the equivalent of "qemu-img rebase ....". The use case: You have copied a qcow2 stack and the new files have different names or reside in a different directory. Therefore you need to change the backing file. Is there a way to do this? Is this a planned addition to libvirt? Harald -------------- next part -------------- An HTML attachment was scrubbed... URL: <h...
2018 Nov 21
2
Re: nbdkit: Could not read L1 table when reading exported qcow2
...kit/blob/master/filters/truncate/nbdkit-truncate-filter.pod) telling it to round up the size to the next multiple of 512 bytes: $ nbdkit --filter=truncate file file=disk -f -v round-up=512 and this allows qemu-img to work: $ qemu-img info nbd://localhost image: nbd://localhost:10809 file format: qcow2 virtual size: 1.0G (1073741824 bytes) disk size: unavailable cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false However the fundamental problem remains that you're exporting qcow2 bytes over the NBD connection whi...
2019 Dec 17
0
Re: Change in treatment of qcow2 with chained backing files in v5.10.0?
...ise fix my domain > config (created by virt-manager). Yes, this change was done by me when enabling the new way to configure block devices in qemu. I think I know what's going on: > > To start with, I have a Windows 7 domain based on the following images: > > windows7-base.qcow2: QEMU QCOW2 Image (v3), 53687091200 bytes > windows7-Office2013.qcow2: QEMU QCOW2 Image (v3), has backing file (path windows7-taintable.qcow2), 80530636800 bytes > windows7-taintable.qcow2: QEMU QCOW2 Image (v3), has backing file (path windows7-base.qcow2), 53687091200 bytes So th...
2018 Apr 30
0
Re: Create qcow2 v3 volumes via libvirt
Il 30-01-2018 13:17 Gionatan Danti ha scritto: > Hi all, > on a fully patched CentOS 7.4 x86-64, I see the following behavior: > > - when creating a new volumes using vol-create-as, the resulting file > is a qcow2 version 2 (compat=0.10) file. Example: > > [root@gdanti-lenovo vmimages]# virsh vol-create-as default zzz.qcow2 > 8589934592 --format=qcow2 --backing-vol /mnt/vmimages/centos6.img > Vol zzz.qcow2 created > [root@gdanti-lenovo vmimages]# file zzz.qcow2 > zzz.qcow2: QEMU QCOW Image...
2019 Jun 19
2
libvirtd does not update VM .xml configuration on filesystem after virsh blockcommit
...-domain somedomain.com.ncloud .... there is a change of configuration, active, inactive and filesystem: - active (virsh dumpxml) [root@server1 ~]# /usr/bin/virsh --quiet dumpxml somedomain.com.ncloud|grep BACK <source file='/Virtualization/linux/somedomain.com/somedomain.com.ncloud.qcow2-BACKUPING_NOW'/> <source file='/Virtualization/linux/somedomain.com/somedomain.com.ncloud-swap.qcow2-BACKUPING_NOW'/> <source file='/Virtualization/linux/somedomain.com/somedomain.com.ncloud-data1.qcow2-BACKUPING_NOW'/> <source file='/Virt...
2013 Feb 04
3
QCOW2 goes corrupted when using GPLPV drivers
QCOW2 disk image gets corrupted when you try to install Service Pack 1 AFTER installing GPLPV drivers. This means, without the pv drivers, everything works fine. I tested both RAW and QCOW2 without GPLPV drivers and the installation has completed without any error, and the image (at least qcow2) has no...
2016 Jun 22
0
Re: [libvirt-users] virt-sparsify changing the apparent-size of files
...iles "truncate -s 512M file.img". > 'du --apparent-size' and 'ls -l' are the same thing, so it's not > really surprising that you see the same numbers here. Indeed, I expected those to be the same, just figured I would show them both for completeness. > For qcow2 files, the virtual size is not related to the "apparent" > size, as you can easily prove: So you are saying when I do the virt-sparsify its converting the image from raw to cow2? I studied the man page for virt-sparsify and tried again with the flag "--format raw" (output2....
2015 Jan 08
2
Re: Using virsh blockcopy -- what's it supposed to accomplish?
On 01/08/2015 12:44 PM, Gary R Hook wrote: > I've learned how to use the blockcopy command to create a local copy in > a simple disk file: > > virsh dumpxml my_domain > my_domain.xml > virsh undefine my_domain > virsh blockcopy --domain my_domain vda $PWD/dsk.copy.qcow2 --wait > --verbose --finish > virsh define my_domain.xml > > and the resulting copy in dsk.copy.qcow2 is, indeed, bootable. It > appears to be a perfect copy, as I expect it to be. > > But while I see (per Kashyap's article, etc) that it can be useful in > certain sce...
2018 Nov 21
0
Re: nbdkit: Could not read L1 table when reading exported qcow2
...he size to the next multiple of 512 bytes: > > $ nbdkit --filter=truncate file file=disk -f -v round-up=512 > > and this allows qemu-img to work: Yes, this is the right workaround for now. > > $ qemu-img info nbd://localhost > image: nbd://localhost:10809 > file format: qcow2 Invoking qemu-img without '-f $format' means that qemu-img has to probe the image to guess its format. Here, the probe succeeded, but in general this is insecure (if the file was 'raw', but the probe returned anything else, then a malicious guest could have tried to write metada...