WindowsGuestDrivers/viostor/installation

From KVM
Revision as of 09:52, 4 August 2009 by Yan (talk | contribs)

How to setup Windows guest VirtIO block driver on Windows Server 2003

Introduction

VirtIO block driver can be used either as a system (boot) or non-system disk. However, the installation procedure for these two different scenarios is slightly different.

System disk installation procedure

QEMU command line options

First of all, a VM needs to be started with the VirtIO block device and boot options enabled:

-drive file=/image_path/image_name,if=virtio,boot=on

In addition, a virtual floppy disk with correct Windows drivers must be specified:

-fda /floppy_image_path/floppy_image_name

Boot from the CD and press "F6" to install a third party driver

Snapshot10.png

Press "S" to specify additional device

Snapshot11.png

Select correct architecture and press "ENTER"

Snapshot12.png

Press "Enter" to continue

Snapshot13.png

All set. Press "Enter" and continue with the normal installation procedure

Snapshot14.png


Non-System disk installation procedure

QEMU command line options

Run VM with the new VirtIO block device by adding the following options:

-drive file=/image_path/image_name,if=virtio,boot=off and -fda /floppy_image_path/floppy_image_name

Upon the Windows guest restart the New Hardware Wizard dialog will appear

Snapshot21.png

Select "Install from the list or specific location" option and press "Next"

Snapshot22.png

Select an appropriate location and press "OK" button

Snapshot23.png

Press "Next" button

Snapshot24.png

Press "Finish" upon installation completion

Snapshot25.png

Verify installation

Go to "Device Manager" and check to see that "Red Hat VirtIO SCSI controller" appears under "SCSI and RAID controllers" category. Snapshot26.png

== Go to "Start" -> "Administrative Tools" -> "Computer Management" and click "Disk Management". == Snapshot27.png

Follow to the "Initialize and Convert Disk Wizard" prompt

Snapshot28.png

Snapshot29.png

Snapshot30.png

Snapshot31.png

Right-click on the new disk and start the "New Partition Wizard"

Snapshot32.png

Snapshot33.png

Create a primary partition

Snapshot34.png

If it is necessary, adjust partition size,

Snapshot35.png

a drive letter,

Snapshot36.png

file system type, allocation unit size and volume label.

Snapshot37.png

Check that everything is fine and press "Finish" button

Snapshot38.png

The new partition will be marked as "Healthy"

Snapshot39.png

and accessible under "My Computer" folder.

Snapshot40.png