| 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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-01-2012, 11:43 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2012
Posts: 5
Rep: 
|
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?
|
|
|
|
12-01-2012, 02:23 PM
|
#2
|
|
Guru
Registered: Mar 2008
Posts: 8,526
|
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.
|
|
|
|
12-01-2012, 11:38 PM
|
#3
|
|
Member
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 716
Rep:
|
.qcow2 or .img doesn't matter, it's just the suffix, not the actual file format.
|
|
|
1 members found this post helpful.
|
12-02-2012, 05:10 AM
|
#4
|
|
LQ Newbie
Registered: Dec 2012
Posts: 5
Original Poster
Rep: 
|
thank ;)
Quote:
Originally Posted by dyasny
.qcow2 or .img doesn't matter, it's just the suffix, not the actual file format.
|
Many thanks, now is all clear 
|
|
|
|
12-03-2012, 11:18 AM
|
#5
|
|
LQ Newbie
Registered: Oct 2012
Posts: 2
Rep: 
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:45 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|