LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 12:43 PM   #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, 03:23 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 12,075

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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-02-2012, 12:38 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 848

Rep: Reputation: 91
.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, 06: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, 12:18 PM   #5
jorton
LQ Newbie
 
Registered: Oct 2012
Posts: 3

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


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 12:59 PM
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 12:23 PM
How to resize the qcow2 image in the KVM? rajivdp Linux - Virtualization and Cloud 1 03-23-2011 06:36 PM
How to resize the qcow2 image in the KVM? rajivdp Linux - Virtualization and Cloud 2 03-23-2011 01:26 PM


All times are GMT -5. The time now is 09:36 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration