Hello,<div>I have to use attach-disk function for providing additional storage to the guest domain</div><div>but i couldn't found proper documentation anywhere which i can follow.</div><div>----</div><div>For linux (Ubuntu 11.10 server edition, 64bit) guest i tried</div>

<div>qemu-img create -f qcow2 disk.qcow2 size</div><div>virsh attach-disk guest_name --driver file disk.qcow2 sdc</div><div><br></div><div>Both of the above commands are working fine but when i try to format the drive from</div>

<div>inside linux then its size reduces to few KB. Before formatting qemu-img info reports</div><div>correct info(as expected, correct virtual size) but after formatting the even qemu-img</div><div>info reports its actual size(few KB) not virtual size.</div>

<div>-----</div><div>For windows (Windows 2008 Server R2) guest, i tried</div><div>qemu-img create -f raw disk.img size</div><div>virsh attach-disk guest_name --driver file disk.img vdb</div><div><br></div><div>virsh shows that the disk is attached successfully, but i cannot find any disk attached</div>

<div>from inside the guest (in storage management). I tried rebooting the guest but same</div><div>problem.</div><div><br></div><div>Is there anything that i am doing wrong or missing.</div><div><br></div><div>--</div><div>

Jatin Kumar</div><div><br></div>