By default, the virtual machine created by the KVM environment Virt-manager, the disk format is raw, if you want to modify the default format, see
This corresponding configuration file is
# More/root/.gconf/apps/virt-manager/new-vm/%gconf.xml <?xml version= "1.0"?> <gconf> <entry name= "Storage-format" mtime= "1414739356" type= "string" > <stringvalue>qcow2</stringvalue> </entry> </gconf> |
Note:1, NEW-VM directory and the following%gconf.xml need to run Virt-manager to generate 2, if manually modify the%gconf.xml file, you need to restart the system Virt-manager graphical interface will change 3, If the Virt-manager graphic is modified, then the Virt-manager is turned on again,%gconf.xml will change
# qemu-img Info/var/lib/libvirt/images/test.img Image:/var/lib/libvirt/images/test.img File Format:qcow2 Virtual size:8.0g (8589934592 bytes) Disk size:136k cluster_size:65536 |
Modify Virt-manager Default disk format