LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 09-08-2011, 01:52 AM   #1
rajivdp
Member
 
Registered: Oct 2008
Posts: 34

Rep: Reputation: 17
kvm-qemu-img: qcow2 disk image format changes to raw format in RHEL-KVM 5.6


Hi

I am using RHEL-KVM 5.6 host as VMM and having linux and windows as guest OS. I tried to use the qcow2 disk image as virtual hard disk image instead of raw.

Following are the version of RHEL and rpms used.

Red Hat Enterprise Linux Server release 5.6 (Tikanga)
kvm-qemu-img-83-224.el5
libvirt-0.8.2-15.el5
libvirt-0.8.2-15.el5
libvirt-cim-0.5.8-3.el5
libvirt-python-0.8.2-15.el5
kvm-83-224.el5
kmod-kvm-83-224.el5


The qcow2 disk image format is changing to raw disk image format when formatting the qcow2 disk image in Linux or windows guest and also the virtual disk thin provisioning is also not happening as guest OS says that no space left on the device.

[root@RHEL-KVM-178-124 vol_libvirt_nfs_provision]# qemu-img info test_qcow2.img
image: test_qcow2.img
file format: qcow2
virtual size: 10G (10737418240 bytes)

disk size: 140K
cluster_size: 65536
[root@RHEL-KVM-178-124 vol_libvirt_nfs_provision]#

test_qcow2.img is a qcow2 disk image of virtual size is 10 GB. But guest OS view the hard disk size as 0 MB and fails in creating partitions as there is no space left on the device.

The qcow2 disk is not thin provisioning but the raw disk does.

Will the qcow2 format will be used only for snapshot ( backing the actual hard disk image ) or it can be used as an actual hard disk for guest OS ?

Thanks in advance!

Best Regards
Rajiv
 
Old 09-08-2011, 03:18 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,325

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
It can't be changing to raw. It would require conversion with qemu-img.
I haven't ever noticed that qemu would care if it is raw or other format for the most part.
I might (I forget the name) create the qcow image filled instead of expanding. That is one of the advantages to that format. A small file would grow as you install stuff.
 
Old 09-19-2011, 11:23 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 833

Rep: Reputation: 91
show the qemu-kvm cmd line and the xml definition file
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Xen RAW image to KVM qcow2 makes Win2k8 guest BSOD Savaan Linux - Virtualization and Cloud 9 12-31-2011 11:59 AM
How to resize the qcow2 image in the KVM? rajivdp Linux - Virtualization and Cloud 1 03-23-2011 05:36 PM
How to resize the qcow2 image in the KVM? rajivdp Linux - Virtualization and Cloud 2 03-23-2011 12:26 PM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerds Hoffmann spice/qxl: locking fix for qemu-kvm on LXer Syndicated Linux News 0 03-14-2011 01:20 PM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration