内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
01_linux
»
08_仮想化
»
kvm
»
05 ゲストCentOS5をVirtio化
トレース:
01_linux:08_仮想化:kvm:05_centos5_virtio
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 05 ゲストCentOS5をVirtio化 ====== virtioを使ったほうが早い ===== 1.先にゲストでvirtioを組み込み ===== virtioドライバを入れたinitrdを用意しておく <code> 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) </code> ===== 2.起動ファイル修正 ===== # virsh edit [VM] ===== Disk ===== 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> ===== NIC ===== 「<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> {{tag>kvm}}
01_linux/08_仮想化/kvm/05_centos5_virtio.txt
· 最終更新: 2022/09/22 05:28 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ