Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2011
  • Last Modified:

Slow performance of EXT4 drive using Libvirt/KVM/QEmu

Hi experts,

How long should it take to format a 650GB drive to ext4? I am starting up my virtual machine using virsh and then formatting the additional drive which takes 7-8 hours. I am worried that performance will be an issue.

The disk part of my libvirt definition looks like this

    <disk type='file' device='disk'>
      <source file='/vm/ubuntu-kvm/root.qcow2'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='file' device='disk'>
      <source file='/vm/ubuntu-kvm/data.qcow2'/>
      <target dev='hdb' bus='ide'/>
    </disk>

From what I've read I can try disable the cache somehow, but I'm not entire surely how, since the examples given were invoking kvm directly rather than through virsh. Any ideas?
0
mstrelan
Asked:
mstrelan
1 Solution
 
mstrelanAuthor Commented:
Oh I've got it! Now it only takes 3-4 minutes instead of 7-8 hours!

   
     
     
     
   
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now