LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   KVM Files in fedora14 (https://www.linuxquestions.org/questions/linux-newbie-8/kvm-files-in-fedora14-864282/)

taousif 02-22-2011 06:39 AM

KVM Files in fedora14
 
Hi,

I want to delete the KVM created hard disk image file, may I know where it is located .
Thank you

ibaydan 02-22-2011 04:44 PM

The default directory is /var/lib/libvirt/images but if you cant see it there try
virsh edit "domainname"
example: virsh edit centos1
and then look for similar line of this
<source file='/var/lib/libvirt/images/centos.img'/>

taousif 02-22-2011 11:14 PM

Thank you ibaydan,

One more question I have about the same, can we change default directory of kvm image files, if yes how .
Thank you.

ibaydan 02-22-2011 11:30 PM

virsh pool-dumpxml default > pool.xml
*edit pool.xml with new name and path an than create new pool from edited xml
virsh pool-create pool.xml
*but after creating new from from you may need to restart libvirt-bin service
virsh pool-refresh name

*if you want to use new pool while creating new vms you can use like this

virt-install --connect qemu:///system \
-n bt4 \
-r 1024 \
--vcpus=6 \
--disk pool=vms,size=10 \
-c /mnt/bt4-r2.iso \
--vnc --noautoconsole \
--os-type linux \
--accelerate --network=bridge:br0 --hvm

*if you have more question about virtualization don't hesitate to ask .

taousif 02-23-2011 05:15 AM

How we can do the same with GUI, because I'm using Virtual Machine Manager in fedora 14.

ibaydan 02-23-2011 11:41 PM

Here is them virt-manager documentation.You can add new pool with type of direcctory.And deactive default storage pool.
http://virt-manager.et.redhat.com/pa...rageManagement


All times are GMT -5. The time now is 08:06 PM.