virtioを使ったほうが早い
virtioドライバを入れたinitrdを用意しておく
root# cd /boot root# cp -p initrd-$(uname -r).img initrd-$(uname -r)_ide.img root# mkinitrd -v -f --with=virtio_pci --with=virtio_blk initrd-$(uname -r).img $(uname -r)
# virsh edit [VM]
target dev をvda へ、busをvirtioに変更
<disk type='block' device='disk'> <driver name='qemu' type='raw' cache='none' io='native'/> <source dev='/dev/mapper/VolG00-Volmatsui'/> <target dev='hda' bus='ide'/> </disk> ↓ ↓ 変更 <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='none' io='native'/> <source dev='/dev/mapper/VolG00-Volmatsui'/> <target dev='vda' bus='virtio'/> </disk>
「<model type='virtio'/>」を追加
<interface type='bridge'> <mac address='52:54:00:ff:92:5e'/> <source bridge='br1'/> <target dev='vnet1'/> <alias name='net1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </interface> ↓ ↓ 追加 <interface type='bridge'> <mac address='52:54:00:ff:92:5e'/> <source bridge='br1'/> <target dev='vnet1'/> <model type='virtio'/> <alias name='net1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </interface>