howto change virtio disk to boot on kvm guest os

howto change virtio disk to boot on kvm guest os

create a disk and install os to it by appending “-hda <your_disk_image>" to your virtual machine.

In your guest os, upgrade kernel to 2.6.25 which contains virtio_* drivers. or ubuntu 8.04 also has it.

In guest os, change /boot/grub/device.map from “(hd0) /dev/sda" to “(hd0) /dev/vda"

In guest os, change /boot/grub/menu.list from “root=/dev/sda1" to “root=/dev/vda1“, if you are using UUID, then no need to do this step.

enable para-virtualization by changing “-hda <your_disk_image" to “-drive file=<your_disk_image>,if=virtio,boot=on

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s