Questions tagged [qcow2]

76 questions
3
votes
1 answer

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 two ways, by letting the user modify the site.yml…
TJ Zimmerman
  • 251
  • 6
  • 18
3
votes
2 answers

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. It is stored inside the qcow2-file, we know. After…
Igor Schaefer
  • 51
  • 1
  • 5
3
votes
0 answers

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 vmdk ${image_name}.vmdk The process I am…
Shayne
  • 31
  • 2
3
votes
5 answers

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 (what an initial fsck can fix) on the clone, can I…
zino
  • 61
  • 1
  • 5
3
votes
0 answers

qcow2 Disk size much bigger than virtual size

What would cause this? ls shows the qcow2 to be 241G, in the VM it only has ~ 160 GB drive, no unpartitioned space. Win 7 VM, Host = EXT4 2.6 Kernel virsh 0.9.10 file format: qcow2 virtual size: 160G (171798692352 bytes) disk size:…
user160910
3
votes
2 answers

How safe is it to access qemu/kvm raw or qcow2 disk image files from host

I've read mixed opinions about how safe it is to modify qemu disk image files. There are two distinct situations I'm interested in. 1) let's take a raw or qcow2 disk image file not used by kvm (i.e. the virtual machine is not running), mount it…
phep
  • 414
  • 5
  • 15
3
votes
1 answer

How to distinguish between virtual disk image formats?

There is huge number of different formats for virtual storage files for desktop and server purposes (vmdk, qcow2, vdi, vdk, etc.). I'm writing a little script for manipulating them and would like the script to be able to distinguish between them. Of…
Jakub Žitný
  • 165
  • 1
  • 4
2
votes
1 answer

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 fragmentation when I run xfs_fb. But the VMs show…
2
votes
3 answers

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 located at /kvm/vhdd/ which is on partition…
Piduna
  • 541
  • 4
  • 12
  • 25
2
votes
2 answers

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 converted qcow2 to KVM server) I'm getting…
Bar
  • 31
  • 1
  • 5
2
votes
3 answers

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 -f raw -O qcow2 /dev/stdin aaa.qcow2 qemu-img:…
basin
  • 558
  • 1
  • 5
  • 22
2
votes
1 answer

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
  • 327
  • 6
  • 14
2
votes
1 answer

OpenStack EC2 Ubuntu cloud image -- SSH host keys were changed after emegency reboot

Recently one of our servers was hanged due to IPMI BMC failure. It is CentOS 6.3 OpenStack compute host serving KVM vitual machines with qcow2 backend. There was running a VM based on EC2 Ubintu could image…
2
votes
1 answer

Ubuntu Server mdadm drbd ocfs2 kvm hangs under heavy file reading

I have deployed four ubuntu 10.04 server. They are coupled two by two in a cluster scenario. on both sides we have software raid1 disks, drbd8 and OCFS2 and on top of it some kvm machines run with qcow2 disks. I followed this: Link corosync is just…
2
votes
1 answer

kvm snapshot (libvirt)

Iam managing kvm by libvirt and using qcow2 file format. I can create snapshots of running wm with snapshot-create command, but if I transfer my qcow2 image to another host and define transfered host by virsh define, I cant see snapshots created…