Dariush Debian Diary

Diariusz Dariusza

, 18, 2011

Permanent URL Converting KVM disk from qcow2 to lvm volume


# file *dsk
sth.dsk: QEMU QCOW Image (v2), 69793218560 bytes

lvcreate  -L69793218560b -n w732 dt

# time qemu-img convert sth.dsk -O raw /dev/dt/w732

real    23m9.403s
user    0m3.130s
sys     1m11.530s

And replace driver info from qcow2 to raw:
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/dev/dt/w732'/>
      <target dev='vda' bus='virtio'/>

Last modified on

powered by blosxom  Creative Commons License

Copyright ©1995-2004 Dariush Pietrzak. All content on this website, unless otherwise noted, is licensed under a Creative Commons License.
Using desktop theme, version 0.5. Check the Blosxom site for the latest copy.

Calendar

November 2011
Sun Mon Tue Wed Thu Fri Sat
   
     

Archives

Categories

Subscribe

Subscribe to a syndicated feed of this weblog, brought to you by the power of RSS.

XML