Questions tagged [qcow2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
66 views

Can qcow2 overlay get committed back into raw backing file?

I am trying to design a system utilizing the btrfs filesystem and libvirt. btrfs has copy-on-write (COW) already, it's very easy to do snapshots and it's very efficient to transfer the snapshot to a ...
Wang's user avatar
  • 322
0 votes
0 answers
348 views

After converting Windows guest OS .vmdk file to .qcow2 and hosting to KVM gives "No Bootable Device"

We are migrating guest VM from VMware 7 to KVM (installed on Ubuntu 22.04 LTS). We have achieved success in migrating all Ubuntu guest VM from VMware to KVM by converting the vmdk disk to qcow2. ...
AM2023's user avatar
  • 1
0 votes
1 answer
574 views

KVM - Reduce Storage Size of QCOW2 File To Specific Size

I want to reduce the storage size of the VM's running on a Linux 8 physical machine from 2 TB to 400 GB. The actual size of VM's is around 100 GB. But the space we give it as allocated size is too big ...
rndm_acct1's user avatar
0 votes
1 answer
486 views

How is this even possible?

This must be a glitch in the Matrix. Right? Let me explain. I have some automation that converts a qcow2 image into a raw image before uploading the resulting raw image to an S3 bucket (in AWS). ...
dmas174's user avatar
1 vote
1 answer
747 views

Can't Recover Space from qcow2 image without deleting wanted snapshots

I have a virtual machine that started out with 5 snapshots 1,2,3,4,5. I used qemu-img to delete snapshots 1,2,3. Snapshots 4 and 5 are still needed and were not deleted. How can I release the space ...
user73383's user avatar
0 votes
1 answer
937 views

What capabilities do you lose when turning off COW on a qcow2 file?

I run a small internal cloud utilizing 3 redundant, live migration capable Ubuntu/Qemu/KVM hosts with ~30 mixed OS VMs. The Pool volumes are BTRFS and before any of you give me crap about it: this is ...
Frobozz's user avatar
  • 205
1 vote
0 answers
208 views

Mount qcow2 image on boot using fstab

I'm intending to make individual directories snapshotable in order to be able to experiment and rollback. Since there are many such directories and their contents can vary in size, solutions such as ...
Kalsan's user avatar
  • 131
3 votes
2 answers
1k views

How can I recover the space in a qcow2 file after deleting snapshots, while retaining remaining snapshots?

I have a virtual machine that started out with 5 snapshots 1,2,3,4,5. I used qemu-img to delete snapshots 1,2,3. Snapshots 4 and 5 are still needed and were not deleted. How can I release the space ...
user73383's user avatar
0 votes
2 answers
2k views

Incremental backup qcow2 image with rsync

I use rsync to backup the qcow2 disks of my virtual machines. However, I would like to be able to get an incremental backup so that I don't have to copy the entire disk every time. for now I use rsync ...
Tiziano Pedrazzoli's user avatar
0 votes
1 answer
654 views

OVA to QCOW2 conversion - Openstack instance dracut initqueue timeout and could not boot

I have a custom OVA built with Centos 7 and trying to convert it to qcow2. I have extracted the files from the OVA and converted the vmdk to qcow2 with following command: qemu-img convert -O qcow2 ...
Sandeep's user avatar
  • 121
-1 votes
1 answer
512 views

How to enable zstd for your qcow2 files [closed]

In QEMU 5.1 zstd compression of your qcow2 files was introduced but I can't find a way to activate it?
MrCalvin's user avatar
  • 383
1 vote
1 answer
481 views

Noop convert qcow2 image but keeps internal snapshots

I have a qcow2 image. The image size is 200 GB, but the actual use is only 30 GB. I'm using qemu-img convert -O qcow2 source.qcow2 shrunk.qcow2 to removes sparse space and the images shrinks correctly ...
leanhtai01's user avatar
1 vote
0 answers
242 views

State of OCFS2 as KVM storage for QCOW2 format

Using a shared iSCSI SAN all SSD and good cluster aware filesystems are few and far between with Linux. What is the state of OCFS2 with modern Linux kernels and is it considered reliable enough to ...
pieterk's user avatar
  • 111
0 votes
1 answer
2k views

How do I make a compressed disk image (qcow2 and/or squashfs) from a disk directly?

I have a disk attached to my server and I want to make the disk image of it downloadable on the same server. The disk itself is 500GB but I don't want to have a 500GB disk image for download. I'd like ...
CosmoΓammaByte's user avatar
2 votes
2 answers
1k views

Terraform Libvirt - How to use local qcow2 file in the hypervisor instead of cloud images?

It seems like the libvirt provider only takes pre-defined cloud images. I create my own base qcow2 image that is local to the hypervisor and wish to use it as source file with terraform libvirtd. Is ...
vmx1987's user avatar
  • 21
0 votes
2 answers
834 views

Migrate ESXi vm to qcow2 with settings preserved?

I have attempted to export a vm in ESXi which produced 3 files: vm_name.ovf (12KB) disk-0-2.vmdk (73KB) disk-1.vmdk (1.2GB) I assumed the larger file (disk-1.vmdk) was the flat file and ...
MattE's user avatar
  • 101
0 votes
1 answer
1k views

customize qcow2 ubuntu image fail

I download qcow2 ubuntu 18.04 img from here: https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img I want to add some packages into qcow2 image before use it as a base img ...
Tuyen Pham's user avatar
1 vote
0 answers
240 views

How to check the cache mode of a qcow2 image?

Say I converted an image to writethrough cache mode with this command: qemu-img convert -t writethrough -O qcow2 in-image.qcow2 out-image.qcow2 How can I check/verify the cache mode of the image?
Mike's user avatar
  • 598
0 votes
1 answer
2k views

Is there a way to convert qcow2 images to ovf format?

I have one qcow2 image. But, I need image in ovf format. I know there is already one answer here Any way to convert qcow2 to ovf?, but I don't have vCenter installed with me. So, i am looking for any ...
pzk's user avatar
  • 3
1 vote
1 answer
591 views

qcow2 image: ERROR refcount block 69 is outside image

I have this backup.qcow2 image which was working fine in my kvm/qemu virtual machine before. When I attach it to another virtual machine, Windows recognizes the disk but fails to read partitions. The ...
JanPl's user avatar
  • 111
1 vote
1 answer
2k views

Convert QCOW2 to VMDK (Citrix Xen)

Hy everyone, the search function does not come up with a propper solution. I want to convert a old KVM disk QCOW2 to an compatible Ctrix Xen disk e.g. VMDK with that qemu-img converting tool qemu-...
rcpe's user avatar
  • 11
0 votes
2 answers
243 views

Which file has chaged from one VM-overlay to the next?

I've a base image of a windows10 machine. [win10_base image].qcow2 -- [overlay_with_bug].qcow2 I have a bug of a app which I can reproduce. This bug does alter something on the system. I want to ...
Cutton Eye's user avatar
0 votes
0 answers
144 views

Trim qcow2 disk

vps disk size does not updates on server when you delete files within vps. For example one vps had 1TB usage, I deleted 800GB in that vps but vps disk size is still 1TB on server.
Jevin Gala's user avatar
3 votes
1 answer
4k views

Ansible fails at "Gathering hosts" presumably because SSH is slow to connect. Setting `UseDNS no` resolves the issue

I am having what appears to be a DNS related issue that I would appreciate some assistance resolving. I'm using Ansible to provision a Kubernetes cluster on my Proxmox server. The project works in ...
TJ Zimmerman's user avatar
2 votes
1 answer
283 views

xfs_db reports high file fragmentation where VM is located, but VM shows almost no fragmentation

I have several libvirt VMs stored on xfs partitions and am using gluster to replicate the storage. The VMs use qcow2 for storage. Some of the partitions where the VMs are located indicate high file ...
user3889271's user avatar
0 votes
0 answers
50 views

QEMU clarifications and setup optimizations

We are using qemu with kvm acceleration. I wanted to understand the -drive flag, currently we are using it as follows: -drive file=<qcow2 snapshot file> if=virtio I have the following ...
tsar2512's user avatar
  • 121
1 vote
1 answer
81 views

KVM file size issue on RHEL 6.9

I tried to allocate 60GB of additional storage to my Win7 KVM by adding a new disk under 'Hardware Settings' using Add Hardware. But the new disk didn't show up in Win7 so i deleted the Disk using ...
John W's user avatar
  • 11
2 votes
3 answers
19k views

How to move KVM image to another directory/partition?

My storage devices are mounted as follows: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/md2 193G 35G 148G 19% / /dev/md4 492G 73M 466G 1% /mnt My KVM image is ...
Piduna's user avatar
  • 571
1 vote
1 answer
632 views

How do Centos cloud images map to iso images

Is it possible to figure out which cloud image maps to which iso release for Centos. I would like a Centos 7.3 minimal image, but when I browse the Centos cloud image site I cannot see any references ...
AndyM's user avatar
  • 968
3 votes
2 answers
10k views

KVM snapshotting. How to see what's inside the qcow2 file?

I use qcow2 file format and create snapshots using a Virt-manager GUI. I assume I have 100GB disk space and 70% is used by VM at this moment. The qcow2-file size is about 70GB. I create a snapshot. ...
Igor Schaefer's user avatar
1 vote
2 answers
10k views

KVM guest qcow2 larger than disk size

I have a Windows 10 VM running on a server that I need to move to another server. The trouble is that the qcow2 file size is too large for the target server. What's odd about this is that the ...
Ollie Sheridan's user avatar
1 vote
1 answer
386 views

Cannot upload file to qcow2 image file using guestfish on rhel 7.3

I am trying to write a temp file into a qcow2 image file using guestfish as follows: [root@localhost home]# guestfish --rw -i -a vm.qcow2 upload temp /home/ and faced the following problem: ...
user3460393's user avatar
0 votes
1 answer
480 views

Is it safe to use overlay as new VM from QCOW2 image for multiple users?

As title states, is it safe to give overlay of same image to multiple different users? From security standpoint, do they have access to other users data? Can any user corrupt/change base image or ...
Trailo's user avatar
  • 3
2 votes
2 answers
3k views

qemu-img convert CentOS7 vmdk to qcow2 and vice versa error

I'm trying to convert CentOS7 from VMDK to QCOW2 and vice versa using qemu-img convert command. when uploading the new Templates (OVF with the new converted vmdk and KVM template with the new ...
Bar's user avatar
  • 31
9 votes
2 answers
22k views

How to repair a broken-resized qcow2 disk image for libvirt/kvm?

Today I wanted to increase the size of a VM, so I did what I always do (have done it before): qemu-img resize diskimage.qcow2 +22GB Then the file broke and the VM does not start any more. I tried ...
Ned64's user avatar
  • 323
7 votes
2 answers
14k views

How to create a qcow2 file that is not thin provisioned?

When I do the below then the qcow2 file is less than 200KB. # qemu-img create -f qcow2 /var/lib/libvirt/images/urb-dat0.qcow2 10G # du -hsc /var/lib/libvirt/images/urb-dat0.qcow2 196K /var/lib/...
Jasmine Lognnes's user avatar
1 vote
1 answer
680 views

Is it safe to use fallocate --dig-holes while being modified

Is it safe to use fallocate --dig-holes on a file while it is being modified/written? For example on a QCOW2 image opened by a KVM guest?
Isabell Cowan's user avatar
3 votes
0 answers
827 views

Creating OVF headless with generated vmdk

I am looking to create an OVF file during a nightly build process. I currently have this process creating a qcow2 image, which I convert to vmdk using qemu. qemu-img convert -f qcow2 ${image_name} -O ...
Shayne's user avatar
  • 31
5 votes
5 answers
17k views

QCOW2 virtual size lowering

I'm trying to get the virtual size of a qcow2 container down so that it can fit in a openstack flavor with 10GB disk. root@node-10:~# qemu-img info zztop.qcow image: zztop.qcow file format: qcow2 ...
Duncan Fairley's user avatar
1 vote
2 answers
3k views

Accessing linux guest OS filesystem in qcow2 image

I'm attaching VM qcow2 image to get access to files which inside: modprobe nbd max_part=63 qemu-nbd -n -c /dev/nbd0 /var/lib/libvirt/images/vm-image.qcow2 scanning for volume groups vgscan: ...
rook's user avatar
  • 137
2 votes
3 answers
3k views

qemu-img: Could not open '/dev/stdin': Could not refresh total sector count: Operation not permitted

I want to transfer block device contents over the network directly into a qcow2 image. I started with a small simulation: [root@okvmh1 default]# dd if=/dev/zero bs=1M count=100 | qemu-img convert -p -...
basin's user avatar
  • 558
0 votes
0 answers
2k views

How slow can be a QCOW2 vm disk (proxmox/KVM) over NFS (dedicated 1Gbit)?

I'm running 3 proxmox 3.4 nodes using NFS shared storage with a dedicated 1GB network switch. root@lnxvt10:~# pveversion pve-manager/3.4-11/6502936f (running kernel: 2.6.32-43-pve) root@lnxvt10:~# ...
sgargel's user avatar
  • 202
1 vote
1 answer
5k views

(centOS) cloud-init not pulling ssh

Trying to build CentOS 6 qcow2 image with OpenStack guide[http://docs.openstack.org/image-guide/content/centos-image.html]. I'm using "cloud-init" instead of the "/etc/rc.d/rc.local" script but I ...
user avatar
16 votes
1 answer
72k views

How do you create a qcow2 file that is small yet commodious on a Linux server?

I believe that there are qcow2 files that displace a small amount of gigabytes on a server (as verified with a df -h on the physical server) yet allow for lots of space when you log into the virt-...
Catbird55's user avatar
  • 183
0 votes
1 answer
1k views

Edit /etc/resolvconf/resolv.conf.d/base in Centos 7 -- qcow2 image

My qcow2 image uses local nameserver, 192.168.122.1 which is not working for reasons unknown. So, I tried to use guestfish and edit the file /etc/resolv.conf to add nameservers, 8.8.8.8. This doesnt ...
Saravana Kumar's user avatar
1 vote
0 answers
279 views

Boot a qcow2 image in Ganeti

I am very confused on how Ganeti actually boots machines. My problem is quite simple. I have a qcow2 image in a machine and I want to boot it. How can I do it? I don't really understand the idea of ...
Anastasios Andronidis's user avatar
35 votes
2 answers
124k views

Which is better image format, raw or qcow2, to use as a baseimage for other VMs?

I am using a baseimage and based on that creating many VMs. And now I want to know which is better, qcow2 or raw to use for a baseimage. Moreover, can you please tell me if there is any advantage of ...
A-B's user avatar
  • 603
2 votes
1 answer
1k views

How to backup running KVM guest qcow2 disk without LVM?

How to backup running KVM guests, when using qcow2 disks and host system does not use a LVM? Is it even possible without guest shutdown?
Xdg's user avatar
  • 347
3 votes
5 answers
10k views

KVM virt-clone while the VM is running

Is it possible to clone a running kvm machine without tools like virt-clone? They already have the original vm in production, I cannot shut it down. If I don't care about temporary data corruption (...
zino's user avatar
  • 61
0 votes
2 answers
3k views

How do I make KVM images with LVM partitioning be thinly provisioned with a max growth size?

BACKGROUND: Up to now, I have been provisioning VMs as follows: Create template/gold VM: Create new CentOS 6.6 VM with raw 200GB disk (1 .xml file, 1 .img file) LVM partitioning with: /boot, swap, ...
Steve Amerige's user avatar