LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-01-2012, 11:43 AM   #1
benelux.j
LQ Newbie
 
Registered: Dec 2012
Posts: 5

Rep: Reputation: Disabled
Question Image files on qcow2 format with KVM


Hi all,
my KVM, on Centos 6.3, make all virtual machines with .img disk files format.
I would like that KVM is able to make file on .qcow2 format like standard setting.

Is possible, i need to change qemu.conf or other file?
 
Old 12-01-2012, 02:23 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I usually start off with building a qcow blank disk and then use it. One could use convert tools also to try to change it from one form or the other. In some cases a pre-allocated drive is better. Sometimes the grow process isn't in time with installers or loaders or such.
 
Old 12-01-2012, 11:38 PM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
.qcow2 or .img doesn't matter, it's just the suffix, not the actual file format.
 
1 members found this post helpful.
Old 12-02-2012, 05:10 AM   #4
benelux.j
LQ Newbie
 
Registered: Dec 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Talking thank ;)

Quote:
Originally Posted by dyasny View Post
.qcow2 or .img doesn't matter, it's just the suffix, not the actual file format.
Many thanks, now is all clear
 
Old 12-03-2012, 11:18 AM   #5
jorton
LQ Newbie
 
Registered: Oct 2012
Posts: 10

Rep: Reputation: Disabled
Qemu-img

KVM was built from Qemu. It should still have the qemu-img program available to convert the format... AND add compression if you desire (-c opt)

I use qemu not KVM but this should work for you.

qemu-img convert -c -O qcow2 jinix.img jinix.qcow
 
  


Reply



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
kvm-qemu-img: qcow2 disk image format changes to raw format in RHEL-KVM 5.6 rajivdp Linux - Virtualization and Cloud 2 09-19-2011 11:23 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration