Hi;
Today i noticed that when you create a Centos 7 vm by choosing os type as
CentOS7 then the created vm did not use virtio it uses old hda/ide access
technique this problem makes Centos 7 vm's to boot slowly, i nearly wait 30
seconds after grub loads for CentOS 7. When i change this value to virtio
it boots without any wait.
So how could i change this Centos 7 vm's default disk access type to
virtio? This problem creates real headache on my system :)
Example CentOS libvirt disk part:
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<auth username=xx'>
<secret type='ceph' uuid='xsw'/>
</auth>
<source protocol='rbd'
name='jacknode/4e2cd1be-5c7f-43ff-b44b-bf9f87e84b19'>
<host name='172.16.44.22' port='6789'/>
</source>
* <target dev='hda' bus='ide'/>*
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
Example Ubuntu Trusty libvirt disk part:
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<auth username='xx'>
<secret type='ceph' uuid='xsw'/>
</auth>
<source protocol='rbd' name='xx/cfafb241-b9c7-4d41-acdc-aac937d96a19'>
<host name='172.16.44.22' port='6789'/>
</source>
* <target dev='vda' bus='virtio'/>*
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</disk>
Thanks
Özhan Ruzgar Karaman